1
0
forked from brl/citadel
citadel/meta-citadel/recipes-kernel/citadel-kernel/citadel-kernel_5.2.9.bb

46 lines
1.4 KiB
BlitzBasic
Raw Normal View History

2019-04-06 16:11:10 -04:00
DESCRIPTION = "Citadel linux kernel"
LICENSE = "GPLv2"
SECTION = "kernel"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
inherit kernel
2019-08-21 00:42:06 -04:00
SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.2.9.tar.xz\
2019-05-02 15:02:49 -04:00
file://0117-WireGuard.patch \
2019-04-06 16:11:10 -04:00
file://defconfig \
"
2019-08-21 00:42:06 -04:00
SRC_URI[md5sum] = "d7162b4421327c756b1d548204fd8fb1"
SRC_URI[sha256sum] = "b6f02a4b306ca5cd314d72615bfc2650166969613135da202630e6c4e1b5d4e6"
2019-04-06 16:11:10 -04: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"
do_deploy_append() {
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.
#
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"
}
# Don't install kernel into images, see kernel.bbclass
RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""