diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-10-25 12:20:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 12:20:44 -0300 |
commit | 348d3a23be97e0d8827d7a4938c85cb6e62f79d5 (patch) | |
tree | c7593ba5313370e75b564179f16faa16868c8dc9 /recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch | |
parent | d6082e9971906fa46876dff9330a0db9060ef8ef (diff) | |
parent | c81ddb2dc11fe405b1b190d082f1798387eff071 (diff) | |
download | meta-freescale-348d3a23be97e0d8827d7a4938c85cb6e62f79d5.tar.gz |
Merge pull request #896 from zandrey/upgrade-to-nxp-5.10.52-2.1.0
Upgrade to NXP Release: 5.10.52-2.1.0
Diffstat (limited to 'recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch')
-rw-r--r-- | recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch | 82 |
1 files changed, 82 insertions, 0 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 new file mode 100644 index 00000000..a879208c --- /dev/null +++ b/recipes-bsp/imx-mkimage/files/0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch | |||
@@ -0,0 +1,82 @@ | |||
1 | From a4af3747abd88247bf4498ec0cf67a4151e64d41 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
3 | Date: Thu, 21 Oct 2021 08:53:38 +0000 | ||
4 | Subject: [PATCH] iMX8M: soc.mak: use native mkimage from sysroot | ||
5 | |||
6 | mkimage tool is provided as a part of sysroot from Yocto build. Current | ||
7 | implementation on the imx-mkimge on the other hand copies it locally in | ||
8 | order to invoke it from within the build folder. | ||
9 | |||
10 | Since recent updates, mkimage requires openssl.so to be installed, which | ||
11 | when local copy is used causes the tool not to operate and fails the | ||
12 | build. | ||
13 | |||
14 | Use it from the build sysroot, and do not pull the local version of it. | ||
15 | |||
16 | Upstream-Status: Inappropriate [OE-specific] | ||
17 | |||
18 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
19 | --- | ||
20 | iMX8M/soc.mak | 11 +++++------ | ||
21 | 1 file changed, 5 insertions(+), 6 deletions(-) | ||
22 | |||
23 | diff --git a/iMX8M/soc.mak b/iMX8M/soc.mak | ||
24 | index 4bfdc37..03b05f7 100644 | ||
25 | --- a/iMX8M/soc.mak | ||
26 | +++ b/iMX8M/soc.mak | ||
27 | @@ -148,7 +148,7 @@ u-boot.itb: $(dtb) | ||
28 | ./$(PAD_IMAGE) bl31.bin | ||
29 | ./$(PAD_IMAGE) u-boot-nodtb.bin $(dtb) | ||
30 | DEK_BLOB_LOAD_ADDR=$(DEK_BLOB_LOAD_ADDR) TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ATF_LOAD_ADDR=$(ATF_LOAD_ADDR) ./mkimage_fit_atf.sh $(dtb) > u-boot.its | ||
31 | - ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb | ||
32 | + mkimage -E -p 0x3000 -f u-boot.its u-boot.itb | ||
33 | @rm -f u-boot.its $(dtb) | ||
34 | |||
35 | dtb_ddr3l = valddr3l.dtb | ||
36 | @@ -160,7 +160,7 @@ u-boot-ddr3l.itb: $(dtb_ddr3l) | ||
37 | ./$(PAD_IMAGE) bl31.bin | ||
38 | ./$(PAD_IMAGE) u-boot-nodtb.bin $(dtb_ddr3l) | ||
39 | DEK_BLOB_LOAD_ADDR=$(DEK_BLOB_LOAD_ADDR) TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ATF_LOAD_ADDR=$(ATF_LOAD_ADDR) ./mkimage_fit_atf.sh $(dtb_ddr3l) > u-boot-ddr3l.its | ||
40 | - ./mkimage_uboot -E -p 0x3000 -f u-boot-ddr3l.its u-boot-ddr3l.itb | ||
41 | + mkimage -E -p 0x3000 -f u-boot-ddr3l.its u-boot-ddr3l.itb | ||
42 | @rm -f u-boot.its $(dtb_ddr3l) | ||
43 | |||
44 | dtb_ddr3l_evk = evkddr3l.dtb | ||
45 | @@ -172,7 +172,7 @@ u-boot-ddr3l-evk.itb: $(dtb_ddr3l_evk) | ||
46 | ./$(PAD_IMAGE) bl31.bin | ||
47 | ./$(PAD_IMAGE) u-boot-nodtb.bin $(dtb_ddr3l_evk) | ||
48 | DEK_BLOB_LOAD_ADDR=$(DEK_BLOB_LOAD_ADDR) TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ATF_LOAD_ADDR=$(ATF_LOAD_ADDR) ./mkimage_fit_atf.sh $(dtb_ddr3l_evk) > u-boot-ddr3l-evk.its | ||
49 | - ./mkimage_uboot -E -p 0x3000 -f u-boot-ddr3l-evk.its u-boot-ddr3l-evk.itb | ||
50 | + mkimage -E -p 0x3000 -f u-boot-ddr3l-evk.its u-boot-ddr3l-evk.itb | ||
51 | @rm -f u-boot.its $(dtb_ddr3l_evk) | ||
52 | |||
53 | dtb_ddr4 = valddr4.dtb | ||
54 | @@ -184,7 +184,7 @@ u-boot-ddr4.itb: $(dtb_ddr4) | ||
55 | ./$(PAD_IMAGE) bl31.bin | ||
56 | ./$(PAD_IMAGE) u-boot-nodtb.bin $(dtb_ddr4) | ||
57 | DEK_BLOB_LOAD_ADDR=$(DEK_BLOB_LOAD_ADDR) TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ATF_LOAD_ADDR=$(ATF_LOAD_ADDR) ./mkimage_fit_atf.sh $(dtb_ddr4) > u-boot-ddr4.its | ||
58 | - ./mkimage_uboot -E -p 0x3000 -f u-boot-ddr4.its u-boot-ddr4.itb | ||
59 | + mkimage -E -p 0x3000 -f u-boot-ddr4.its u-boot-ddr4.itb | ||
60 | @rm -f u-boot.its $(dtb_ddr4) | ||
61 | |||
62 | dtb_ddr4_evk = evkddr4.dtb | ||
63 | @@ -196,7 +196,7 @@ u-boot-ddr4-evk.itb: $(dtb_ddr4_evk) | ||
64 | ./$(PAD_IMAGE) bl31.bin | ||
65 | ./$(PAD_IMAGE) u-boot-nodtb.bin $(dtb_ddr4_evk) | ||
66 | DEK_BLOB_LOAD_ADDR=$(DEK_BLOB_LOAD_ADDR) TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ATF_LOAD_ADDR=$(ATF_LOAD_ADDR) ./mkimage_fit_atf.sh $(dtb_ddr4_evk) > u-boot-ddr4-evk.its | ||
67 | - ./mkimage_uboot -E -p 0x3000 -f u-boot-ddr4-evk.its u-boot-ddr4-evk.itb | ||
68 | + mkimage -E -p 0x3000 -f u-boot-ddr4-evk.its u-boot-ddr4-evk.itb | ||
69 | @rm -f u-boot.its $(dtb_ddr4_evk) | ||
70 | |||
71 | ifeq ($(HDMI),yes) | ||
72 | @@ -312,7 +312,6 @@ nightly : | ||
73 | @$(WGET) -q $(SERVER)/$(DIR)/$(FW_DIR)/fsl-$(PLAT)-evk.dtb -O fsl-$(PLAT)-evk.dtb | ||
74 | @$(WGET) -q $(SERVER)/$(DIR)/$(FW_DIR)/signed_hdmi_imx8m.bin -O signed_hdmi_imx8m.bin | ||
75 | @$(WGET) -q $(SERVER)/$(DIR)/$(FW_DIR)/signed_dp_imx8m.bin -O signed_dp_imx8m.bin | ||
76 | - @$(WGET) -q $(SERVER)/$(DIR)/$(FW_DIR)/mkimage_uboot -O mkimage_uboot | ||
77 | |||
78 | archive : | ||
79 | git ls-files --others --exclude-standard -z | xargs -0 tar rvf $(ARCHIVE_PATH)/$(ARCHIVE_NAME) | ||
80 | -- | ||
81 | 2.17.1 | ||
82 | |||