]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-imx-[mfgtool]-5.4.3: update recipes to align with kernel-yocto
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Tue, 5 May 2020 17:13:55 +0000 (17:13 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 6 May 2020 18:52:09 +0000 (15:52 -0300)
When kernel-yocto class is inherited by kernel recipes, the way how PV
is constructed changes to reflect GIT kernel tags and meta information.

This causes the fetcher search to fail, since paths used to locate files
are compiled from PV.

Replace version-specific paths in recipes to use PN instead, which is
registered in the fetcher as a valid search location.

Linux kernel recipe should have LINUX_VERSION also defined, since it is
used by kernel-yocto class to derive PV. This version is set to the real
kernel version provided by NXP in their source tree.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
recipes-kernel/linux/linux-imx-mfgtool_5.4.3.bb
recipes-kernel/linux/linux-imx/0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch [moved from recipes-kernel/linux/linux-imx-5.4.3/0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch with 100% similarity]
recipes-kernel/linux/linux-imx/imx/defconfig [moved from recipes-kernel/linux/linux-imx-5.4.3/imx/defconfig with 100% similarity]
recipes-kernel/linux/linux-imx/mx8/defconfig [moved from recipes-kernel/linux/linux-imx-5.4.3/mx8/defconfig with 100% similarity]
recipes-kernel/linux/linux-imx_5.4.3.bb

index 543fe9800981a1f254393f55939fc18cc84544af..0a9f5259ed946927ab18c2c2a8740586eeb49aab 100644 (file)
@@ -5,7 +5,7 @@ SUMMARY = "Produces a Manufacturing Tool compatible Linux Kernel"
 DESCRIPTION = "Linux Kernel provided and supported by Freescale that produces a \
 Manufacturing Tool compatible Linux Kernel to be used in updater environment"
 
-FILESEXTRAPATHS_prepend := "${THISDIR}/linux-imx-${PV}:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-imx:"
 require linux-imx_${PV}.bb
 require linux-mfgtool.inc
 
index 3d4fa86496b5d89248569867e3f975561f9eaf9e..6c042184ca4f69baa2e30fd888687cd17cd46252 100644 (file)
@@ -2,6 +2,9 @@
 # Copyright 2017-2019 (C) NXP
 # Copyright 2018 (C) O.S. Systems Software LTDA.
 # Released under the MIT license (see COPYING.MIT for the terms)
+#
+# SPDX-License-Identifier: MIT
+#
 
 SUMMARY = "Linux Kernel provided and supported by NXP"
 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
@@ -18,6 +21,13 @@ SRCBRANCH = "lf-5.4.y"
 LOCALVERSION = "-1.0.0"
 SRCREV = "f8118585ee3c7025265b28985fdfe0af96a84466"
 
+# PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition
+# required by kernel-yocto.bbclass.
+#
+# LINUX_VERSION define should match to the kernel version referenced by SRC_URI and
+# should be updated once patchlevel is merged.
+LINUX_VERSION = "5.4.3"
+
 SRC_URI += "file://0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch"
 
 DEFAULT_PREFERENCE = "1"