opkg: bump to version 2017-07-28
[openwrt/openwrt.git] / package / boot / uboot-at91 / Makefile
1 #
2 # Copyright (C) 2016 Ben Whitten <ben.whitten@gmail.com>
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_VERSION:=2016.05
11 PKG_RELEASE:=1
12
13 PKG_HASH:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171
14
15 include $(INCLUDE_DIR)/u-boot.mk
16 include $(INCLUDE_DIR)/package.mk
17
18 define U-Boot/Default
19 BUILD_TARGET:=at91
20 BUILD_SUBTARGET:=legacy
21 UBOOT_IMAGE:=u-boot.bin boot.bin
22 endef
23
24 define U-Boot/at91sam9m10g45ek_nandflash
25 NAME:=AT91SAM9M10G45-EK board (NandFlash)
26 endef
27
28 define U-Boot/at91sam9x5ek_nandflash
29 NAME:=AT91SAM9X5-EK board (NandFlash)
30 endef
31
32 UBOOT_TARGETS := \
33 at91sam9m10g45ek_nandflash \
34 at91sam9x5ek_nandflash
35
36 define Build/Compile
37 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
38 CROSS_COMPILE=$(TARGET_CROSS) \
39 KCFLAGS="$(filter-out -fstack-protector, $(TARGET_CFLAGS))"
40 endef
41
42 $(eval $(call BuildPackage/U-Boot))