|
@@ -642,9 +642,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 ifneq ($$(filter boot/%,$(pkgdir)),)
|
|
|
+else ifneq ($$(filter boot/% $(BR2_EXTERNAL)/boot/%,$(pkgdir)),)
|
|
|
$(2)_KCONFIG_VAR = BR2_TARGET_$(2)
|
|
|
-else ifneq ($$(filter toolchain/%,$(pkgdir)),)
|
|
|
+else ifneq ($$(filter toolchain/% $(BR2_EXTERNAL)/toolchain/%,$(pkgdir)),)
|
|
|
$(2)_KCONFIG_VAR = BR2_$(2)
|
|
|
else
|
|
|
$(2)_KCONFIG_VAR = BR2_PACKAGE_$(2)
|