|
@@ -30,11 +30,14 @@ ifeq ($(BR2_CCACHE_USE_BASEDIR),y)
|
|
|
TOOLCHAIN_WRAPPER_ARGS += -DBR_CCACHE_BASEDIR='"$(BASE_DIR)"'
|
|
|
endif
|
|
|
|
|
|
-# For simplicity, build directly into the install location
|
|
|
-define TOOLCHAIN_BUILD_WRAPPER
|
|
|
- $(Q)mkdir -p $(HOST_DIR)/usr/bin
|
|
|
+define TOOLCHAIN_WRAPPER_BUILD
|
|
|
$(HOSTCC) $(HOST_CFLAGS) $(TOOLCHAIN_WRAPPER_ARGS) \
|
|
|
-s -Wl,--hash-style=$(TOOLCHAIN_WRAPPER_HASH_STYLE) \
|
|
|
toolchain/toolchain-wrapper.c \
|
|
|
- -o $(HOST_DIR)/usr/bin/toolchain-wrapper
|
|
|
+ -o $(@D)/toolchain-wrapper
|
|
|
+endef
|
|
|
+
|
|
|
+define TOOLCHAIN_WRAPPER_INSTALL
|
|
|
+ $(INSTALL) -D -m 0755 $(@D)/toolchain-wrapper \
|
|
|
+ $(HOST_DIR)/usr/bin/toolchain-wrapper
|
|
|
endef
|