summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas De Schampheleire <patrickdepinguin@gmail.com>2014-02-05 10:44:02 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-02-05 12:10:10 +0100
commitac57c640c6e2d605f25d150bdede17f6f94edd76 (patch)
treedcc36287db4d3104817869d5809a29712af4dd94
parent604d261fb05ba1cc43a9630c3ce944c54ebb97b6 (diff)
downloadbuildroot-ac57c640c6e2d605f25d150bdede17f6f94edd76.tar.gz
buildroot-ac57c640c6e2d605f25d150bdede17f6f94edd76.zip
infra: remove usage of 4th parameter to inner-generic-package
In preparation of the removal of the 4th parameter to inner-generic-package and the pkgparentdir helper function, this patch removes the direct usage of this 4th parameter. The remaining usage ifeq ($(4),boot/) can become $(filter boot/%,$(pkgdir)) instead (and similar for toolchain). Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pkg-generic.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index e04a93ecd7..5778c5ca56 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -516,9 +516,9 @@ $$($(2)_TARGET_DIRCLEAN): PKG=$(2)
# kernel case, the bootloaders case, and the normal packages case.
ifeq ($(1),linux)
$(2)_KCONFIG_VAR = BR2_LINUX_KERNEL
-else ifeq ($(4),boot/)
+else ifneq ($(filter boot/%,$(pkgdir)),)
$(2)_KCONFIG_VAR = BR2_TARGET_$(2)
-else ifeq ($(4),toolchain/)
+else ifneq ($(filter toolchain/%,$(pkgdir)),)
$(2)_KCONFIG_VAR = BR2_$(2)
else
$(2)_KCONFIG_VAR = BR2_PACKAGE_$(2)
OpenPOWER on IntegriCloud