Move linux kernel name decision codes to "binary".

Move linux kernel name decision codes from "binary_linux-image"
to "binary" so that it can be used by other binary_* scripts.
The different linux kernel name decision codes in "binary_rootfs" was
dropped.
This commit is contained in:
Steven Shiau 2024-11-08 08:09:05 +08:00
parent 50c6509ee0
commit 19eb1a7fe4
3 changed files with 11 additions and 20 deletions

View File

@ -44,6 +44,17 @@ if [ "${LB_BUILD_WITH_CHROOT}" = "true" ]; then
lb chroot_archives chroot install "${@}"
fi
case "${LB_ARCHITECTURE}" in
powerpc|ppc64el|riscv64)
LINUX="vmlinux"
;;
*)
LINUX="vmlinuz"
;;
esac
export LINUX
# Building root filesystem
lb binary_rootfs "${@}"
lb binary_dm-verity "${@}"

View File

@ -47,16 +47,6 @@ case "${LB_INITRAMFS}" in
;;
esac
case "${LB_ARCHITECTURE}" in
powerpc|ppc64el|riscv64)
LINUX="vmlinux"
;;
*)
LINUX="vmlinuz"
;;
esac
# Creating directory
mkdir -p "${DESTDIR}"

View File

@ -32,16 +32,6 @@ Check_stagefile
# Acquire lock file
Acquire_lockfile
case "${LB_ARCHITECTURE}" in
amd64|i386)
LINUX="vmlinuz"
;;
powerpc|ppc64el|riscv64)
LINUX="vmlinux"
;;
esac
case "${LB_INITRAMFS}" in
live-boot|dracut-live)
INITFS="live"