43 lines
1.4 KiB
BlitzBasic
43 lines
1.4 KiB
BlitzBasic
# Copyright (C) 2018 NetModule AG
|
|
|
|
inherit kernel
|
|
|
|
DESCRIPTION = "Linux kernel for various NetModule hardware"
|
|
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
|
|
|
SRC_URI = "git://gitlab.netmodule.intranet/oem-linux/linux-netmodule.git;protocol=ssh;user=git;branch=5.10/standard/base"
|
|
|
|
# Avoids installing the kernel in /boot directory
|
|
RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""
|
|
|
|
# Config fragments
|
|
FILESEXTRAPATHS_prepend := "${THISDIR}/conf:"
|
|
SRC_URI_append_netbird = " file://wlan.cfg"
|
|
|
|
SRCREV ?= "da63d96b098f862a8a784c0db10fc5a63a379f28"
|
|
|
|
# We are building one kernel for all machines with the same architecture
|
|
PACKAGE_ARCH = "${TUNE_PKGARCH}"
|
|
|
|
# HW23 is using a different source
|
|
SRC_URI_imx8-nmhw23 = "git://gitlab.netmodule.intranet/oem-linux/linux-netmodule.git;protocol=ssh;user=git;branch=4.14/nxp/nmhw23"
|
|
LIC_FILES_CHKSUM_imx8-nmhw23 = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
|
|
|
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
|
|
|
|
configs="${@" ".join(find_cfgs(d))}"
|
|
if [ ! -z "${configs}" ]; then
|
|
${S}/scripts/kconfig/merge_config.sh -m -O ${WORKDIR}/build ${WORKDIR}/build/.config ${WORKDIR}/*.cfg
|
|
fi
|
|
}
|