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
|
|
|
|
|
|
|
|
PKG_NAME:=arm-trusted-firmware-sunxi
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-12-19 12:12:49 +00:00
|
|
|
PKG_SOURCE_URL=https://github.com/ARM-software/arm-trusted-firmware
|
2021-02-22 21:32:04 +00:00
|
|
|
PKG_SOURCE_DATE:=2020-11-17
|
|
|
|
PKG_SOURCE_VERSION:=e2c509a39c6cc4dda8734e6509cdbe6e3603cdfc
|
|
|
|
PKG_MIRROR_HASH:=b212d369a5286ebbf6a5616486efa05fa54d4294fd6e9ba2e54fdfae9eda918d
|
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>
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2021-02-22 21:32:04 +00:00
|
|
|
define Package/arm-trusted-firmware-sunxi/Default
|
2017-07-15 22:01:21 +00:00
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
TITLE:=ARM Trusted Firmware for Allwinner
|
2017-09-19 18:34:47 +00:00
|
|
|
DEPENDS:=@TARGET_sunxi_cortexa53
|
2017-07-15 22:01:21 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-22 21:32:04 +00:00
|
|
|
define Package/arm-trusted-firmware-sunxi-a64
|
|
|
|
$(call Package/arm-trusted-firmware-sunxi/Default)
|
|
|
|
VARIANT:=sun50i_a64
|
|
|
|
endef
|
|
|
|
|
2020-04-24 07:58:53 +00:00
|
|
|
define Package/arm-trusted-firmware-sunxi-h6
|
|
|
|
$(call Package/arm-trusted-firmware-sunxi/Default)
|
|
|
|
VARIANT:=sun50i_h6
|
|
|
|
endef
|
|
|
|
|
2017-07-15 22:01:21 +00:00
|
|
|
export GCC_HONOUR_COPTS=s
|
|
|
|
|
|
|
|
MAKE_VARS = \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)"
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
2021-02-22 21:32:04 +00:00
|
|
|
PLAT=$(BUILD_VARIANT) \
|
2017-07-15 22:01:21 +00:00
|
|
|
bl31
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
2021-02-22 21:32:04 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/build/$(BUILD_VARIANT)/release/bl31.bin $(STAGING_DIR_IMAGE)/bl31_$(BUILD_VARIANT).bin
|
2017-07-15 22:01:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/arm-trusted-firmware-sunxi/install
|
|
|
|
endef
|
|
|
|
|
2021-02-22 21:32:04 +00:00
|
|
|
$(eval $(call BuildPackage,arm-trusted-firmware-sunxi-a64))
|
2020-04-24 07:58:53 +00:00
|
|
|
$(eval $(call BuildPackage,arm-trusted-firmware-sunxi-h6))
|