1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2017 Hauke Mehrtens
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=arm-trusted-firmware-sunxi
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=https://github.com/ARM-software/arm-trusted-firmware
  12. PKG_SOURCE_DATE:=2018-10-02
  13. PKG_SOURCE_VERSION:=dbc8d9496ead9ecdd7c2a276b542a4fbbbf64027
  14. PKG_MIRROR_HASH:=c81521a27b86f606e927b4e346286540b862828c8d49292eae1f5c6adfc24001
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=license.md
  17. PKG_MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/arm-trusted-firmware-sunxi
  20. SECTION:=boot
  21. CATEGORY:=Boot Loaders
  22. TITLE:=ARM Trusted Firmware for Allwinner
  23. DEPENDS:=@TARGET_sunxi_cortexa53
  24. endef
  25. export GCC_HONOUR_COPTS=s
  26. MAKE_VARS = \
  27. CROSS_COMPILE="$(TARGET_CROSS)"
  28. MAKE_FLAGS += \
  29. PLAT=sun50i_a64 \
  30. bl31
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  33. $(CP) $(PKG_BUILD_DIR)/build/sun50i_a64/release/bl31.bin $(STAGING_DIR_IMAGE)/bl31.bin
  34. endef
  35. define Package/arm-trusted-firmware-sunxi/install
  36. endef
  37. $(eval $(call BuildPackage,arm-trusted-firmware-sunxi))