diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-25 15:49:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-25 15:49:31 +0000 |
commit | b737686b2c5277bfa62705c41e71ad60e1d44ae8 (patch) | |
tree | 1c82a6767d8f92c5491cc8e76dd240e2a1847ec1 /rules.mk | |
parent | 0ae15ad439e4830cafd409c2d2531d90aa803300 (diff) | |
download | mtk-20170518-b737686b2c5277bfa62705c41e71ad60e1d44ae8.zip mtk-20170518-b737686b2c5277bfa62705c41e71ad60e1d44ae8.tar.gz mtk-20170518-b737686b2c5277bfa62705c41e71ad60e1d44ae8.tar.bz2 |
build: use -iremap feature to replace __FILE__ absolute path names in packages with ones relative to $(BUILD_DIR)
improves reproducible builds
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48489
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -118,6 +118,10 @@ else TOOLCHAIN_DIR_NAME:=toolchain-$(GNU_TARGET_NAME) endif +ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8)),) + iremap = -iremap $(1):$(2) +endif + PACKAGE_DIR:=$(BIN_DIR)/packages BUILD_DIR:=$(BUILD_DIR_BASE)/$(TARGET_DIR_NAME) STAGING_DIR:=$(TOPDIR)/staging_dir/$(TARGET_DIR_NAME) |