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/apritzel/arm-trusted-firmware
  12. PKG_SOURCE_DATE:=2018-02-10
  13. PKG_SOURCE_VERSION:=c9f55c023164a6c8c49f70f7ac6c68c626839d6f
  14. PKG_MIRROR_HASH:=94b5338592cf0bcc353b55da5fdd62c91ae8e6263822f73724cb72ecde3dbbf9
  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=sun50iw1p1 \
  30. bl31
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  33. $(CP) $(PKG_BUILD_DIR)/build/sun50iw1p1/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))