binutils: Cleanup makefile

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-04-25 11:56:02 +02:00
parent 3e477b7d73
commit 18f4933922

View File

@@ -38,8 +38,10 @@ ifeq "$(ROOT)" ""
EXTRA_CONFIG = \ EXTRA_CONFIG = \
--prefix=/usr \ --prefix=/usr \
--enable-shared \ --enable-shared \
--disable-nls \ --with-system-zlib \
--disable-werror --enable-plugins \
--enable-ld=default \
--disable-gold
EXTRA_MAKE = tooldir=/usr EXTRA_MAKE = tooldir=/usr
EXTRA_INSTALL = tooldir=/usr EXTRA_INSTALL = tooldir=/usr
else else
@@ -49,9 +51,7 @@ ifeq "$(PASS)" "1"
--target=$(CROSSTARGET) \ --target=$(CROSSTARGET) \
--prefix=/tools \ --prefix=/tools \
--with-sysroot=$(ROOT) \ --with-sysroot=$(ROOT) \
--with-lib-path=/tools/lib \ --with-lib-path=/tools/lib
--disable-nls \
--disable-werror
EXTRA_MAKE = EXTRA_MAKE =
EXTRA_INSTALL = EXTRA_INSTALL =
else else
@@ -64,9 +64,7 @@ else
--host=$(BUILDTARGET) \ --host=$(BUILDTARGET) \
--build=$(BUILDTARGET) \ --build=$(BUILDTARGET) \
--prefix=/tools \ --prefix=/tools \
--with-lib-path=/tools/lib \ --with-lib-path=/tools/lib
--disable-nls \
--disable-werror
EXTRA_MAKE = EXTRA_MAKE =
EXTRA_INSTALL = EXTRA_INSTALL =
endif endif
@@ -79,6 +77,7 @@ ifeq "$(BUILD_ARCH)" "armv5tel"
endif endif
EXTRA_CONFIG += \ EXTRA_CONFIG += \
--disable-werror \
--enable-64-bit-bfd --enable-64-bit-bfd
############################################################################### ###############################################################################
@@ -129,12 +128,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
ifeq "$(ROOT)" "" ifeq "$(ROOT)" ""
cp -v $(DIR_APP)/include/libiberty.h /usr/include cp -v $(DIR_APP)/include/libiberty.h /usr/include
else endif
ifeq "$(PASS)" "2"
ifeq "$(TOOLCHAIN)" "1"
ifeq "$(PASS)" "2"
cd $(DIR_SRC)/binutils-build && make -C ld clean cd $(DIR_SRC)/binutils-build && make -C ld clean
cd $(DIR_SRC)/binutils-build && make -C ld LIB_PATH=/usr/lib:/lib cd $(DIR_SRC)/binutils-build && make -C ld LIB_PATH=/usr/lib:/lib
cd $(DIR_SRC)/binutils-build && cp -v ld/ld-new /tools/bin cd $(DIR_SRC)/binutils-build && cp -v ld/ld-new /tools/bin
endif
endif endif
endif
@rm -rf $(DIR_APP) $(DIR_SRC)/binutils-build @rm -rf $(DIR_APP) $(DIR_SRC)/binutils-build
@$(POSTBUILD) @$(POSTBUILD)