diff options
author | Biwen Li <biwen.li@nxp.com> | 2019-04-15 17:45:53 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-06-06 15:40:08 +0200 |
commit | 17dcbe1b8e2b7074ab1822f117e48a5c04997e4a (patch) | |
tree | 8994207ec5f8c9fd991e7ad3afb16a841b2a25f9 /package/boot/tfa-layerscape | |
parent | f7f1f39c34482ce53df1e85a08c76b9edabd5e86 (diff) | |
download | upstream-17dcbe1b8e2b7074ab1822f117e48a5c04997e4a.tar.gz upstream-17dcbe1b8e2b7074ab1822f117e48a5c04997e4a.tar.bz2 upstream-17dcbe1b8e2b7074ab1822f117e48a5c04997e4a.zip |
layerscape: add ARM Trusted Firmware package
Add TF-A packages for Layerscape to implement trusted firmware.
Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'package/boot/tfa-layerscape')
-rw-r--r-- | package/boot/tfa-layerscape/Makefile | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/package/boot/tfa-layerscape/Makefile b/package/boot/tfa-layerscape/Makefile new file mode 100644 index 0000000000..4f1c709fc6 --- /dev/null +++ b/package/boot/tfa-layerscape/Makefile @@ -0,0 +1,140 @@ +# +# Copyright 2019 NXP +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=tfa-layerscape +PKG_VERSION:=lsdk-1903 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/atf +PKG_SOURCE_VERSION:=7e34aebe658c7c3439d2d68b0ce6b9776e8e6996 +PKG_MIRROR_HASH:=9cf0bc32fa589a0ee7c48c87898679e645341f29da1253d0ba5d2e82c6ea074d +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) +PKG_BUILD_DEPENDS:=uboot-layerscape + +include $(INCLUDE_DIR)/package.mk + +define Package/tfa-layerscape/Config + define Package/tfa-$(1) + SECTION:=boot + CATEGORY:=Boot Loaders + TITLE:=$(2) + DEPENDS:=@TARGET_layerscape_armv8_64b +layerscape-rcw-$(1) + HIDDEN:=1 + VARIANT:=$(1) + BIN_BL2:=$(3) + BIN_FIP:=$(4) + endef +endef + +define Package/tfa-layerscape/Install + define Package/tfa-$(1)/install + $(INSTALL_DIR) $(STAGING_DIR_IMAGE) + $(CP) $(PKG_BUILD_DIR)/$(BIN_BL2) $(STAGING_DIR_IMAGE)/$(1)-bl2.pbl + $(CP) $(PKG_BUILD_DIR)/$(BIN_FIP) $(STAGING_DIR_IMAGE)/$(1)-fip.bin + endef +endef + +define Build/Compile + $(eval $(Package/tfa-layerscape/$(BUILD_VARIANT))) \ + $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) \ + fip pbl PLAT=$(PLAT) BOOT_MODE=$(BOOT_MODE) \ + RCW=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-rcw.bin \ + BL33=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin +endef + +define Package/tfa-layerscape/ls1012ardb + TITLE:=NXP LS1012ARDB Trusted Firmware + PLAT:=ls1012ardb + BOOT_MODE:=qspi + BIN_BL2:=build/ls1012ardb/release/bl2_qspi.pbl + BIN_FIP:=build/ls1012ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1012afrwy + TITLE:=NXP LS1012AFRWY Trusted Firmware + PLAT:=ls1012afrwy + BOOT_MODE:=qspi + BIN_BL2:=build/ls1012afrwy/release/bl2_qspi.pbl + BIN_FIP:=build/ls1012afrwy/release/fip.bin +endef + +define Package/tfa-layerscape/ls1043ardb + TITLE:=NXP LS1043ARDB Trusted Firmware + PLAT:=ls1043ardb + BOOT_MODE:=nor + BIN_BL2:=build/ls1043ardb/release/bl2_nor.pbl + BIN_FIP:=build/ls1043ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1043ardb-sdboot + TITLE:=NXP LS1043ARDB SD Boot Trusted Firmware + PLAT:=ls1043ardb + BOOT_MODE:=sd + BIN_BL2:=build/ls1043ardb/release/bl2_sd.pbl + BIN_FIP:=build/ls1043ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1046ardb + TITLE:=NXP LS1046ARDB Trusted Firmware + PLAT:=ls1046ardb + BOOT_MODE:=qspi + BIN_BL2:=build/ls1046ardb/release/bl2_qspi.pbl + BIN_FIP:=build/ls1046ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1046ardb-sdboot + TITLE:=NXP LS1046ARDB SD Boot Trusted Firmware + PLAT:=ls1046ardb + BOOT_MODE:=sd + BIN_BL2:=build/ls1046ardb/release/bl2_sd.pbl + BIN_FIP:=build/ls1046ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1088ardb + TITLE:=NXP LS1088ARDB Trusted Firmware + PLAT:=ls1088ardb + BOOT_MODE:=qspi + BIN_BL2:=build/ls1088ardb/release/bl2_qspi.pbl + BIN_FIP:=build/ls1088ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls1088ardb-sdboot + TITLE:=NXP LS1088ARDB SD Boot Trusted Firmware + PLAT:=ls1088ardb + BOOT_MODE:=sd + BIN_BL2:=build/ls1088ardb/release/bl2_sd.pbl + BIN_FIP:=build/ls1088ardb/release/fip.bin +endef + +define Package/tfa-layerscape/ls2088ardb + TITLE:=NXP LS2088ARDB Trusted Firmware + PLAT:=ls2088ardb + BOOT_MODE:=nor + BIN_BL2:=build/ls2088ardb/release/bl2_nor.pbl + BIN_FIP:=build/ls2088ardb/release/fip.bin +endef + +TFAS := \ + ls1012ardb \ + ls1012afrwy \ + ls1043ardb \ + ls1043ardb-sdboot \ + ls1046ardb \ + ls1046ardb-sdboot \ + ls1088ardb \ + ls1088ardb-sdboot \ + ls2088ardb + +$(foreach tfa,$(TFAS), \ + $(eval $(Package/tfa-layerscape/$(tfa))) \ + $(eval $(call Package/tfa-layerscape/Config,$(tfa),$(TITLE),$(BIN_BL2),$(BIN_FIP))) \ + $(eval $(call Package/tfa-layerscape/Install,$(tfa))) \ + $(eval $(call BuildPackage,tfa-$(tfa))) \ +) |