[Buildroot] [git commit branch/next] boot/ti-k3-boot-firmware: new package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Aug 22 09:53:55 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=2389c76a95725b91ba538b56fb7da70877c7d3ad
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
This is extracted from a patch from Xuanhao Shi, Anand Gadiyar and
Andreas Dannenberg submitted at
https://patchwork.ozlabs.org/project/buildroot/patch/20230616002359.4139814-3-dannenberg@ti.com/.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
DEVELOPERS | 2 ++
boot/Config.in | 1 +
boot/ti-k3-boot-firmware/Config.in | 7 +++++++
boot/ti-k3-boot-firmware/ti-k3-boot-firmware.hash | 3 +++
boot/ti-k3-boot-firmware/ti-k3-boot-firmware.mk | 21 +++++++++++++++++++++
5 files changed, 34 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index abd633f840..3b60189c77 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -132,6 +132,7 @@ F: package/libxmlrpc/
F: package/python-docopt/
N: Anand Gadiyar <gadiyar at ti.com>
+F: boot/ti-k3-boot-firmware/
F: boot/ti-k3-r5-loader/
N: André Zwing <nerv at dawncrow.de>
@@ -3114,6 +3115,7 @@ N: Wojciech NiziÅski <niziak at spox.org>
F: package/fwup/
N: Xuanhao Shi <X15000177 at gmail.com>
+F: boot/ti-k3-boot-firmware/
F: boot/ti-k3-r5-loader/
N: Yair Ben Avraham <yairba at protonmail.com>
diff --git a/boot/Config.in b/boot/Config.in
index 9d7f5c4cb9..87e1b7c00e 100644
--- a/boot/Config.in
+++ b/boot/Config.in
@@ -19,6 +19,7 @@ source "boot/opensbi/Config.in"
source "boot/s500-bootloader/Config.in"
source "boot/shim/Config.in"
source "boot/syslinux/Config.in"
+source "boot/ti-k3-boot-firmware/Config.in"
source "boot/ti-k3-r5-loader/Config.in"
source "boot/uboot/Config.in"
source "boot/vexpress-firmware/Config.in"
diff --git a/boot/ti-k3-boot-firmware/Config.in b/boot/ti-k3-boot-firmware/Config.in
new file mode 100644
index 0000000000..d80bb4bdb3
--- /dev/null
+++ b/boot/ti-k3-boot-firmware/Config.in
@@ -0,0 +1,7 @@
+config BR2_TARGET_TI_K3_BOOT_FIRMWARE
+ bool "ti-k3-boot-firmware"
+ depends on BR2_aarch64
+ help
+ This package downloads and installs the TI-specific ti-sysfw
+ and ti-dm firmware needed to boot TI K3 platforms (which
+ include AM62x, AM64x, AM65x and more).
diff --git a/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.hash b/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.hash
new file mode 100644
index 0000000000..95131180ef
--- /dev/null
+++ b/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 ab20ffbe7bba7e94be246b3417d33a914b3f07c16c47ef5a7f7602349a666a61 LICENSE.ti
+sha256 6032a258ce731d987576115f5de44c677a6b0cf8bddcd61a9a2852928bdfff92 ti-linux-firmware-08.06.00.006.tar.xz
diff --git a/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.mk b/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.mk
new file mode 100644
index 0000000000..1f8ade207c
--- /dev/null
+++ b/boot/ti-k3-boot-firmware/ti-k3-boot-firmware.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# ti-k3-boot-firmware
+#
+################################################################################
+
+# The hash 340194800a581baf976360386dfc7b5acab8d948 defined in the
+# Makefile of ti-k3-image-gen corresponds to the tag 08.06.00.006.
+TI_K3_BOOT_FIRMWARE_VERSION = 08.06.00.006
+TI_K3_BOOT_FIRMWARE_SITE = https://git.ti.com/cgit/processor-firmware/ti-linux-firmware/snapshot
+TI_K3_BOOT_FIRMWARE_SOURCE = ti-linux-firmware-$(TI_K3_BOOT_FIRMWARE_VERSION).tar.xz
+TI_K3_BOOT_FIRMWARE_INSTALL_IMAGES = YES
+TI_K3_BOOT_FIRMWARE_LICENSE = TI Proprietary
+TI_K3_BOOT_FIRMWARE_LICENSE_FILES = LICENSE.ti
+
+define TI_K3_BOOT_FIRMWARE_INSTALL_IMAGES_CMDS
+ cp -dpfr $(@D)/ti-sysfw $(BINARIES_DIR)/
+ cp -dpfr $(@D)/ti-dm $(BINARIES_DIR)/
+endef
+
+$(eval $(generic-package))
More information about the buildroot
mailing list