treewide: clean up download hashes
[openwrt/staging/chunkeey.git] / package / boot / apex / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=apex
12 PKG_VERSION:=1.6.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
17 PKG_HASH:=1d2bc04c2c6bb3d2d6c1916b6dc559cda2b1ecb045d7801fd49af6af4234abeb
18 PKG_TARGETS:=bin
19
20 include $(INCLUDE_DIR)/package.mk
21
22 export GCC_HONOUR_COPTS=s
23
24 define Package/apex
25 SECTION:=boot
26 CATEGORY:=Boot Loaders
27 DEPENDS:=@TARGET_ixp4xx
28 DEFAULT:=y
29 TITLE:=Boot loader for NSLU2, FSG3, NAS100D and others
30 URL:=http://wiki.buici.com/wiki/Apex_Bootloader
31 endef
32
33 define build_apex
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 ARCH=arm \
36 $(1)_config
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 KBUILD_HAVE_NLS=no \
40 ARCH=arm \
41 clean all
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
43 endef
44
45 define Build/Compile
46 $(INSTALL_DIR) $(PKG_BUILD_DIR)/out
47 $(call build_apex,slugos-nslu2-armeb,nslu2-armeb)
48 $(call build_apex,slugos-nslu2-16mb-armeb,nslu2-16mb-armeb)
49 $(call build_apex,slugos-fsg3-armeb,fsg3-armeb)
50 $(call build_apex,slugos-nas100d-armeb,nas100d-armeb)
51 endef
52
53 define Package/apex/install
54 $(INSTALL_DIR) $(STAGING_DIR)/apex
55 $(CP) $(PKG_BUILD_DIR)/out/*.bin $(1)/
56 endef
57
58 define Build/InstallDev
59 $(CP) $(PKG_BUILD_DIR)/out/*.bin $(KERNEL_BUILD_DIR)
60 endef
61
62 $(eval $(call BuildPackage,apex))