mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
pragmatic system distribution guideline compliance
osboot is now part of libreboot, and will soon shut down. libreboot now conforms to osboot policy.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# Copyright (C) 2014, 2015, 2020, 2021 Leah Rowe <info@minifree.org>
|
||||
# Copyright (C) 2015 Patrick "P. J." McDermott <pj@pehjota.net>
|
||||
# Copyright (C) 2015, 2016 Klemens Nanni <contact@autoboot.org>
|
||||
# Copyright (C) 2022, Caleb La Grange <thonkpeasant@protonmail.com>
|
||||
# Copyright (C) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
|
||||
# Copyright (C) 2022 Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
@@ -29,16 +29,6 @@ set -u -e
|
||||
|
||||
./resources/scripts/misc/versioncheck
|
||||
|
||||
# set this when you want to modify each coreboot tree
|
||||
# for example, you want to test custom patches
|
||||
# NODELETE= ./download coreboot
|
||||
deletegit="true"
|
||||
deleteblobs="true"
|
||||
if [ "x${NODELETE+set}" = 'xset' ]; then
|
||||
[ "x${NODELETE:-all}" = "xgit" ] && deletegit="false"
|
||||
[ "x${NODELETE:-all}" = "xall" ] && deleteblobs="false" && deletegit="false"
|
||||
fi
|
||||
|
||||
rm -f "build_error"
|
||||
|
||||
download=resources/scripts/download
|
||||
@@ -68,9 +58,9 @@ help() {
|
||||
coreboot trees by default, but './download coreboot x60' will only download
|
||||
the coreboot tree required for the target: x60
|
||||
|
||||
Each program download script should also accept the --help paramater to
|
||||
Each program download script should also accept the --help parameter to
|
||||
display the usage of the script.
|
||||
|
||||
|
||||
Refer to the documentation for more information.
|
||||
EOF
|
||||
}
|
||||
@@ -91,15 +81,7 @@ shift 1
|
||||
|
||||
if [ "${program}" = "all" ]; then
|
||||
for downloadProgram in ${download}/*; do
|
||||
if [ -f "${downloadProgram}" ]; then
|
||||
if [ "${deleteblobs}" = "false" ]; then
|
||||
NODELETE= "${downloadProgram}"
|
||||
elif [ "${deletegit}" = "false" ]; then
|
||||
NODELETE=git "${downloadProgram}"
|
||||
else
|
||||
"${downloadProgram}"
|
||||
fi
|
||||
fi
|
||||
"${downloadProgram}"
|
||||
done
|
||||
exit 0
|
||||
elif [ ! -f "${download}/${program}" ]; then
|
||||
@@ -108,21 +90,9 @@ elif [ ! -f "${download}/${program}" ]; then
|
||||
fi
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
if [ "${deleteblobs}" = "false" ]; then
|
||||
NODELETE= "${download}/${program}"
|
||||
elif [ "${deletegit}" = "false" ]; then
|
||||
NODELETE=git "${download}/${program}"
|
||||
else
|
||||
"${download}/${program}"
|
||||
fi
|
||||
"${download}/${program}"
|
||||
else
|
||||
if [ "${deleteblobs}" = "false" ]; then
|
||||
NODELETE= "${download}/${program}" $@
|
||||
elif [ "${deletegit}" = "false" ]; then
|
||||
NODELETE=git "${download}/${program}" $@
|
||||
else
|
||||
"${download}/${program}" $@
|
||||
fi
|
||||
"${download}/${program}" $@
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user