build: use same tarball name on uboot-only release

it's a rarely used feature, not currently used by the
libreboot project itself

remove unnecessary bloat

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-05-15 01:32:15 +01:00
parent 189b70ddcb
commit 4135ce5e27
1 changed files with 3 additions and 10 deletions

13
build
View File

@ -166,16 +166,9 @@ build_release()
$err "build_release $srcdir: couldn't generate changelog" $err "build_release $srcdir: couldn't generate changelog"
( (
if [ "${mode}" = "u-boot" ]; then cd "${srcdir%/*}" || $err "${_xm}: mktarball \"${srcdir}\""
cd "${srcdir}/src/" || $err "${_xm}: mktarball \"${srcdir}\"" mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || \
mktarball u-boot "../../${srcdir##*/}.tar.xz" || \ $err "$_xm: mksrc"
$err "$_xm: mksrc"
# make a src archive containing only u-boot
else
cd "${srcdir%/*}" || $err "${_xm}: mktarball \"${srcdir}\""
mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || \
$err "$_xm: mksrc"
fi
) || $err "can't create src tarball" ) || $err "can't create src tarball"
[ "${mode}" = "src" ] && return 0 [ "${mode}" = "src" ] && return 0
[ "${mode}" = "u-boot" ] && return 0 [ "${mode}" = "u-boot" ] && return 0