summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-10-11 11:05:05 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2012-10-11 11:05:05 +0200
commit046cf475d64cb44460ac0aeb9e53032efd8185d0 (patch)
tree46ddb06b418e42c52c0a02ba2b90f0f4d2b9b93e /toolchain/Makefile
parent58de4f5caf471cecbaebdb023cd8e2c5f89bfdb3 (diff)
parentec67efc42516136adee22d15ef1fb64b32637806 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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)