2019-04-06 20:11:10 +00:00
|
|
|
DESCRIPTION = "Citadel linux kernel"
|
2022-05-28 15:20:07 +00:00
|
|
|
LICENSE = "GPL-2.0-only"
|
2019-04-06 20:11:10 +00:00
|
|
|
SECTION = "kernel"
|
2020-07-08 14:42:25 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
2019-04-06 20:11:10 +00:00
|
|
|
|
|
|
|
inherit kernel
|
|
|
|
|
2022-11-15 17:25:32 +00:00
|
|
|
SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz\
|
2019-04-06 20:11:10 +00:00
|
|
|
file://defconfig \
|
2024-06-03 15:50:38 +00:00
|
|
|
file://bootconfig \
|
2019-04-06 20:11:10 +00:00
|
|
|
"
|
2020-12-15 05:35:18 +00:00
|
|
|
|
2024-05-21 16:58:49 +00:00
|
|
|
SRC_URI[sha256sum] = "01b414ba98fd189ecd544435caf3860ae2a790e3ec48f5aa70fdf42dc4c5c04a"
|
2019-04-06 20:11:10 +00:00
|
|
|
|
|
|
|
LINUX_VERSION ?= "${PV}"
|
|
|
|
S = "${WORKDIR}/linux-${LINUX_VERSION}"
|
|
|
|
|
|
|
|
KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig"
|
|
|
|
|
|
|
|
DEPENDS += "lz4-native"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
do_deploy:append() {
|
2019-04-06 20:11:10 +00:00
|
|
|
rm ${DEPLOYDIR}/bzImage
|
|
|
|
ln -sf bzImage-initramfs-${KERNEL_IMAGE_NAME}.bin ${DEPLOYDIR}/bzImage
|
|
|
|
echo "${PV}" > ${DEPLOYDIR}/kernel.version
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Replaces function with same name in kernel.bbclass since that implementation
|
|
|
|
# doesn't pass destination argument to lz4 in which case the decompressed output
|
|
|
|
# just disappears into thin air it seems.
|
|
|
|
#
|
2024-05-21 16:58:49 +00:00
|
|
|
#copy_initramfs() {
|
|
|
|
# echo "copy_initramfs override"
|
|
|
|
# mkdir -p ${B}/usr
|
|
|
|
# rm -f ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio
|
|
|
|
# cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.cpio.lz4 ${B}/usr/.
|
|
|
|
# lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio.lz4 ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio
|
|
|
|
# ls -al ${B}/usr
|
|
|
|
# echo "Finished copy of initramfs into ./usr"
|
|
|
|
#}
|
2019-04-06 20:11:10 +00:00
|
|
|
|
|
|
|
# Don't install kernel into images, see kernel.bbclass
|
2022-05-28 15:20:07 +00:00
|
|
|
RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
2019-04-06 20:11:10 +00:00
|
|
|
|