From 48475a88cbb26edb79e87d6dc0a3bd02ca20df5e Mon Sep 17 00:00:00 2001 From: Luciano Dittgen Date: Tue, 14 Jul 2026 17:29:31 -0300 Subject: imx-mkimage: Fix license/patch metadata per oelint Correct the 0001 patch Upstream-Status reason from the non-matching '[OE-specific]' to '[oe-specific]' (oelint.file.inappropriatemsg). Accept two findings inline: the LIC_FILES_CHKSUM common-licenses reference (the fetched source ships no standalone GPL-2.0-only file) and the canonical .inc DEPENDS that oelint only flags because the require lives in the .bb (oelint.vars.dependsappend). oelint.var.nativefilename is left as a documented false positive: the recipe uses 'inherit native' directly, so renaming the file to include '-native' would double the class suffix and break PN, and the finding is anchored to line 1 so it cannot be inline-suppressed. oelint.var.inheritdevtool.native is intentionally left unaddressed here: the proper fix is to let imx-mkimage build a target binary via BBCLASSEXTEND = "native" instead of deferring the native inherit, which is a functional change handled separately. No functional change. Signed-off-by: Luciano Dittgen (cherry picked from commit bb3945d1d07409bf93c59e0647272f8bafd9910b) --- .../files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch | 2 +- recipes-bsp/imx-mkimage/imx-mkimage_git.bb | 5 +++++ recipes-bsp/imx-mkimage/imx-mkimage_git.inc | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'recipes-bsp') diff --git a/recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch b/recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch index f182a2f14..f6cbc38dd 100644 --- a/recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch +++ b/recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch @@ -15,7 +15,7 @@ Use it from the build sysroot, and do not pull the local version of it. Reinjected the original patch from Andrey Zhizhikin -Upstream-Status: Inappropriate [OE-specific] +Upstream-Status: Inappropriate [oe-specific] Signed-off-by: Oleksandr Suvorov --- diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb index 65f65002c..7b3886e9e 100644 --- a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb +++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb @@ -1,6 +1,9 @@ # Copyright (C) 2016 Freescale Semiconductor # Copyright 2017-2022,2026 NXP +# NOTE: uses 'inherit native' directly, so a '-native' filename (as +# oelint.var.nativefilename suggests) would double the class suffix and break PN. +# That finding is a false positive here and is not inline-suppressible. require imx-mkimage_git.inc SUMMARY = "i.MX boot image generation tool" @@ -8,6 +11,8 @@ DESCRIPTION = "Tooling to assemble i.MX boot images (mkimage_imx8 and related)." HOMEPAGE = "https://github.com/nxp-imx/imx-mkimage" SECTION = "bsp" LICENSE = "GPL-2.0-only" +# Source ships no standalone license file; reference the common GPL-2.0-only text. +# nooelint: oelint.var.licenseremotefile LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" inherit deploy native diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc index b8d5d58cc..1455d99cb 100644 --- a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc +++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc @@ -1,5 +1,8 @@ # Copyright 2017-2026 NXP +# Canonical DEPENDS for this native tool; the require sits in the .bb so oelint +# sees this base assignment as "after include". +# nooelint: oelint.vars.dependsappend DEPENDS = "openssl-native zlib-native" SRC_URI = "${IMX_MKIMAGE_SRC};branch=${SRCBRANCH} \ -- cgit v1.2.3-54-g00ecf