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

38 lines
985 B
BlitzBasic
Executable File

# Copyright (C) 2013 NetModule AG
inherit kernel
require linux-dtb.inc
DESCRIPTION = "Linux kernel for various NetModule hardware"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
# Customer repo
SRC_URI = "git://git.netmodule.intranet/usr/se/linux;protocol=ssh;user=gitolite;nobranch=1"
SRCREV ?= "master"
PV = "4.5-${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
}
do_install_append(){
if [ "${KERNEL_DEVICETREE}" != "" ]; then
ln -s devicetree-${DTB_SYMLINK_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
}