initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
From 4870df3d70e94f9f0d6c06f610cea2d88cd6edb5 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 95749b1..c1aa902 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.25.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 3ef9f773ce1a402607957fa73775d2e0a591a1a5 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 d714259..aecf84b 100644
|
||||
--- a/iMX8M/soc.mak
|
||||
+++ b/iMX8M/soc.mak
|
||||
@@ -67,7 +67,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
|
||||
|
||||
u-boot-spl-ddr.bin: u-boot-spl.bin lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin
|
||||
@objcopy -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_imem_pad.bin
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From b25b4324be4c0dd9ee5fecdf2981d291fb187686 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= <nerv@dawncrow.de>
|
||||
Date: Mon, 25 Feb 2019 22:15:55 +0100
|
||||
Subject: [PATCH] Add unused fake version
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The Makefile makes the assumption that the build process runs
|
||||
from a Git clone of the source code.
|
||||
We can safely add a fake version here, because the code to
|
||||
print it is broken anyway.
|
||||
|
||||
Signed-off-by: André Hentschel <nerv@dawncrow.de>
|
||||
---
|
||||
Makefile | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 49ef486..b966399 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -37,9 +37,7 @@ $(MKIMG): src/build_info.h $(SRCS)
|
||||
bin: $(MKIMG)
|
||||
|
||||
src/build_info.h:
|
||||
- @echo -n '#define MKIMAGE_COMMIT 0x' > src/build_info.h
|
||||
- @git rev-parse --short=8 HEAD >> src/build_info.h
|
||||
- @echo '' >> src/build_info.h
|
||||
+ @echo '#define MKIMAGE_COMMIT 0xdeadbeef' > src/build_info.h
|
||||
|
||||
help:
|
||||
@echo $(CURR_DIR)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_HOST_IMX_MKIMAGE
|
||||
bool "host imx-mkimage"
|
||||
help
|
||||
imx-mkimage is used to combine input images and generate
|
||||
final boot image with appropriate IVT set.
|
||||
|
||||
https://source.codeaurora.org/external/imx/imx-mkimage
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 2746136aa5ed79ba24cfbe877d29022a2a33f6614b1bba728e95d1b2f0448196 imx-mkimage-rel_imx_5.4.70_2.3.0-br1.tar.gz
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
||||
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# imx-mkimage
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IMX_MKIMAGE_VERSION = rel_imx_5.4.70_2.3.0
|
||||
IMX_MKIMAGE_SITE = https://source.codeaurora.org/external/imx/imx-mkimage
|
||||
IMX_MKIMAGE_SITE_METHOD = git
|
||||
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
||||
IMX_MKIMAGE_LICENSE_FILES = COPYING
|
||||
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)
|
||||
# i.MX8M needs a different binary
|
||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||
-C $(@D)/iMX8M -f soc.mak mkimage_imx8
|
||||
endef
|
||||
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_fit_atf.sh $(HOST_DIR)/bin/mkimage_fit_atf.sh
|
||||
endef
|
||||
else
|
||||
# i.MX8 and i.MX8X
|
||||
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
||||
-C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
|
||||
endef
|
||||
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
||||
endef
|
||||
endif
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user