summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-mkimage')
-rw-r--r--recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch2
-rw-r--r--recipes-bsp/imx-mkimage/imx-boot_1.0.bb48
-rw-r--r--recipes-bsp/imx-mkimage/imx-mkimage_git.bb11
-rw-r--r--recipes-bsp/imx-mkimage/imx-mkimage_git.inc7
4 files changed, 40 insertions, 28 deletions
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.
15 15
16Reinjected the original patch from Andrey Zhizhikin <andrey.z@gmail.com> 16Reinjected the original patch from Andrey Zhizhikin <andrey.z@gmail.com>
17 17
18Upstream-Status: Inappropriate [OE-specific] 18Upstream-Status: Inappropriate [oe-specific]
19Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io> 19Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
20--- 20---
21 21
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
index fcc8f84b3..59fe5854f 100644
--- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
+++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
@@ -2,10 +2,12 @@
2 2
3require imx-mkimage_git.inc 3require imx-mkimage_git.inc
4 4
5SUMMARY = "Boot loader image for i.MX 8 devices"
5DESCRIPTION = "Generate Boot Loader for i.MX 8 device" 6DESCRIPTION = "Generate Boot Loader for i.MX 8 device"
7HOMEPAGE = "https://github.com/nxp-imx/imx-mkimage"
8SECTION = "bsp"
6LICENSE = "GPL-2.0-only" 9LICENSE = "GPL-2.0-only"
7LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 10LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
8SECTION = "BSP"
9 11
10DEPENDS += "xxd-native" 12DEPENDS += "xxd-native"
11DEPENDS:append:mx8m-generic-bsp = " u-boot-mkimage-native dtc-native u-boot-mkeficapsule-native" 13DEPENDS:append:mx8m-generic-bsp = " u-boot-mkimage-native dtc-native u-boot-mkeficapsule-native"
@@ -14,7 +16,7 @@ DEPENDS:append:mx95-generic-bsp = " u-boot-mkeficapsule-native"
14 16
15# This package aggregates output deployed by other packages, 17# This package aggregates output deployed by other packages,
16# so set the appropriate dependencies 18# so set the appropriate dependencies
17DEPENDS += " \ 19DEPENDS += "\
18 virtual/bootloader \ 20 virtual/bootloader \
19 ${IMX_EXTRA_FIRMWARE} \ 21 ${IMX_EXTRA_FIRMWARE} \
20 imx-atf \ 22 imx-atf \
@@ -25,7 +27,7 @@ DEPENDS += " \
25do_compile[deptask] = "do_deploy" 27do_compile[deptask] = "do_deploy"
26do_compile[depends] += "${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${CRRM_INITRAMFS}:do_build', '', d)}" 28do_compile[depends] += "${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${CRRM_INITRAMFS}:do_build', '', d)}"
27 29
28CRRM_DEPLOY_DEPENDS ?= " \ 30CRRM_DEPLOY_DEPENDS ?= "\
29 virtual/kernel \ 31 virtual/kernel \
30 ${CRRM_INITRAMFS}" 32 ${CRRM_INITRAMFS}"
31CRRM_INITRAMFS ??= "imx-image-crrm-initramfs" 33CRRM_INITRAMFS ??= "imx-image-crrm-initramfs"
@@ -50,7 +52,7 @@ BOOT_VARIANT ?= ""
50 52
51TOOLS_NAME ?= "mkimage_imx8" 53TOOLS_NAME ?= "mkimage_imx8"
52 54
53IMX_BOOT_SOC_TARGET ?= "INVALID" 55IMX_BOOT_SOC_TARGET ?= "INVALID"
54 56
55DEPLOY_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" 57DEPLOY_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}"
56DEPLOY_OPTEE_STMM = "${@bb.utils.contains('MACHINE_FEATURES', 'optee stmm', 'true', 'false', d)}" 58DEPLOY_OPTEE_STMM = "${@bb.utils.contains('MACHINE_FEATURES', 'optee stmm', 'true', 'false', d)}"
@@ -60,51 +62,51 @@ IMXBOOT_TARGETS ?= \
60 bb.utils.contains('UBOOT_CONFIG', 'nand', 'flash_nand', \ 62 bb.utils.contains('UBOOT_CONFIG', 'nand', 'flash_nand', \
61 'flash_multi_cores flash_dcd', d), d)}" 63 'flash_multi_cores flash_dcd', d), d)}"
62 64
63BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" 65BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}"
64BOOT_STAGING:mx8m-generic-bsp = "${S}/iMX8M" 66BOOT_STAGING:mx8m-generic-bsp = "${S}/iMX8M"
65BOOT_STAGING:mx8dx-generic-bsp = "${S}/iMX8QX" 67BOOT_STAGING:mx8dx-generic-bsp = "${S}/iMX8QX"
66BOOT_STAGING:mx91-generic-bsp = "${S}/iMX91" 68BOOT_STAGING:mx91-generic-bsp = "${S}/iMX91"
67BOOT_STAGING:mx93-generic-bsp = "${S}/iMX93" 69BOOT_STAGING:mx93-generic-bsp = "${S}/iMX93"
68BOOT_STAGING:mx943-generic-bsp = "${S}/iMX94" 70BOOT_STAGING:mx943-generic-bsp = "${S}/iMX94"
69BOOT_STAGING:mx95-generic-bsp = "${S}/iMX95" 71BOOT_STAGING:mx95-generic-bsp = "${S}/iMX95"
70 72
71SOC_FAMILY = "INVALID" 73SOC_FAMILY = "INVALID"
72SOC_FAMILY:mx8-generic-bsp = "mx8" 74SOC_FAMILY:mx8-generic-bsp = "mx8"
73SOC_FAMILY:mx8m-generic-bsp = "mx8m" 75SOC_FAMILY:mx8m-generic-bsp = "mx8m"
74SOC_FAMILY:mx8x-generic-bsp = "mx8x" 76SOC_FAMILY:mx8x-generic-bsp = "mx8x"
75SOC_FAMILY:mx8ulp-generic-bsp = "mx8ulp" 77SOC_FAMILY:mx8ulp-generic-bsp = "mx8ulp"
76SOC_FAMILY:mx91-generic-bsp = "mx91" 78SOC_FAMILY:mx91-generic-bsp = "mx91"
77SOC_FAMILY:mx93-generic-bsp = "mx93" 79SOC_FAMILY:mx93-generic-bsp = "mx93"
78SOC_FAMILY:mx943-generic-bsp = "mx943" 80SOC_FAMILY:mx943-generic-bsp = "mx943"
79SOC_FAMILY:mx95-generic-bsp = "mx95" 81SOC_FAMILY:mx95-generic-bsp = "mx95"
80 82
81REV_OPTION ?= "REV=${IMX_SOC_REV_UPPER}" 83REV_OPTION ?= "REV=${IMX_SOC_REV_UPPER}"
82 84
83MKIMAGE_EXTRA_ARGS ?= "" 85MKIMAGE_EXTRA_ARGS ?= ""
84MKIMAGE_EXTRA_ARGS:mx943-nxp-bsp ?= " \ 86MKIMAGE_EXTRA_ARGS:mx943-nxp-bsp ?= "\
85 OEI=YES \ 87 OEI=YES \
86 LPDDR_TYPE=${DDR_TYPE} \ 88 LPDDR_TYPE=${DDR_TYPE} \
87 MSEL=${MSEL_TYPE} \ 89 MSEL=${MSEL_TYPE} \
88" 90"
89MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp ?= " \ 91MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp ?= "\
90 OEI=YES \ 92 OEI=YES \
91 LPDDR_TYPE=${DDR_TYPE} \ 93 LPDDR_TYPE=${DDR_TYPE} \
92 ${@'LPDDR_FW_VERSION='+d.getVar('LPDDR_FW_VERSION') if d.getVar('LPDDR_FW_VERSION') else ''} \ 94 ${@'LPDDR_FW_VERSION='+d.getVar('LPDDR_FW_VERSION') if d.getVar('LPDDR_FW_VERSION') else ''} \
93 ${@bb.utils.contains('SYSTEM_MANAGER_CONFIG', 'mx95alt', 'MSEL=1', '', d)}" 95 ${@bb.utils.contains('SYSTEM_MANAGER_CONFIG', 'mx95alt', 'MSEL=1', '', d)}"
94MKIMAGE_EXTRA_ARGS:imx95-19x19-lpddr5-frdm-pro ?= " \ 96MKIMAGE_EXTRA_ARGS:imx95-19x19-lpddr5-frdm-pro ?= "\
95 ${MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp} \ 97 ${MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp} \
96 QSPI_HEADER=./scripts/fspi_header-W25Q512NWEIQ" 98 QSPI_HEADER=./scripts/fspi_header-W25Q512NWEIQ"
97 99
98MKIMAGE_EXTRA_ARGS:imx95-19x19-verdin ?= " \ 100MKIMAGE_EXTRA_ARGS:imx95-19x19-verdin ?= "\
99 ${MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp} \ 101 ${MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp} \
100 QSPI_HEADER=./scripts/fspi_header_133" 102 QSPI_HEADER=./scripts/fspi_header_133"
101MKIMAGE_EXTRA_ARGS:imx95-a1-19x19-verdin ?= " \ 103MKIMAGE_EXTRA_ARGS:imx95-a1-19x19-verdin ?= "\
102 ${MKIMAGE_EXTRA_ARGS:imx95-19x19-verdin} \ 104 ${MKIMAGE_EXTRA_ARGS:imx95-19x19-verdin} \
103" 105"
104 106
105UBOOT_DTB_BINARY ?= "u-boot.dtb" 107UBOOT_DTB_BINARY ?= "u-boot.dtb"
106 108
107CRRM_FILES = " \ 109CRRM_FILES = "\
108 ${KERNEL_IMAGETYPE}.gz \ 110 ${KERNEL_IMAGETYPE}.gz \
109 ${KERNEL_IMAGETYPE}_crrm.gz \ 111 ${KERNEL_IMAGETYPE}_crrm.gz \
110 ${KERNEL_DEVICETREE_BASENAME}.dtb \ 112 ${KERNEL_DEVICETREE_BASENAME}.dtb \
diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
index 282bc45a1..7b3886e9e 100644
--- a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
+++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
@@ -1,12 +1,19 @@
1# Copyright (C) 2016 Freescale Semiconductor 1# Copyright (C) 2016 Freescale Semiconductor
2# Copyright 2017-2022,2026 NXP 2# Copyright 2017-2022,2026 NXP
3 3
4# NOTE: uses 'inherit native' directly, so a '-native' filename (as
5# oelint.var.nativefilename suggests) would double the class suffix and break PN.
6# That finding is a false positive here and is not inline-suppressible.
4require imx-mkimage_git.inc 7require imx-mkimage_git.inc
5 8
6DESCRIPTION = "i.MX make image" 9SUMMARY = "i.MX boot image generation tool"
10DESCRIPTION = "Tooling to assemble i.MX boot images (mkimage_imx8 and related)."
11HOMEPAGE = "https://github.com/nxp-imx/imx-mkimage"
12SECTION = "bsp"
7LICENSE = "GPL-2.0-only" 13LICENSE = "GPL-2.0-only"
14# Source ships no standalone license file; reference the common GPL-2.0-only text.
15# nooelint: oelint.var.licenseremotefile
8LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 16LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
9SECTION = "BSP"
10 17
11inherit deploy native 18inherit deploy native
12 19
diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
index 4a4efae01..1455d99cb 100644
--- a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
+++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc
@@ -1,6 +1,9 @@
1# Copyright 2017-2026 NXP 1# Copyright 2017-2026 NXP
2 2
3DEPENDS = "zlib-native openssl-native" 3# Canonical DEPENDS for this native tool; the require sits in the .bb so oelint
4# sees this base assignment as "after include".
5# nooelint: oelint.vars.dependsappend
6DEPENDS = "openssl-native zlib-native"
4 7
5SRC_URI = "${IMX_MKIMAGE_SRC};branch=${SRCBRANCH} \ 8SRC_URI = "${IMX_MKIMAGE_SRC};branch=${SRCBRANCH} \
6 file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \ 9 file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \