forked from bouffalolab/bouffalo_sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproject.build.linux
More file actions
30 lines (24 loc) · 946 Bytes
/
Copy pathproject.build.linux
File metadata and controls
30 lines (24 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: pack_clean menuconfig guiconfig config-show kconfig-check diffconfig
# Pack built outputs and clean.
pack_clean::
tar czvf $(PROJ_NAME)_imgs.tar.gz $(BUILD_DIR)/build_out/$(PROJ_NAME).*
$(CMAKE) -E remove_directory "$(BUILD_DIR)"
menuconfig:
KCONFIG_CONFIG="$(DEFCONFIG_FILE)" $(PYTHON) "$(BL_SDK_BASE)/tools/kconfig/menuconfig.py"
@$(MAKE) defconfig
guiconfig:
KCONFIG_CONFIG="$(DEFCONFIG_FILE)" $(PYTHON) "$(BL_SDK_BASE)/tools/kconfig/guiconfig.py"
@$(MAKE) defconfig
config-show:
@cat "$(DEFCONFIG_FILE)"
kconfig-check:
BL_SDK_BASE="$(BL_SDK_BASE)" $(PYTHON) "$(BL_SDK_BASE)/tools/kconfig/kconfig_check.py" \
--kconfig "$(CONFIG_KCONFIG_ENTRY)"
diffconfig::
@args="$(filter-out $@,$(MAKECMDGOALS))"; \
if [ -z "$$args" ]; then \
$(PYTHON) "$(BL_SDK_BASE)/tools/kconfig/diffconfig.py" \
"$(DEFCONFIG_FILE).old" "$(DEFCONFIG_FILE)"; \
else \
$(PYTHON) "$(BL_SDK_BASE)/tools/kconfig/diffconfig.py" $$args; \
fi