Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kendryte747 committed Nov 27, 2024
1 parent aa20078 commit f263ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include $(SDK_SRC_ROOT_DIR)/tools/mkenv.mk

.PHONY: all genimage clean distclean
all: genimage
@echo "Board $(CONFIG_BOARD), config $(SDK_DEFCONFIG)"
@echo "Board $(CONFIG_BOARD), config $(MK_LIST_DEFCONFIG)"
@echo "Build K230 CanMV done, image is at $(SDK_BUILD_DIR)"

include $(SDK_TOOLS_DIR)/kconfig.mk
Expand All @@ -13,7 +13,7 @@ include $(SDK_TOOLS_DIR)/genimage.mk
ifeq ($(strip $(filter $(MAKECMDGOALS),clean distclean list_def dl_toolchain)),)
$(SDK_SRC_ROOT_DIR)/.config: $(KCONF)
@make -C $(SDK_APPS_SRC_DIR) gen_kconfig || exit $?
@$(KCONF) --defconfig $(SDK_SRC_ROOT_DIR)/configs/$(SDK_DEFCONFIG) $(SDK_SRC_ROOT_DIR)/Kconfig || exit $?
@$(KCONF) --defconfig $(SDK_SRC_ROOT_DIR)/configs/$(MK_LIST_DEFCONFIG) $(SDK_SRC_ROOT_DIR)/Kconfig || exit $?

$(SDK_SRC_ROOT_DIR)/.config.old: $(SDK_SRC_ROOT_DIR)/.config
@cp -f $(SDK_SRC_ROOT_DIR)/.config $(SDK_SRC_ROOT_DIR)/.config.old
Expand All @@ -29,7 +29,7 @@ menuconfig: $(MCONF) $(SDK_SRC_ROOT_DIR)/.config
.PHONY: savedefconfig
savedefconfig: $(KCONF) $(SDK_SRC_ROOT_DIR)/.config
@make -C $(SDK_APPS_SRC_DIR) gen_kconfig || exit $?
@$(KCONF) --savedefconfig=$(SDK_SRC_ROOT_DIR)/configs/$(SDK_DEFCONFIG) $(SDK_SRC_ROOT_DIR)/Kconfig || exit $?
@$(KCONF) --savedefconfig=$(SDK_SRC_ROOT_DIR)/configs/$(MK_LIST_DEFCONFIG) $(SDK_SRC_ROOT_DIR)/Kconfig || exit $?

.PHONY: .autoconf
.autoconf: $(SDK_SRC_ROOT_DIR)/.config.old
Expand Down

0 comments on commit f263ec9

Please sign in to comment.