meta-somdevices: Created recipe linux-somdevices_4.19.35.bb copying /meta-fsl-bsp...
authorJosep Orga <jorga@somdevices.com>
Wed, 3 Feb 2021 13:56:36 +0000 (14:56 +0100)
committerJosep Orga <jorga@somdevices.com>
Wed, 3 Feb 2021 13:56:36 +0000 (14:56 +0100)
Signed-off-by: Josep Orga <jorga@somdevices.com>
recipes-kernel/linux/linux-somdevices_4.19.35.bb [new file with mode: 0644]

diff --git a/recipes-kernel/linux/linux-somdevices_4.19.35.bb b/recipes-kernel/linux/linux-somdevices_4.19.35.bb
new file mode 100644 (file)
index 0000000..a2da377
--- /dev/null
@@ -0,0 +1,32 @@
+SUMMARY = "Linux Kernel provided and supported by SOMDEVICES"
+DESCRIPTION = "Linux Kernel provided and supported by SOMDEVICES with focus on \
+i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
+
+require recipes-kernel/linux/linux-imx.inc
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
+DEPENDS += "lzop-native bc-native"
+
+SRCBRANCH = "imx_4.19.35_1.1.0"
+LOCALVERSION = "-1.1.0"
+KERNEL_SRC ?= "git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https"
+SRC_URI = "${KERNEL_SRC};branch=${SRCBRANCH}"
+SRCREV = "0f9917c56d5995e1dc3bde5658e2d7bc865464de"
+
+S = "${WORKDIR}/git"
+
+DEFAULT_PREFERENCE = "1"
+
+DEFCONFIG     = "defconfig"
+DEFCONFIG_mx6 = "imx_v7_defconfig"
+DEFCONFIG_mx7 = "imx_v7_defconfig"
+
+do_preconfigure_prepend() {
+    # meta-freescale/classes/fsl-kernel-localversion.bbclass requires
+    # defconfig in ${WORKDIR}
+    install -d ${B}
+    cp ${S}/arch/${ARCH}/configs/${DEFCONFIG} ${WORKDIR}/defconfig
+}
+
+COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"