mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
+26
-18
@@ -340,7 +340,7 @@ xbmk_parent_set_export()
|
||||
export PATH="$xbtmp/xbmkpath:$xbtmp/gnupath:$PATH"
|
||||
xbmkpath="$PATH"
|
||||
|
||||
# if "y": a coreboot target won't be built if target.cfg says release=n
|
||||
# if "y": a target won't be built if target.cfg says release=n
|
||||
# (this is used to exclude certain build targets from releases)
|
||||
|
||||
if [ -z "${XBMK_RELEASE+x}" ]; then
|
||||
@@ -533,33 +533,41 @@ xbmk_set_mirror()
|
||||
# it's slower, and uses more disk space, and some upstreams might not
|
||||
# appreciate it, so it should only be used for development or archival
|
||||
|
||||
# NOTE: unlike the lbmk design, which defaults to "n", the lwmk
|
||||
# design defaults to "y". This is due to the sheer size of the firefox
|
||||
# repository, and the complications caused by build artifacts in
|
||||
# its build system. We want to make sure that we always have a reliable
|
||||
# cache of the repository, so we default to mirror mode unless
|
||||
# configured otherwise by the user.
|
||||
|
||||
# the lbmk design defaults to "n" because the coreboot repository
|
||||
# contains every pull request as a new branch, so the decision was
|
||||
# made accordingly there (to further reduce the risk of overly
|
||||
# burdening them, that build system also defaults to a github
|
||||
# backup instead of the main coreboot mirror)
|
||||
|
||||
# mozilla hosts firefox on github, and github has plenty of bandwidth.
|
||||
# mirror mode is always preferred, in both build systems, at least
|
||||
# for development purposes. end users who don't want to download as
|
||||
# much (only the branch they're checkout out) might want to turn off
|
||||
# mirror mode. by default, the lwmk build system assumes that the user
|
||||
# is a developer, because most people who compile librewolf will use
|
||||
# the tarball, probably in a linux distro or (hint hint) openbsd ports
|
||||
|
||||
if [ -z "${XBMK_CACHE_MIRROR+x}" ]; then
|
||||
|
||||
export XBMK_CACHE_MIRROR="n"
|
||||
export XBMK_CACHE_MIRROR="y"
|
||||
fi
|
||||
|
||||
if [ "$XBMK_CACHE_MIRROR" != "y" ]; then
|
||||
if [ "$XBMK_CACHE_MIRROR" != "y" ] && \
|
||||
[ "$XBMK_CACHE_MIRROR" != "n" ]; then
|
||||
|
||||
export XBMK_CACHE_MIRROR="n"
|
||||
export XBMK_CACHE_MIRROR="y"
|
||||
fi
|
||||
}
|
||||
|
||||
xbmk_git_init()
|
||||
{
|
||||
# the git identity check is only needed for: ./mk -b coreboot [args]
|
||||
|
||||
[ "${2-}" = "-b" ] && [ "${3-}" = "coreboot" ] && \
|
||||
for gitarg in "user.name" "user.email"; do
|
||||
|
||||
gitcmd="git config --includes $gitarg"
|
||||
|
||||
if ! $gitcmd 1>/dev/null 2>/dev/null; then
|
||||
|
||||
err "Run this first: $gitcmd \"your ${gitcmd##*.}\"" \
|
||||
"xbmk_git_init" "$@"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -L ".git" ]; then
|
||||
|
||||
err "'$xbmkpwd/.git' is a symlink" "xbmk_git_init" "$@"
|
||||
|
||||
Reference in New Issue
Block a user