netmodule-wireless-linux/layers/meta-netmodule-legacy-bsp/recipes-kernel/linux/linux-nrsw_%.bb

45 lines
1.2 KiB
BlitzBasic

HOMEPAGE = "http://www.kernel.org"
DESCRIPTION = "Linux kernel for various NetModule hardware"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
inherit kernel
ROOTFS_RELEASE ?= "0.0.0.0"
KERNEL_MODULES_CONF_DIR = "${BPN}/modules"
require ${KERNEL_MODULES_CONF_DIR}/${DISTRO}.inc
require ${KERNEL_MODULES_CONF_DIR}/${NM_TARGET}.inc
config = "${@' '.join(['conf/' + f for f in "\
${NM_TARGET}_defconfig \
".split()])}"
SRC_URI = "git://git.netmodule.intranet/NRSW/nmlinux-kernel.git;protocol=ssh;user=gitea;branch=nmlinux-kernel-upgrade\
${@' '.join(['file://' + f for f in " ${config} ".split()])} \
file://0001-remove-nrsw-specific-parts.patch \
"
SRCREV ?= "${AUTOREV}"
PV = "5.X+git${SRCPV}"
PR = "r0"
S = "${WORKDIR}/git"
INSANE_SKIP_${PN} += "version-going-backwards"
DEPENDS += "openssl-native"
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
KERNEL_DEFCONFIG = "${NM_TARGET}_defconfig"
do_configure:append() {
for f in ${config}; do
cp ${WORKDIR}/${f} ${S}/arch/arm/configs/
done
if [ "${KERNEL_DEFCONFIG}" != "" ]; then
oe_runmake ${KERNEL_DEFCONFIG}
fi
}
FILES_${KERNEL_PACKAGE_NAME}-image += "${KERNEL_IMAGEDEST}/kernel.bin"