aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-20 20:13:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-20 20:13:40 +0000
commitc7308bc9f147b9438d183d8e655e5cd087ec2668 (patch)
tree7e02c38993547329624ed1d4e4983449803ab45a /rules.mk
parentf85594f56ffcf05ce971f1e19c8c93795594fb6a (diff)
downloadupstream-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.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index f95568a313..f0c813620a 100644
--- a/rules.mk
+++ b/rules.mk
@@ -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))