arm-trusted-firmware-sunxi: depend on sunxi target
[openwrt/staging/wigyori.git] / package / boot / arm-trusted-firmware-sunxi / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=arm-trusted-firmware-sunxi
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=https://github.com/apritzel/arm-trusted-firmware
15 PKG_SOURCE_DATE:=2016-07-12
16 PKG_SOURCE_VERSION:=87e8aedd80e6448a55b2328768d956fcb5f5d410
17 PKG_MIRROR_HASH:=4e71a7d4bc0613533854c646b0fa574b18503c0ab28621aac67c70b9827562d8
18
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=license.md
21
22 PKG_MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
23
24 include $(INCLUDE_DIR)/package.mk
25
26
27 define Package/arm-trusted-firmware-sunxi
28 SECTION:=boot
29 CATEGORY:=Boot Loaders
30 TITLE:=ARM Trusted Firmware for Allwinner
31 DEPENDS:=@TARGET_sunxi_cortexa53
32 endef
33
34 export GCC_HONOUR_COPTS=s
35
36 MAKE_VARS = \
37 CROSS_COMPILE="$(TARGET_CROSS)"
38
39 MAKE_FLAGS += \
40 PLAT=sun50iw1p1 \
41 DEBUG=1 \
42 bl31
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
46 $(CP) $(PKG_BUILD_DIR)/build/sun50iw1p1/debug/bl31.bin $(STAGING_DIR_IMAGE)/bl31.bin
47 endef
48
49 define Package/arm-trusted-firmware-sunxi/install
50 endef
51
52 $(eval $(call BuildPackage,arm-trusted-firmware-sunxi))