summaryrefslogtreecommitdiff
path: root/include/option.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-15 11:22:43 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-15 13:00:14 +0100
commitc14461a56b5203893466eaede7747047668693d8 (patch)
treec20d9fa1cebc3dfb220fb7540413d8132356ae7e /include/option.sh
parentd8c2c24507c0999240c74c4b85e33e1646d84e7f (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include/option.sh')
-rwxr-xr-xinclude/option.sh22
1 files changed, 22 insertions, 0 deletions
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 <vitali64pmemail@protonmail.com>
# SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org>
+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