aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-12-17 11:40:54 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-12-24 22:42:03 +0100
commitf18288e26715f8cdef6c6d62a196dfd4ade8265e (patch)
tree0099fb5ca2e7d41118e3ff334946ebd07fa553b8 /package/boot
parentf9782f5bcd13e419abf9c84017ada27fa9764011 (diff)
downloadupstream-f18288e26715f8cdef6c6d62a196dfd4ade8265e.tar.gz
upstream-f18288e26715f8cdef6c6d62a196dfd4ade8265e.tar.bz2
upstream-f18288e26715f8cdef6c6d62a196dfd4ade8265e.zip
arm-trusted-firmware-bcm63xx: add ATF for Broadcom devices
Right now it includes bcm4908 variant only that is required by BCM4908 family devices with U-Boot. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/arm-trusted-firmware-bcm63xx/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/boot/arm-trusted-firmware-bcm63xx/Makefile b/package/boot/arm-trusted-firmware-bcm63xx/Makefile
new file mode 100644
index 0000000000..12571e8d96
--- /dev/null
+++ b/package/boot/arm-trusted-firmware-bcm63xx/Makefile
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0
+
+include $(TOPDIR)/rules.mk
+
+PKG_VERSION:=2.2
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL=$(PROJECT_GIT)/project/bcm63xx/atf.git
+PKG_SOURCE_DATE:=2021-12-24
+PKG_SOURCE_VERSION:=e6d46baf3fae79f693f90bf34f7284c3dfc64aef
+PKG_MIRROR_HASH:=9d5d04f572b1b6ddc6eb3064b9cb09f5fe982e82d350790041d35316349af124
+
+PKG_MAINTAINER:=Rafał Miłecki <rafal@milecki.pl>
+
+include $(INCLUDE_DIR)/trusted-firmware-a.mk
+include $(INCLUDE_DIR)/package.mk
+
+define Trusted-Firmware-A/Default
+ PLAT:=bcm
+ DEFAULT:=y
+endef
+
+define Trusted-Firmware-A/bcm4908
+ BUILD_TARGET:=bcm4908
+ NAME:=BCM4908
+ BRCM_CHIP=4908
+ TFA_IMAGE:=bl31.bin
+endef
+
+TFA_TARGETS:= \
+ bcm4908
+
+TFA_MAKE_FLAGS += \
+ BRCM_CHIP=$(BRCM_CHIP)
+
+define Package/trusted-firmware-a/install
+ $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/$(TFA_IMAGE) $(STAGING_DIR_IMAGE)/
+endef
+
+$(eval $(call BuildPackage/Trusted-Firmware-A))