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:
parent
50c6509ee0
commit
19eb1a7fe4
@ -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 "${@}"
|
||||
|
@ -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}"
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user