brcm27xx-armstub: add new package
[openwrt/staging/chunkeey.git] / package / kernel / brcm27xx-armstub / Makefile
1 #
2 # Copyright (C) 2019 OpenWrt.org
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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=brcm27xx-armstub
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=https://github.com/raspberrypi/tools
15 PKG_SOURCE_DATE:=2019-05-09
16 PKG_SOURCE_VERSION:=49719d5544cd33b8c146235e1420f68cd92420fe
17 PKG_MIRROR_HASH:=91e9d14b5f3d7ce7486de7199d15234ce46ead3d87decce77466cd2f28b9e085
18
19 PKG_FLAGS:=nonshared
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/brcm27xx-armstub
24 SECTION:=boot
25 CATEGORY:=Boot Loaders
26 TITLE:=brcm27xx-armstub
27 DEPENDS:=@TARGET_brcm2708
28 endef
29
30 define Package/brcm27xx-armstub/description
31 ARM stubs for brcm27xx.
32 endef
33
34 MAKE_PATH = armstubs
35
36 MAKE_FLAGS += \
37 CC8=$(TARGET_CC) \
38 LD8=$(TARGET_CROSS)ld \
39 OBJCOPY8=$(TARGET_CROSS)objcopy \
40 OBJDUMP8=$(TARGET_CROSS)objdump
41
42 define Build/Compile
43 $(call Build/Compile/Default,armstub8-gic.elf armstub8-gic.bin)
44 endef
45
46 define Build/InstallDev
47 $(CP) $(PKG_BUILD_DIR)/armstubs/armstub8-gic.bin $(KERNEL_BUILD_DIR)
48 endef
49
50 define Package/brcm27xx-armstub/install
51 true
52 endef
53
54 $(eval $(call BuildPackage,brcm27xx-armstub))