forked from espressif/esp-idf
build system: Fix defconfig vs menuconfig regression in 155f9124
This commit is contained in:
@@ -22,7 +22,7 @@ for example in ${IDF_PATH}/examples/*; do
|
|||||||
pushd ${EXAMPLE_NUM}/`basename ${example}`
|
pushd ${EXAMPLE_NUM}/`basename ${example}`
|
||||||
# can't do "make defconfig all" as this will trip menuconfig
|
# can't do "make defconfig all" as this will trip menuconfig
|
||||||
# sometimes
|
# sometimes
|
||||||
make defconfig && make || RESULT=$?
|
make defconfig V=1 && make V=1 || RESULT=$?
|
||||||
popd
|
popd
|
||||||
EXAMPLE_NUM=$(( $EXAMPLE_NUM + 1 ))
|
EXAMPLE_NUM=$(( $EXAMPLE_NUM + 1 ))
|
||||||
done
|
done
|
||||||
|
@@ -21,13 +21,17 @@ KCONFIG_TOOL_ENV=KCONFIG_AUTOHEADER=$(abspath $(BUILD_DIR_BASE)/include/sdkconfi
|
|||||||
COMPONENT_KCONFIGS="$(COMPONENT_KCONFIGS)" KCONFIG_CONFIG=$(SDKCONFIG) \
|
COMPONENT_KCONFIGS="$(COMPONENT_KCONFIGS)" KCONFIG_CONFIG=$(SDKCONFIG) \
|
||||||
COMPONENT_KCONFIGS_PROJBUILD="$(COMPONENT_KCONFIGS_PROJBUILD)"
|
COMPONENT_KCONFIGS_PROJBUILD="$(COMPONENT_KCONFIGS_PROJBUILD)"
|
||||||
|
|
||||||
menuconfig: $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig $(BUILD_DIR_BASE)
|
menuconfig: $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig
|
||||||
$(summary) MENUCONFIG
|
$(summary) MENUCONFIG
|
||||||
$(Q) $(KCONFIG_TOOL_ENV) $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig
|
$(Q) $(KCONFIG_TOOL_ENV) $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig
|
||||||
|
|
||||||
ifeq ("$(wildcard $(SDKCONFIG))","")
|
ifeq ("$(wildcard $(SDKCONFIG))","")
|
||||||
#No sdkconfig found. Need to run menuconfig to make this if we need it.
|
ifeq ("$(filter defconfig,$(MAKECMDGOALS))","")
|
||||||
|
# if not configuration is present and defconfig is not a target, run makeconfig
|
||||||
$(SDKCONFIG): menuconfig
|
$(SDKCONFIG): menuconfig
|
||||||
|
else
|
||||||
|
$(SDKCONFIG): defconfig
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
defconfig: $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig $(BUILD_DIR_BASE)
|
defconfig: $(KCONFIG_TOOL_DIR)/mconf $(IDF_PATH)/Kconfig $(BUILD_DIR_BASE)
|
||||||
|
Reference in New Issue
Block a user