diff options
| author | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2020-05-03 21:11:36 +0000 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-05-06 15:52:09 -0300 |
| commit | c7e23876b199e2cfbc2aef6bf192ef50e665b1c5 (patch) | |
| tree | 6a280ee08aacacfda156040ca0b70a92b5f2a863 | |
| parent | 642c234e2f129214fdae09f8ba93987993688ed3 (diff) | |
| download | meta-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.inc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc index 9a8a035f6..d508a7276 100644 --- a/recipes-kernel/linux/linux-imx.inc +++ b/recipes-kernel/linux/linux-imx.inc | |||
| @@ -4,19 +4,36 @@ | |||
| 4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 6 | 6 | ||
| 7 | inherit kernel fsl-kernel-localversion fsl-vivante-kernel-driver-handler | 7 | inherit 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 |
| 10 | LOCALVERSION ?= "" | 10 | LOCALVERSION ?= "" |
| 11 | SCMVERSION ?= "y" | 11 | SCMVERSION ?= "y" |
| 12 | SRCBRANCH ?= "" | 12 | SRCBRANCH ?= "" |
| 13 | 13 | ||
| 14 | # Set the PV to the correct kernel version to satisfy the kernel version sanity check | ||
| 15 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
| 16 | |||
| 14 | SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx;protocol=https;branch=${SRCBRANCH} \ | 17 | SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx;protocol=https;branch=${SRCBRANCH} \ |
| 15 | file://defconfig \ | 18 | file://defconfig \ |
| 16 | " | 19 | " |
| 17 | 20 | ||
| 18 | S = "${WORKDIR}/git" | 21 | S = "${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. | ||
| 35 | KCONFIG_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 |
| 22 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | 39 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
