meta-netmodule-bsp/recipes-kernel/linux/linux-netmodule_git.bb

55 lines
1.6 KiB
BlitzBasic
Executable File

# Copyright (C) 2018 NetModule AG
inherit kernel
DESCRIPTION = "Linux kernel for various NetModule hardware"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
SRC_URI = "git://git.netmodule.intranet/yoctoproject/linux-netmodule.git;protocol=ssh;user=gitea;branch=4.19/standard/all"
SRCREV ?= "${AUTOREV}"
PV ?= "4.19.20-${SRCPV}"
PR = "r0"
S = "${WORKDIR}/git"
INSANE_SKIP_${PN} += "version-going-backwards"
#If a KERNEL_DEFCONFIG is specified, the defconfig specified in SRC_URI will be overwritten!
do_configure_append(){
if [ "${KERNEL_DEFCONFIG}" != "" ]; then
oe_runmake ${KERNEL_DEFCONFIG}
fi
}
fitimage_assemble_append(){
if [ "x${ramdiskcount}" = "x1" ] ; then
ln -sf ${2} arch/${ARCH}/boot/fitImage.initramfs
fi
}
do_install_append(){
if [ "${KERNEL_DEVICETREE}" != "" ]; then
ln -s ${KERNEL_DTB_LINK_NAME}.dtb ${D}/${KERNEL_IMAGEDEST}/devicetree.dtb
fi
if [ "${KERNEL_IMAGETYPE}" = "uImage" ]; then
ln -s ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
fi
# Module.symvers gets updated during the
# building of the kernel modules. We need to
# update this in the shared workdir since some
# external kernel modules has a dependency on
# other kernel modules and will look at this
# file to do symbol lookups
# THIS WILL BE FIXED IN FUTURE VERSIONS!
cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
}
do_install_append_armada-385-nrhw18() {
ln -s ${KERNEL_DTB_LINK_NAME}.dtb ${D}/${KERNEL_IMAGEDEST}/armada-385-nbhw18-prod4.dtb
}