]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
BS: move target ccache to bootstrap.mk
authorMarkham <markham001@gmx.de>
Sun, 26 Feb 2017 10:50:13 +0000 (11:50 +0100)
committerMarkham <markham001@gmx.de>
Sun, 26 Feb 2017 10:50:13 +0000 (11:50 +0100)
make/bootstrap.mk
make/crosstool.mk

index 832bb4472bbedb1d5b870176fc977584b3458013..05cf7f4ba53c7304e73dc8a8951dac3dd7b7e53d 100755 (executable)
@@ -106,9 +106,17 @@ $(ARCHIVE):
        @echo ""
        @false
 
+# helper target to create ccache links (make sure to have ccache installed in /usr/bin ;)
+ccache: $(HOSTPREFIX)/bin
+       ln -sf /usr/bin/ccache $(HOSTPREFIX)/bin/cc
+       ln -sf /usr/bin/ccache $(HOSTPREFIX)/bin/gcc
+       ln -sf /usr/bin/ccache $(HOSTPREFIX)/bin/g++
+       ln -sf /usr/bin/ccache $(HOSTPREFIX)/bin/$(TARGET)-gcc
+       ln -sf /usr/bin/ccache $(HOSTPREFIX)/bin/$(TARGET)-g++
+
 # hack to make sure they are always copied
 PHONY += $(TARGETPREFIX)/lib
 PHONY += $(TARGETPREFIX)/lib/firmware
 PHONY += $(TARGETPREFIX)/lib/modules/$(KVERSION_FULL)
 PHONY += $(TARGETPREFIX)/lib/libc.so.6
-PHONY += targetprefix skeleton
+PHONY += ccache crosstool targetprefix skeleton
index b4bf6b95516b7e6bf091bc680810ee6310382205..ee5af7a0a380132ad0056b6dd0eae983515292bb 100755 (executable)
@@ -129,14 +129,6 @@ crosstool: prerequisites | $(CUSTOM_GCC) $(ARCHIVE)/crosstool-ng-git-$(CROSSTOOL
 endif # ifeq ($(PLATFORM), nevis)
 
 
-# helper target to create ccache links (make sure to have ccache installed in /usr/bin ;)
-ccache:
-       ln -s /usr/bin/ccache $(HOSTPREFIX)/bin/cc
-       ln -s /usr/bin/ccache $(HOSTPREFIX)/bin/gcc
-       ln -s /usr/bin/ccache $(HOSTPREFIX)/bin/g++
-       ln -s /usr/bin/ccache $(HOSTPREFIX)/bin/$(TARGET)-gcc
-       ln -s /usr/bin/ccache $(HOSTPREFIX)/bin/$(TARGET)-g++
-
 # Crosstool configuration 
 crossmenuconfig: $(ARCHIVE)/crosstool-ng-$(CROSSTOOL_NG_VER).tar.bz2
        make $(BUILD_TMP)
@@ -154,6 +146,3 @@ uclibcmenuconfig: $(ARCHIVE)/uClibc-$(UCLIBC_VER).tar.xz
        mv $(BUILD_TMP)/uClibc-$(UCLIBC_VER) $(BUILD_TMP)/uClibc-$(UCLIBC_VER)_mc
        set -e; cd $(BUILD_TMP)/uClibc-$(UCLIBC_VER)_mc; \
                make menuconfig
-
-# hack to make sure they are always copied
-PHONY += crosstool ccache