From: Markham Date: Sun, 26 Feb 2017 10:50:13 +0000 (+0100) Subject: BS: move target ccache to bootstrap.mk X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=a20d72357b2fd62807e0adf3f3c234f7ba64222d;p=bs-cst-neutrino-hd.git BS: move target ccache to bootstrap.mk --- diff --git a/make/bootstrap.mk b/make/bootstrap.mk index 832bb44..05cf7f4 100755 --- a/make/bootstrap.mk +++ b/make/bootstrap.mk @@ -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 diff --git a/make/crosstool.mk b/make/crosstool.mk index b4bf6b9..ee5af7a 100755 --- a/make/crosstool.mk +++ b/make/crosstool.mk @@ -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