summaryrefslogtreecommitdiff
path: root/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb
diff options
context:
space:
mode:
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb')
-rw-r--r--distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb36
1 files changed, 36 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb
new file mode 100644
index 0000000..9f33251
--- /dev/null
+++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linux-kernel/linux-kernel.bb
@@ -0,0 +1,36 @@
+SECTION = "kernel"
+DESCRIPTION = "Linux kernel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+KERNEL_IMAGETYPE = "uImage"
+
+inherit kernel
+
+require recipes-kernel/linux/linux-dtb.inc
+
+KERNEL_DEVICETREE_imx6qsabrelite = "arch/arm/boot/dts/imx6q-sabrelite.dts"
+
+COMPATIBLE_MACHINE = "imx6qsabrelite"
+
+S = "${WORKDIR}/git"
+
+BRANCH = "master"
+
+SRC_URI = " \
+ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux;\
+protocol=git;branch=${BRANCH} \
+ file://defconfig \
+"
+
+SRCREV="52addcf9d6669fa439387610bc65c92fa0980cef"
+PV = "3.17-rc2"
+
+# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
+MACHINE_KERNEL_PR_append = "d+gitr${SRCPV}"
+
+LINUX_VERSION_EXTENSION = "-sabrelite"
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
+do_configure_prepend () {
+ cp '${WORKDIR}/defconfig' '${S}/.config'
+}