1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-rockchip
  9. PKG_RELEASE:=1
  10. PKG_VERSION:=2021-10-13-fa1e0167
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-libre.tar.xz
  12. PKG_SOURCE_URL:=https://librecmc.org/librecmc/downloads/sources/v1.5
  13. PKG_HASH:=4292d29265218893b7f26c005fbb44361a667e8916ce2d940dc19617d017f8d0
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=license.md
  16. PKG_MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/arm-trusted-firmware-rockchip
  19. SECTION:=boot
  20. CATEGORY:=Boot Loaders
  21. TITLE:=ARM Trusted Firmware for Rockchip
  22. DEPENDS:=@TARGET_rockchip_armv8
  23. endef
  24. export GCC_HONOUR_COPTS=s
  25. MAKE_VARS = \
  26. CROSS_COMPILE="$(TARGET_CROSS)"
  27. MAKE_FLAGS += \
  28. PLAT=rk3328 \
  29. bl31
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  32. $(CP) $(PKG_BUILD_DIR)/build/rk3328/release/bl31/bl31.elf $(STAGING_DIR_IMAGE)/rk3328_bl31.elf
  33. endef
  34. define Package/arm-trusted-firmware-rockchip/install
  35. endef
  36. $(eval $(call BuildPackage,arm-trusted-firmware-rockchip))