2017-07-15 22:01:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 Hauke Mehrtens
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2023-12-18 02:54:17 +00:00
|
|
|
PKG_VERSION:=2.10
|
2017-07-15 22:01:21 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2023-12-18 02:54:17 +00:00
|
|
|
PKG_HASH:=88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201
|
2017-07-15 22:01:21 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=license.md
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
|
|
|
|
|
2022-08-11 21:29:52 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2021-02-22 21:32:04 +00:00
|
|
|
include $(INCLUDE_DIR)/trusted-firmware-a.mk
|
2017-07-15 22:01:21 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
define Trusted-Firmware-A/Default
|
|
|
|
BUILD_TARGET:=sunxi
|
|
|
|
BUILD_SUBTARGET:=cortexa53
|
2017-07-15 22:01:21 +00:00
|
|
|
endef
|
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
define Trusted-Firmware-A/sunxi-a64
|
|
|
|
NAME:=Allwinner A64
|
|
|
|
PLAT:=sun50i_a64
|
2021-02-22 21:32:04 +00:00
|
|
|
endef
|
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
define Trusted-Firmware-A/sunxi-h6
|
|
|
|
NAME:=Allwinner H6
|
|
|
|
PLAT:=sun50i_h6
|
2020-04-24 07:58:53 +00:00
|
|
|
endef
|
|
|
|
|
2023-09-01 22:18:18 +00:00
|
|
|
define Trusted-Firmware-A/sunxi-h616
|
|
|
|
NAME:=Allwinner H616
|
|
|
|
PLAT:=sun50i_h616
|
|
|
|
endef
|
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
TFA_TARGETS:= \
|
|
|
|
sunxi-a64 \
|
2023-09-01 22:18:18 +00:00
|
|
|
sunxi-h6 \
|
|
|
|
sunxi-h616
|
2017-07-15 22:01:21 +00:00
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
define Package/trusted-firmware-a/install
|
2017-07-15 22:01:21 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
2022-12-26 18:58:14 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl31.bin $(STAGING_DIR_IMAGE)/bl31_$(BUILD_VARIANT).bin
|
2017-07-15 22:01:21 +00:00
|
|
|
endef
|
|
|
|
|
2022-12-26 18:58:14 +00:00
|
|
|
$(eval $(call BuildPackage/Trusted-Firmware-A))
|