From 74c48a881df378a83e261c2785012609d81d801e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 27 Sep 2023 21:46:20 +0100 Subject: move build/command/options to include/option.sh Signed-off-by: Leah Rowe --- script/update/blobs/inject | 3 ++- script/update/project/trees | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'script/update') diff --git a/script/update/blobs/inject b/script/update/blobs/inject index c2f9ead6..d4a8d1aa 100755 --- a/script/update/blobs/inject +++ b/script/update/blobs/inject @@ -7,6 +7,7 @@ . "include/err.sh" . "include/defconfig.sh" . "include/blobutil.sh" +. "include/option.sh" release_archive="n" @@ -16,7 +17,7 @@ main() [ $# -lt 1 ] && err "No options specified." [ "${1}" = "listboards" ] && \ - ./build command options config/coreboot && exit 0 + listitems config/coreboot && exit 0 archive="${1}" diff --git a/script/update/project/trees b/script/update/project/trees index 084ef1e3..7038cfde 100755 --- a/script/update/project/trees +++ b/script/update/project/trees @@ -9,6 +9,7 @@ set -u -e . "include/err.sh" . "include/git.sh" +. "include/option.sh" _target="" tree="" @@ -29,7 +30,7 @@ main() [ -d "${cfgsdir}" ] || err "unsupported project name" shift 1 - targets=$(./build command options "${cfgsdir}") + targets=$(listitems "${cfgsdir}") [ $# -gt 0 ] && targets=$@ [ -z "${targets}" ] && \ err "No targets available for project: ${project}" -- cgit v1.2.1