|
@@ -70,11 +70,15 @@ $$($(2)_DIR)/.config: $$($(2)_KCONFIG_FILE) $$($(2)_KCONFIG_FRAGMENT_FILES)
|
|
|
|
|
|
# In order to get a usable, consistent configuration, some fixup may be needed.
|
|
|
# The exact rules are specified by the package .mk file.
|
|
|
-$$($(2)_DIR)/.stamp_kconfig_fixup_done: $$($(2)_DIR)/.config
|
|
|
+define $(2)_FIXUP_DOT_CONFIG
|
|
|
$$($(2)_KCONFIG_FIXUP_CMDS)
|
|
|
@yes "" | $$($(2)_MAKE_ENV) $$(MAKE) -C $$($(2)_DIR) \
|
|
|
$$($(2)_KCONFIG_OPTS) oldconfig
|
|
|
- $$(Q)touch $$@
|
|
|
+ $$(Q)touch $$($(2)_DIR)/.stamp_kconfig_fixup_done
|
|
|
+endef
|
|
|
+
|
|
|
+$$($(2)_DIR)/.stamp_kconfig_fixup_done: $$($(2)_DIR)/.config
|
|
|
+ $$(call $(2)_FIXUP_DOT_CONFIG)
|
|
|
|
|
|
# Before running configure, the configuration file should be present and fixed
|
|
|
$$($(2)_TARGET_CONFIGURE): $$($(2)_DIR)/.stamp_kconfig_fixup_done
|