mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
fix(setup_board): Hide --getbinpkg, it isn't useful for setup_board.
A new board build root always starts with an empty package cache so if binary packages are enabled downloading is required. The distinction can be useful for passing to update_chroot since its cache isn't impacted so the flag remains, just among the less used hidden ones.
This commit is contained in:
parent
21614c5942
commit
9dfad070c9
@ -21,8 +21,6 @@ DEFINE_boolean force $FLAGS_FALSE \
|
||||
"Force re-creating board root."
|
||||
DEFINE_boolean usepkg $FLAGS_TRUE \
|
||||
"Use binary packages to bootstrap."
|
||||
DEFINE_boolean getbinpkg $FLAGS_TRUE \
|
||||
"Download binary packages from remote repository."
|
||||
|
||||
FLAGS_HELP="usage: $(basename $0) [flags]
|
||||
|
||||
@ -57,6 +55,8 @@ DEFINE_string variant "" \
|
||||
"Board variant."
|
||||
DEFINE_boolean regen_configs ${FLAGS_FALSE} \
|
||||
"Regenerate all config files (useful for modifying profiles w/out rebuild)."
|
||||
DEFINE_boolean getbinpkg $FLAGS_TRUE \
|
||||
"Passed to update_chroot, ignored by setup_board itself."
|
||||
|
||||
|
||||
# builds wrappers like equery-arm-generic.
|
||||
@ -269,10 +269,7 @@ if [[ ${FLAGS_regen_configs} -eq ${FLAGS_FALSE} ]]; then
|
||||
# avoid pulling any spurious DEPEND things in that we don't care about.
|
||||
KERNEL_EMERGE_FLAGS="--select --quiet --root-deps=rdeps"
|
||||
if [[ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
KERNEL_EMERGE_FLAGS+=" --usepkg"
|
||||
if [[ "${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]]; then
|
||||
KERNEL_EMERGE_FLAGS+=" --getbinpkg "
|
||||
fi
|
||||
KERNEL_EMERGE_FLAGS+=" --usepkg --getbinpkg"
|
||||
fi
|
||||
|
||||
sudo -E "${EMERGE_WRAPPER}" ${KERNEL_EMERGE_FLAGS} \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user