From 02f18808eb538b8636e406a0bac29be9967bb772 Mon Sep 17 00:00:00 2001 From: gaoyang3513 Date: Sat, 7 Oct 2023 06:28:01 +0000 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E6=94=AF=E6=8C=81uboot?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/build.sh | 16 ++++++++++++++++ sysdrv/Makefile | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/project/build.sh b/project/build.sh index 47c139e92..d9f749faf 100755 --- a/project/build.sh +++ b/project/build.sh @@ -887,6 +887,21 @@ function build_clean(){ finish_build } +function build_config(){ + param="${1:-all}" + msg_info "config ${param}" + case $param in + uboot) + make uboot_config -C ${SDK_SYSDRV_DIR} + ;; + *) + msg_warn "config [$1] not support, ignore" + ;; + esac + + finish_build +} + function __BUILD_ENABLE_COREDUMP_SCRIPT() { local tmp_path coredump2sdcard @@ -2005,6 +2020,7 @@ do save) option=build_save ;; allsave) option=build_allsave ;; check) option=build_check ;; + config) option="build_config $2";break;; clean) option="build_clean $2";break;; firmware) option=build_firmware ;; ota) option=build_ota ;; diff --git a/sysdrv/Makefile b/sysdrv/Makefile index d0ffc284b..31cc7cdef 100644 --- a/sysdrv/Makefile +++ b/sysdrv/Makefile @@ -351,6 +351,13 @@ uboot: prepare $(SYSDRV_DIR_OUT_IMAGE)/uboot.img \ $(SYSDRV_DIR_OUT_IMAGE)/$(DOWNLOAD_BIN)) +uboot_config: prepare + @echo -e "$(C_GREEN) ==sysdrv== config uboot $(C_NORMAL)" + @$(MAKE) -C $(UBOOT_DIR) $(UBOOT_CFG) $(UBOOT_CFG_FRAGMENT) + @$(MAKE) -C $(UBOOT_DIR) menuconfig + @$(MAKE) -C $(UBOOT_DIR) savedefconfig + @cp -arf $(UBOOT_DIR)/defconfig $(UBOOT_DIR)/configs/$(UBOOT_CFG) + uboot_clean: pushd $(UBOOT_DIR);$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) distclean >/dev/null;popd