summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-10-10 10:54:20 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-10-10 10:54:20 +0200
commit581c747ae157d8802dc704786eaceb648da79e28 (patch)
treeb9d69fbf40a85e876cde9738e04c5f1ea524486d /toolchain/Makefile
parent6916a7793d864f5dcb661bb059a4f99afa1ee433 (diff)
fix 32 Bit multilib builds
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index a32648000..fd92b46f7 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -32,11 +32,13 @@ endif
DOWNLOAD:=kernel-headers-download $(patsubst %,%-download,$(TARGETS))
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
+FIXUP:=$(patsubst %,%-fixup,$(LIBC))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
install: $(TARGETS_INSTALL)
clean: $(TARGETS_CLEAN)
download: $(DOWNLOAD)
+fixup: $(FIXUP)
gcc-prepare: binutils-install gmp-install mpfr-install mpc-install libelf-install
ifeq ($(ADK_TARGET_LIB_GLIBC),y)
@@ -47,6 +49,7 @@ endif
gcc-configure: $(LIBC)-prepare
$(LIBC)-compile: gcc-configure
gcc-compile: $(LIBC)-install
+$(LIBC)-fixup: gcc-install
$(STAGING_HOST_DIR):
@mkdir -p $(STAGING_HOST_DIR)/lib
@@ -102,6 +105,10 @@ $(STAGING_HOST_DIR):
$(MAKE_TRACE); \
fi
+%-fixup: %-install
+ $(TRACE) toolchain/$(patsubst %-fixup,%,$@)/fixup
+ @$(MAKE) -C $(patsubst %-fixup,%,$@) fixup $(MAKE_TRACE)
+
%-clean:
$(TRACE) toolchain/$(patsubst %-clean,%,$@)/clean
@$(MAKE) -C $(patsubst %-clean,%,$@) clean $(MAKE_TRACE)