source: trunk/package/apex/Makefile @ 22900

Last change on this file since 22900 was 22900, checked in by acoul, 6 years ago

package/apex: update apex to version 1.6.9

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=apex
11PKG_VERSION:=1.6.9
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.buici.com/pub/apex/ \
16        ftp://metalab.unc.edu/pub/Linux/system/boot/apex/
17PKG_MD5SUM:=9606cf2e3fd2c9a86fe0b61388509a30
18PKG_TARGETS:=bin
19
20include $(INCLUDE_DIR)/package.mk
21
22export GCC_HONOUR_COPTS=s
23
24define 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
31endef
32
33define build_apex
34        $(MAKE) -C $(PKG_BUILD_DIR) \
35                ARCH=arm \
36                $(1)_config
37        $(SED) 's,.*CONFIG_AEABI.*,$(if $(CONFIG_EABI_SUPPORT),CONFIG_AEABI=y,# CONFIG_AEABI is not set),' $(PKG_BUILD_DIR)/.config
38        $(MAKE) -C $(PKG_BUILD_DIR) \
39                $(TARGET_CONFIGURE_OPTS) \
40                KBUILD_HAVE_NLS=no \
41                ARCH=arm \
42                clean all
43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
44endef
45
46define Build/Compile
47        $(INSTALL_DIR) $(PKG_BUILD_DIR)/out
48        $(call build_apex,slugos-nslu2-armeb,nslu2-armeb)
49        $(call build_apex,slugos-nslu2-16mb-armeb,nslu2-16mb-armeb)
50        $(call build_apex,slugos-fsg3-armeb,fsg3-armeb)
51        $(call build_apex,slugos-nas100d-armeb,nas100d-armeb)
52endef
53
54define Package/apex/install
55        $(INSTALL_DIR) $(STAGING_DIR)/apex
56        $(CP) $(PKG_BUILD_DIR)/out/*.bin $(1)/
57endef
58
59$(eval $(call BuildPackage,apex))
Note: See TracBrowser for help on using the repository browser.