summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>2020-05-03 21:11:36 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2020-05-06 15:52:09 -0300
commitc7e23876b199e2cfbc2aef6bf192ef50e665b1c5 (patch)
tree6a280ee08aacacfda156040ca0b70a92b5f2a863
parent642c234e2f129214fdae09f8ba93987993688ed3 (diff)
downloadmeta-freescale-c7e23876b199e2cfbc2aef6bf192ef50e665b1c5.tar.gz
linux-imx.inc: inherit kernel-yocto class
Since commit [de2ef0120432cba343452151e86cbc3c99876524] in oe-core, it is possible to use kernel-yocto class without including linux-yocto.inc into the recipe. Inherit the class in order to take advantage of providing mechanisms to use kernel config fragments, patches and verification features implemented upstream. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
-rw-r--r--recipes-kernel/linux/linux-imx.inc19
1 files changed, 18 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc
index 9a8a035f..d508a727 100644
--- a/recipes-kernel/linux/linux-imx.inc
+++ b/recipes-kernel/linux/linux-imx.inc
@@ -4,19 +4,36 @@
4LICENSE = "GPLv2" 4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6 6
7inherit kernel fsl-kernel-localversion fsl-vivante-kernel-driver-handler 7inherit kernel-yocto kernel fsl-kernel-localversion fsl-vivante-kernel-driver-handler
8 8
9# Put a local version until we have a true SRCREV to point to 9# Put a local version until we have a true SRCREV to point to
10LOCALVERSION ?= "" 10LOCALVERSION ?= ""
11SCMVERSION ?= "y" 11SCMVERSION ?= "y"
12SRCBRANCH ?= "" 12SRCBRANCH ?= ""
13 13
14# Set the PV to the correct kernel version to satisfy the kernel version sanity check
15PV = "${LINUX_VERSION}+git${SRCPV}"
16
14SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx;protocol=https;branch=${SRCBRANCH} \ 17SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx;protocol=https;branch=${SRCBRANCH} \
15 file://defconfig \ 18 file://defconfig \
16" 19"
17 20
18S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
19 22
23# Tell to kernel class that we would like to use our defconfig to configure the kernel.
24# Otherwise, the --allnoconfig would be used per default which leads to mis-configured
25# kernel.
26#
27# This behavior happens when a defconfig is provided, the kernel-yocto configuration
28# uses the filename as a trigger to use a 'allnoconfig' baseline before merging
29# the defconfig into the build.
30#
31# If the defconfig file was created with make_savedefconfig, not all options are
32# specified, and should be restored with their defaults, not set to 'n'.
33# To properly expand a defconfig like this, we need to specify: KCONFIG_MODE="--alldefconfig"
34# in the kernel recipe include.
35KCONFIG_MODE="--alldefconfig"
36
20# We need to pass it as param since kernel might support more then one 37# We need to pass it as param since kernel might support more then one
21# machine, with different entry points 38# machine, with different entry points
22KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" 39KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"