mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
kconfig infra: only provide foo-*config targets when the package is enabled
Signed-off-by: "Yann E. Morin" <yann.morin.1998@free.fr> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d9fec0ad76
commit
d1f94bf403
@ -66,6 +66,12 @@ $$($(2)_DIR)/.stamp_kconfig_fixup_done: $$($(2)_DIR)/.config
|
|||||||
# Before running configure, the configuration file should be present and fixed
|
# Before running configure, the configuration file should be present and fixed
|
||||||
$$($(2)_TARGET_CONFIGURE): $$($(2)_DIR)/.stamp_kconfig_fixup_done
|
$$($(2)_TARGET_CONFIGURE): $$($(2)_DIR)/.stamp_kconfig_fixup_done
|
||||||
|
|
||||||
|
# Only enable the foo-*config targets when the package is actually enabled.
|
||||||
|
# Note: the variable $(2)_KCONFIG_VAR is not related to the kconfig
|
||||||
|
# infrastructure, but defined by pkg-generic.mk. The generic infrastructure is
|
||||||
|
# already called above, so we can effectively use this variable.
|
||||||
|
ifeq ($$($$($(2)_KCONFIG_VAR)),y)
|
||||||
|
|
||||||
# Configuration editors (menuconfig, ...)
|
# Configuration editors (menuconfig, ...)
|
||||||
$$(addprefix $(1)-,$$($(2)_KCONFIG_EDITORS)): $$($(2)_DIR)/.stamp_kconfig_fixup_done
|
$$(addprefix $(1)-,$$($(2)_KCONFIG_EDITORS)): $$($(2)_DIR)/.stamp_kconfig_fixup_done
|
||||||
$$($(2)_MAKE_ENV) $$(MAKE) -C $$($(2)_DIR) \
|
$$($(2)_MAKE_ENV) $$(MAKE) -C $$($(2)_DIR) \
|
||||||
@ -92,6 +98,8 @@ $(1)-update-defconfig: $(1)-savedefconfig
|
|||||||
cp -f $$($(2)_DIR)/defconfig $$($(2)_KCONFIG_FILE)
|
cp -f $$($(2)_DIR)/defconfig $$($(2)_KCONFIG_FILE)
|
||||||
touch --reference $$($(2)_DIR)/.config $$($(2)_KCONFIG_FILE)
|
touch --reference $$($(2)_DIR)/.config $$($(2)_KCONFIG_FILE)
|
||||||
|
|
||||||
|
endif # package enabled
|
||||||
|
|
||||||
endef # inner-kconfig-package
|
endef # inner-kconfig-package
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user