2020-04-12 11:51:49 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2020 Tobias Maedel <openwrt@tbspace.de>
|
|
|
|
#
|
|
|
|
# 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-rockchip
|
2020-06-28 18:40:06 +00:00
|
|
|
PKG_VERSION:=2.3
|
2020-04-12 11:51:49 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=atf-v$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/atf-builds/atf/releases/download/v$(PKG_VERSION)/atf-v$(PKG_VERSION).tar.gz?
|
2020-06-28 18:40:06 +00:00
|
|
|
PKG_HASH:=bf352298743aed594cf2958dd588e06ab6713fc514bb6f809bf55a85a87134c1
|
2020-04-12 11:51:49 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=license.md
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Tobias Maedel <openwrt@tbspace.de>
|
|
|
|
|
|
|
|
MAKE_PATH:=$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/arm-trusted-firmware-rockchip
|
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
TITLE:=ARM Trusted Firmware for Rockchip
|
|
|
|
DEPENDS:=@TARGET_rockchip_armv8
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(TAR) -C $(PKG_BUILD_DIR) -xf $(DL_DIR)/$(PKG_SOURCE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) -p $(STAGING_DIR_IMAGE)
|
2020-06-28 18:40:06 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/rk*.elf $(STAGING_DIR_IMAGE)/
|
2020-04-12 11:51:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/arm-trusted-firmware-rockchip/install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,arm-trusted-firmware-rockchip))
|