package/imx-mkimage: bump version to lf-6.1.36-2.1.0
Bump imx-mkimage to the latest version to gain i.MX9 support. Patch 0001 and 0004 are merged upstream:ff23c4fd84
bce82912c8
Patch 0002 is no more needed, BUILD_LDFLAGS var is now available:8185a000a7
Renumber the remaining patch. Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
6da2b51a66
commit
72de789023
@ -573,10 +573,7 @@ package/ifupdown-scripts/nfs_check Shellcheck
|
|||||||
package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch Upstream
|
package/ifupdown/0001-archcommon-define-GNU-only-FNM_EXTMATCH-to-zero-on-n.patch Upstream
|
||||||
package/ifupdown/0001-dont-use-dpkg-architecture.patch Upstream
|
package/ifupdown/0001-dont-use-dpkg-architecture.patch Upstream
|
||||||
package/igd2-for-linux/S99upnpd Indent Shellcheck Variables
|
package/igd2-for-linux/S99upnpd Indent Shellcheck Variables
|
||||||
package/imx-mkimage/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch Upstream
|
package/imx-mkimage/0001-Add-unused-fake-version.patch Upstream
|
||||||
package/imx-mkimage/0002-Add-LDFLAGS-to-link-step.patch Upstream
|
|
||||||
package/imx-mkimage/0003-Add-unused-fake-version.patch Upstream
|
|
||||||
package/imx-mkimage/0004-Add-support-for-overriding-BL31-BL32-and-BL33.patch Upstream
|
|
||||||
package/inadyn/S70inadyn Indent NotExecutable
|
package/inadyn/S70inadyn Indent NotExecutable
|
||||||
package/initscripts/init.d/rcK ConsecutiveEmptyLines EmptyLastLine Shellcheck
|
package/initscripts/init.d/rcK ConsecutiveEmptyLines EmptyLastLine Shellcheck
|
||||||
package/initscripts/init.d/rcS ConsecutiveEmptyLines EmptyLastLine Shellcheck
|
package/initscripts/init.d/rcS ConsecutiveEmptyLines EmptyLastLine Shellcheck
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
From a4993eda7483cd01662f3f3e2965e7a568cb7178 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Erik Larsson <erik.larsson@combitech.se>
|
|
||||||
Date: Thu, 8 Mar 2018 19:04:37 +0100
|
|
||||||
Subject: [PATCH] Add support for overriding BL32 and BL33 not only BL31
|
|
||||||
|
|
||||||
Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
|
|
||||||
Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
|
|
||||||
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
|
|
||||||
---
|
|
||||||
iMX8M/mkimage_fit_atf.sh | 16 ++++++++--------
|
|
||||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh
|
|
||||||
index 4f2b3f3..0444ff0 100755
|
|
||||||
--- a/iMX8M/mkimage_fit_atf.sh
|
|
||||||
+++ b/iMX8M/mkimage_fit_atf.sh
|
|
||||||
@@ -18,23 +18,23 @@ if [ ! -f $BL31 ]; then
|
|
||||||
echo "ERROR: BL31 file $BL31 NOT found" >&2
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
- echo "bl31.bin size: " >&2
|
|
||||||
- ls -lct bl31.bin | awk '{print $5}' >&2
|
|
||||||
+ echo "$BL31 size: " >&2
|
|
||||||
+ ls -lct $BL31 | awk '{print $5}' >&2
|
|
||||||
fi
|
|
||||||
|
|
||||||
-BL32="tee.bin"
|
|
||||||
+[ -z "$BL32" ] && BL32="tee.bin"
|
|
||||||
LOADABLES="\"atf-1\""
|
|
||||||
|
|
||||||
if [ ! -f $BL32 ]; then
|
|
||||||
BL32=/dev/null
|
|
||||||
else
|
|
||||||
echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
|
|
||||||
- echo "tee.bin size: " >&2
|
|
||||||
- ls -lct tee.bin | awk '{print $5}' >&2
|
|
||||||
+ echo "$BL32 size: " >&2
|
|
||||||
+ ls -lct $BL32 | awk '{print $5}' >&2
|
|
||||||
LOADABLES="$LOADABLES, \"tee-1\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
-BL33="u-boot-nodtb.bin"
|
|
||||||
+[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
|
|
||||||
DEK_BLOB="dek_blob_fit_dummy.bin"
|
|
||||||
|
|
||||||
if [ ! -f $DEK_BLOB ]; then
|
|
||||||
@@ -49,8 +49,8 @@ if [ ! -f $BL33 ]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
|
|
||||||
- echo "u-boot-nodtb.bin size: " >&2
|
|
||||||
- ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
|
|
||||||
+ echo "$BL33 size: " >&2
|
|
||||||
+ ls -lct $BL33 | awk '{print $5}' >&2
|
|
||||||
fi
|
|
||||||
|
|
||||||
for dtname in $*
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
From b7ace564b419a05a375a205fd4df8933716b241a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Erik Larsson <erik.larsson@combitech.se>
|
|
||||||
Date: Tue, 6 Mar 2018 12:28:39 +0100
|
|
||||||
Subject: [PATCH] Add LDFLAGS to link step
|
|
||||||
|
|
||||||
Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
|
|
||||||
---
|
|
||||||
iMX8M/soc.mak | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/iMX8M/soc.mak b/iMX8M/soc.mak
|
|
||||||
index 4bfdc37..806b805 100644
|
|
||||||
--- a/iMX8M/soc.mak
|
|
||||||
+++ b/iMX8M/soc.mak
|
|
||||||
@@ -84,7 +84,7 @@ FW_DIR = imx-boot/imx-boot-tools/$(PLAT)
|
|
||||||
$(MKIMG): mkimage_imx8.c
|
|
||||||
@echo "PLAT="$(PLAT) "HDMI="$(HDMI)
|
|
||||||
@echo "Compiling mkimage_imx8"
|
|
||||||
- $(CC) $(CFLAGS) mkimage_imx8.c -o $(MKIMG) -lz
|
|
||||||
+ $(CC) $(CFLAGS) mkimage_imx8.c -o $(MKIMG) $(LDFLAGS) -lz
|
|
||||||
|
|
||||||
lpddr4_imem_1d = lpddr4_pmu_train_1d_imem$(LPDDR_FW_VERSION).bin
|
|
||||||
lpddr4_dmem_1d = lpddr4_pmu_train_1d_dmem$(LPDDR_FW_VERSION).bin
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
|||||||
From b1e77d8ccabc6a3910ede2441ff567326291a355 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Perrot <thomas.perrot@bootlin.com>
|
|
||||||
Date: Tue, 26 Apr 2022 15:10:04 +0200
|
|
||||||
Subject: [PATCH] Add support for overriding BL31, BL32 and BL33
|
|
||||||
|
|
||||||
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
|
|
||||||
---
|
|
||||||
iMX8M/print_fit_hab.sh | 14 +++++++++-----
|
|
||||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/iMX8M/print_fit_hab.sh b/iMX8M/print_fit_hab.sh
|
|
||||||
index b915115..dbc28f2 100755
|
|
||||||
--- a/iMX8M/print_fit_hab.sh
|
|
||||||
+++ b/iMX8M/print_fit_hab.sh
|
|
||||||
@@ -1,12 +1,16 @@
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
-BL32="tee.bin"
|
|
||||||
-
|
|
||||||
let fit_off=$1
|
|
||||||
|
|
||||||
# keep backward compatibility
|
|
||||||
[ -z "$TEE_LOAD_ADDR" ] && TEE_LOAD_ADDR="0xfe000000"
|
|
||||||
|
|
||||||
+[ -z "$BL31" ] && BL31="bl31.bin"
|
|
||||||
+
|
|
||||||
+[ -z "$BL32" ] && BL32="tee.bin"
|
|
||||||
+
|
|
||||||
+[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
|
|
||||||
+
|
|
||||||
if [ -z "$ATF_LOAD_ADDR" ]; then
|
|
||||||
echo "ERROR: BL31 load address is not set" >&2
|
|
||||||
exit 0
|
|
||||||
@@ -26,7 +30,7 @@ else
|
|
||||||
let uboot_sign_off=$((fit_off - 0x8000 - ivt_off + 0x3000))
|
|
||||||
fi
|
|
||||||
|
|
||||||
-let uboot_size=$(ls -lct u-boot-nodtb.bin | awk '{print $5}')
|
|
||||||
+let uboot_size=$(ls -lct $BL33 | awk '{print $5}')
|
|
||||||
let uboot_load_addr=0x40200000
|
|
||||||
|
|
||||||
let last_sign_off=$(((uboot_sign_off + uboot_size + 3) & ~3))
|
|
||||||
@@ -64,13 +68,13 @@ done
|
|
||||||
|
|
||||||
let atf_sign_off=$((last_sign_off))
|
|
||||||
let atf_load_addr=$ATF_LOAD_ADDR
|
|
||||||
-let atf_size=$(ls -lct bl31.bin | awk '{print $5}')
|
|
||||||
+let atf_size=$(ls -lct $BL31 | awk '{print $5}')
|
|
||||||
|
|
||||||
if [ ! -f $BL32 ]; then
|
|
||||||
let tee_size=0x0
|
|
||||||
let tee_sign_off=$((atf_sign_off + atf_size))
|
|
||||||
else
|
|
||||||
- let tee_size=$(ls -lct tee.bin | awk '{print $5}')
|
|
||||||
+ let tee_size=$(ls -lct $BL32 | awk '{print $5}')
|
|
||||||
|
|
||||||
let tee_sign_off=$(((atf_sign_off + atf_size + 3) & ~3))
|
|
||||||
let tee_load_addr=$TEE_LOAD_ADDR
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
# Locally calculated
|
# Locally calculated
|
||||||
sha256 593bd94aac027844bc58c62aae55557c14e1f8a99e68ba235a46f083759df3d4 imx-mkimage-lf-5.10.72_2.2.0.tar.gz
|
sha256 fd538dc571ce06609d6a4d9ee8cfd7d0c93ec4685afa9f1079e5a5931ad3bdbc imx-mkimage-lf-6.1.36_2.1.0.tar.gz
|
||||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c LICENSE
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
IMX_MKIMAGE_VERSION = lf-5.10.72_2.2.0
|
IMX_MKIMAGE_VERSION = lf-6.1.36_2.1.0
|
||||||
IMX_MKIMAGE_SITE = $(call github,nxp-imx,imx-mkimage,$(IMX_MKIMAGE_VERSION))
|
IMX_MKIMAGE_SITE = $(call github,nxp-imx,imx-mkimage,$(IMX_MKIMAGE_VERSION))
|
||||||
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
||||||
IMX_MKIMAGE_LICENSE_FILES = COPYING
|
IMX_MKIMAGE_LICENSE_FILES = LICENSE
|
||||||
HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
|
HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
|
ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
|
||||||
@ -15,7 +15,8 @@ ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLA
|
|||||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||||
-C $(@D)/iMX8M -f soc.mak mkimage_imx8
|
BUILD_LDFLAGS="$(HOST_LDFLAGS)" \
|
||||||
|
-C $(@D)/iMX8M SOC_DIR=iMX8M -f soc.mak mkimage_imx8
|
||||||
endef
|
endef
|
||||||
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
||||||
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
||||||
@ -23,7 +24,7 @@ define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
|||||||
$(INSTALL) -D -m 755 $(@D)/iMX8M/print_fit_hab.sh $(HOST_DIR)/bin/print_fit_hab.sh
|
$(INSTALL) -D -m 755 $(@D)/iMX8M/print_fit_hab.sh $(HOST_DIR)/bin/print_fit_hab.sh
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
# i.MX8 and i.MX8X
|
# i.MX8, i.MX8X and i.MX9
|
||||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||||
|
Loading…
Reference in New Issue
Block a user