From c14461a56b5203893466eaede7747047668693d8 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 15 Oct 2023 11:22:43 +0100 Subject: delete include/vendor.sh and merge elsewhere move it all to other files where items are used, and not used anywhere else. this reduces the size of vendor.sh. also remove a few redundant variables, or variables that are not meaningfully used. a few items have been moved to include/option.sh Signed-off-by: Leah Rowe --- include/option.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/option.sh') diff --git a/include/option.sh b/include/option.sh index 262107fd..991ec0dc 100755 --- a/include/option.sh +++ b/include/option.sh @@ -3,6 +3,20 @@ # SPDX-FileCopyrightText: 2022 Ferass El Hafidi # SPDX-FileCopyrightText: 2023 Leah Rowe +vendir="vendor" +appdir="${vendir}/app" +cbdir="src/coreboot/default" +cbcfgsdir="config/coreboot" +ifdtool="cbutils/default/ifdtool" +cbfstool="cbutils/default/cbfstool" + +eval "$(setvars "" CONFIG_BOARD_DELL_E6400 CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN \ + CONFIG_ME_BIN_PATH CONFIG_KBC1126_FIRMWARE CONFIG_KBC1126_FW1 \ + CONFIG_KBC1126_FW1_OFFSET CONFIG_KBC1126_FW2 CONFIG_KBC1126_FW2_OFFSET \ + CONFIG_VGA_BIOS_FILE CONFIG_VGA_BIOS_ID CONFIG_GBE_BIN_PATH \ + CONFIG_INCLUDE_SMSC_SCH5545_EC_FW CONFIG_SMSC_SCH5545_EC_FW_FILE \ + CONFIG_IFD_BIN_PATH CONFIG_MRC_FILE _dest board boarddir)" + listitems() { rval=1 @@ -37,6 +51,14 @@ EOF rm -f "${revfile}" || "${_fail}" "scan_config: Cannot remove tmpfile" } +check_defconfig() +{ + for x in "${1}"/config/*; do + [ -f "${x}" ] && return 0 + done + return 1 +} + handle_coreboot_utils() { for util in cbfstool ifdtool; do -- cgit v1.2.1