2021-02-03 14:41:50 +00:00
|
|
|
#
|
|
|
|
# Copyright 2021 Daniel Golle
|
|
|
|
#
|
|
|
|
# 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-tools
|
2023-07-22 14:10:54 +00:00
|
|
|
PKG_VERSION:=2.9
|
2021-02-03 14:41:50 +00:00
|
|
|
PKG_RELEASE:=1
|
2023-07-22 14:10:54 +00:00
|
|
|
PKG_HASH:=76a66a1de0c01aeb83dfc7b72b51173fe62c6e51d6fca17cc562393117bed08b
|
2021-02-03 14:41:50 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
PKG_HOST_ONLY:=1
|
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/trusted-firmware-a-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/trusted-firmware-a.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Package/arm-trusted-firmware-tools
|
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
TITLE:=ARM Trusted Firmware tools
|
|
|
|
URL:=https://www.trustedfirmware.org
|
|
|
|
BUILDONLY:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C \
|
|
|
|
$(HOST_BUILD_DIR)/tools/fiptool \
|
2021-02-10 01:05:00 +00:00
|
|
|
CPPFLAGS="$(HOST_CFLAGS)" \
|
2021-02-03 14:41:50 +00:00
|
|
|
LDFLAGS="$(HOST_LDFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/fiptool/fiptool $(STAGING_DIR_HOST)/bin/
|
2022-09-06 20:16:06 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/sptool/sptool.py $(STAGING_DIR_HOST)/bin/
|
2021-02-03 14:41:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/fiptool
|
2022-09-06 20:16:06 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/sptool.py $(STAGING_DIR_HOST)/bin/sptool
|
2021-02-03 14:41:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,arm-trusted-firmware-tools))
|
|
|
|
$(eval $(call HostBuild))
|