mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
move variables out of init.sh to others
move them where they are used, or if they are used in many places, move them to lib.sh Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -14,12 +14,6 @@ projectsite="https://libreboot.org/"
|
|||||||
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
|
||||||
xbmkpath="$PATH"
|
xbmkpath="$PATH"
|
||||||
|
|
||||||
_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
|
|
||||||
|
|
||||||
ifdtool="elf/ifdtool/default/ifdtool"
|
|
||||||
cbfstool="elf/cbfstool/default/cbfstool"
|
|
||||||
rmodtool="elf/cbfstool/default/rmodtool"
|
|
||||||
grubdata="config/data/grub"
|
|
||||||
err="err_"
|
err="err_"
|
||||||
|
|
||||||
setvars()
|
setvars()
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
# Copyright (c) 2020-2025 Leah Rowe <leah@libreboot.org>
|
# Copyright (c) 2020-2025 Leah Rowe <leah@libreboot.org>
|
||||||
# Copyright (c) 2025 Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
# Copyright (c) 2025 Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
||||||
|
|
||||||
|
_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
|
||||||
|
|
||||||
|
cbfstool="elf/cbfstool/default/cbfstool"
|
||||||
|
rmodtool="elf/cbfstool/default/rmodtool"
|
||||||
|
|
||||||
remkdir()
|
remkdir()
|
||||||
{
|
{
|
||||||
rm -Rf "$1" || $err "remkdir: !rm -Rf \"$1\""
|
rm -Rf "$1" || $err "remkdir: !rm -Rf \"$1\""
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
# Copyright (c) 2022-2023 Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
# Copyright (c) 2022-2023 Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
||||||
# Copyright (c) 2023-2024 Riku Viitanen <riku.viitanen@protonmail.com>
|
# Copyright (c) 2023-2024 Riku Viitanen <riku.viitanen@protonmail.com>
|
||||||
|
|
||||||
|
grubdata="config/data/grub"
|
||||||
|
|
||||||
mkserprog()
|
mkserprog()
|
||||||
{
|
{
|
||||||
[ $# -lt 1 ] && $err "mkserprog: no arguments provided"
|
[ $# -lt 1 ] && $err "mkserprog: no arguments provided"
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ vfix="DO_NOT_FLASH_YET._FIRST,_INJECT_FILES_VIA_INSTRUCTIONS_ON_LIBREBOOT.ORG_"
|
|||||||
vguide="https://libreboot.org/docs/install/ivy_has_common.html"
|
vguide="https://libreboot.org/docs/install/ivy_has_common.html"
|
||||||
tmpromdel="$xbmkpwd/tmp/DO_NOT_FLASH"
|
tmpromdel="$xbmkpwd/tmp/DO_NOT_FLASH"
|
||||||
nvm="util/nvmutil/nvm"
|
nvm="util/nvmutil/nvm"
|
||||||
|
ifdtool="elf/ifdtool/default/ifdtool"
|
||||||
|
|
||||||
cvchk="CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN CONFIG_KBC1126_FIRMWARE \
|
cvchk="CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN CONFIG_KBC1126_FIRMWARE \
|
||||||
CONFIG_VGA_BIOS_FILE CONFIG_INCLUDE_SMSC_SCH5545_EC_FW \
|
CONFIG_VGA_BIOS_FILE CONFIG_INCLUDE_SMSC_SCH5545_EC_FW \
|
||||||
|
|||||||
Reference in New Issue
Block a user