[package] openssl: add a patch to support DTLS compatibility with Cisco AnyConnect...
[openwrt/svn-archive/archive.git] / package / apex / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=apex
11 PKG_VERSION:=1.5.14
12 PKG_RELEASE:=3
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.buici.com/pub/apex/ \
17 ftp://metalab.unc.edu/pub/Linux/system/boot/apex/
18 PKG_MD5SUM:=22fb46e76c8221c7bcc9734602367460
19 PKG_TARGETS:=bin
20
21 include $(INCLUDE_DIR)/package.mk
22
23 export GCC_HONOUR_COPTS=s
24
25 define Package/apex
26 SECTION:=boot
27 CATEGORY:=Boot Loaders
28 DEPENDS:=@TARGET_ixp4xx
29 DEFAULT:=y
30 TITLE:=Boot loader for NSLU2, FSG3, NAS100D and others
31 URL:=http://wiki.buici.com/wiki/Apex_Bootloader
32 endef
33
34 define build_apex
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 ARCH=arm \
37 $(1)_config
38 $(SED) 's,.*CONFIG_AEABI.*,$(if $(CONFIG_EABI_SUPPORT),CONFIG_AEABI=y,# CONFIG_AEABI is not set),' $(PKG_BUILD_DIR)/.config
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 KBUILD_HAVE_NLS=no \
42 ARCH=arm \
43 clean all
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
45 endef
46
47 define Build/Compile
48 $(INSTALL_DIR) $(PKG_BUILD_DIR)/out
49 $(call build_apex,slugos-nslu2-armeb,nslu2-armeb)
50 $(call build_apex,slugos-nslu2-16mb-armeb,nslu2-16mb-armeb)
51 $(call build_apex,slugos-fsg3-armeb,fsg3-armeb)
52 $(call build_apex,slugos-nas100d-armeb,nas100d-armeb)
53 endef
54
55 define Package/apex/install
56 $(INSTALL_DIR) $(STAGING_DIR)/apex
57 $(CP) $(PKG_BUILD_DIR)/out/*.bin $(1)/
58 endef
59
60 $(eval $(call BuildPackage,apex))