diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 20:13:40 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 20:13:40 +0000 |
commit | c7308bc9f147b9438d183d8e655e5cd087ec2668 (patch) | |
tree | 7e02c38993547329624ed1d4e4983449803ab45a /rules.mk | |
parent | f85594f56ffcf05ce971f1e19c8c93795594fb6a (diff) | |
download | upstream-c7308bc9f147b9438d183d8e655e5cd087ec2668.tar.gz upstream-c7308bc9f147b9438d183d8e655e5cd087ec2668.tar.bz2 upstream-c7308bc9f147b9438d183d8e655e5cd087ec2668.zip |
build: use a separate variable checking the subdir path (for host packages)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48410
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,9 +59,10 @@ export EXTRA_OPTIMIZATION:=$(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION)) TARGET_SUFFIX=$(call qstrip,$(CONFIG_TARGET_SUFFIX)) BUILD_SUFFIX:=$(call qstrip,$(CONFIG_BUILD_SUFFIX)) SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) +BUILD_SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) export SHELL:=/usr/bin/env bash -IS_PACKAGE_BUILD := $(if $(filter package/%,$(SUBDIR)),1) +IS_PACKAGE_BUILD := $(if $(filter package/%,$(BUILD_SUBDIR)),1) OPTIMIZE_FOR_CPU=$(subst i386,i486,$(ARCH)) |