mirror of
https://gitlab.os-k.eu/os-k-team/cross-cc-builder.git
synced 2023-08-25 14:03:10 +02:00
Correcting faulty recipes
This commit is contained in:
parent
70131df3ee
commit
abd80b2caf
32
Makefile
32
Makefile
@ -77,24 +77,16 @@ $(BINUTILSTARNAME):
|
|||||||
@wget $(BINUTILS_SOURCES) -O $(BINUTILSTARNAME) -q -c --show-progress
|
@wget $(BINUTILS_SOURCES) -O $(BINUTILSTARNAME) -q -c --show-progress
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
|
./build-binutils: $(BINUTILSTARNAME)
|
||||||
$(GCC_NAME): $(GCCTARNAME)
|
|
||||||
@echo ${CL2}[$@] ${NC}Deflate $(GCC_NAME) sources...${CL3}
|
|
||||||
@tar -xaf $(GCCTARNAME) --skip-old-files
|
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
|
||||||
|
|
||||||
$(BINUTILS_NAME): $(BINUTILSTARNAME)
|
|
||||||
@echo ${CL2}[$@] ${NC}Deflate $(BINUTILS_NAME) sources...${CL3}
|
@echo ${CL2}[$@] ${NC}Deflate $(BINUTILS_NAME) sources...${CL3}
|
||||||
@tar -xaf $(BINUTILSTARNAME) --skip-old-files
|
@tar -xaf $(BINUTILSTARNAME) --skip-old-files
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
build-binutils: $(BINUTILS_NAME)
|
|
||||||
@echo ${CL2}[$@] ${NC}Configuring $(BINUTILS_NAME)...${CL3}
|
@echo ${CL2}[$@] ${NC}Configuring $(BINUTILS_NAME)...${CL3}
|
||||||
@mkdir -p build-binutils
|
@mkdir -p build-binutils
|
||||||
cd build-binutils && ../$(BINUTILS_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --with-sysroot --disable-nls --disable-werror
|
cd build-binutils && ../$(BINUTILS_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --with-sysroot --disable-nls --disable-werror
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
$(PREFIX)/bin/x86_64-elf-objcopy: build-binutils
|
$(PREFIX)/bin/x86_64-elf-objcopy: ./build-binutils
|
||||||
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
||||||
cd build-binutils && make -j $(NTHREADS)
|
cd build-binutils && make -j $(NTHREADS)
|
||||||
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
||||||
@ -102,7 +94,10 @@ $(PREFIX)/bin/x86_64-elf-objcopy: build-binutils
|
|||||||
cd build-binutils && make install -j $(NTHREADS)
|
cd build-binutils && make install -j $(NTHREADS)
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
build-gcc: $(GCC_NAME)
|
./build-gcc: $(GCCTARNAME)
|
||||||
|
@echo ${CL2}[$@] ${NC}Deflate $(GCC_NAME) sources...${CL3}
|
||||||
|
@tar -xaf $(GCCTARNAME) --skip-old-files
|
||||||
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
@echo ${CL2}[$@] ${NC}Configuring $(GCC_NAME)...${CL3}
|
@echo ${CL2}[$@] ${NC}Configuring $(GCC_NAME)...${CL3}
|
||||||
@cp multilib.opt $(GCC_NAME)/gcc/config/i386/t-x86_64-elf
|
@cp multilib.opt $(GCC_NAME)/gcc/config/i386/t-x86_64-elf
|
||||||
@patch $(GCC_NAME)/gcc/config.gcc < patch-red-zone.diff
|
@patch $(GCC_NAME)/gcc/config.gcc < patch-red-zone.diff
|
||||||
@ -110,7 +105,7 @@ build-gcc: $(GCC_NAME)
|
|||||||
cd build-gcc && ../$(GCC_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --disable-nls --enable-languages=c,c++ --without-headers
|
cd build-gcc && ../$(GCC_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
$(PREFIX)/bin/x86_64-elf-gcc: $(PREFIX)/bin/x86_64-elf-objcopy build-gcc
|
$(PREFIX)/bin/x86_64-elf-gcc: $(PREFIX)/bin/x86_64-elf-objcopy ./build-gcc
|
||||||
@echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3}
|
@echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3}
|
||||||
cd build-gcc && make all-gcc -j $(NTHREADS)
|
cd build-gcc && make all-gcc -j $(NTHREADS)
|
||||||
cd build-gcc && make all-target-libgcc -j $(NTHREADS)
|
cd build-gcc && make all-target-libgcc -j $(NTHREADS)
|
||||||
@ -121,18 +116,17 @@ $(PREFIX)/bin/x86_64-elf-gcc: $(PREFIX)/bin/x86_64-elf-objcopy build-gcc
|
|||||||
@echo It is located in the cross-cc subdirectory.
|
@echo It is located in the cross-cc subdirectory.
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@mkdir -p build-gcc build-binutils
|
@mkdir -p build-gcc build-binutils
|
||||||
-@rm -rf build-gcc
|
@rm -rf build-gcc
|
||||||
-@rm -rf build-binutils
|
@rm -rf build-binutils
|
||||||
-@rm -rf cross-cc
|
@rm -rf cross-cc
|
||||||
-@rm -rf $(GCC_NAME)/gcc/config/i386/t-x86_64-elf
|
-@rm -rf $(GCC_NAME)/gcc/config/i386/t-x86_64-elf
|
||||||
-@patch -R $(GCC_NAME)/gcc/config.gcc < patch-red-zone.diff
|
|
||||||
-@echo ${CL2}[$@] ${CL}Success.${CL3}
|
-@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
|
|
||||||
remove_all:
|
remove_all:
|
||||||
@rm -rf gcc*
|
@rm -rf *gcc*
|
||||||
@rm -rf bin*
|
@rm -rf *bin*
|
||||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||||
|
|
||||||
cross-cc: $(PREFIX)/bin/x86_64-elf-gcc
|
cross-cc: $(PREFIX)/bin/x86_64-elf-gcc
|
||||||
|
Loading…
Reference in New Issue
Block a user