From 59dba6cfcdc6c154e4d46c14c42e7b6f0b84c7b5 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 16 Aug 2023 21:34:21 +0100 Subject: merge coreboot/u-boot download logic to one script they are fundamentally the same, in an lbmk context. they are downloaded in the same way, and compiled in the same way! (Kconfig infrastructure, board-specific code, the way submodules are used in git, etc) ~200 sloc reduction in resources/scripts the audit begins Signed-off-by: Leah Rowe --- resources/scripts/modify/u-boot/configs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'resources/scripts/modify/u-boot/configs') diff --git a/resources/scripts/modify/u-boot/configs b/resources/scripts/modify/u-boot/configs index 9572a5b8..4e16f353 100755 --- a/resources/scripts/modify/u-boot/configs +++ b/resources/scripts/modify/u-boot/configs @@ -44,22 +44,22 @@ main() modifyconf() { board="$1" - if [ ! -f "resources/u-boot/${board}/board.cfg" ]; then - printf "\nmodify/config/u-boot: no board.cfg for: %s\n" \ + if [ ! -f "resources/u-boot/${board}/target.cfg" ]; then + printf "\nmodify/config/u-boot: no target.cfg for: %s\n" \ "${board}" return 0 fi - ubtree="undefined" - . "resources/u-boot/${board}/board.cfg" # source + tree="undefined" + . "resources/u-boot/${board}/target.cfg" # source - if [ "${ubtree}" = "undefined" ]; then + if [ "${tree}" = "undefined" ]; then return 0 fi - ubdir="u-boot/${ubtree}" + ubdir="u-boot/${tree}" if [ ! -d "${ubdir}" ]; then - ./download u-boot ${ubtree} + ./fetch_trees u-boot ${tree} fi for ubcfg in resources/u-boot/${board}/config/*; do -- cgit v1.2.1