e950aa09b8cc4fc5378b566b0e8f86d71fc44073
[openwrt-10.03/.git] / target / linux / ixp4xx-2.6 / image / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=apex
12 PKG_VERSION:=1.4.7
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=ftp://ftp.buici.com/pub/apex/ \
18         ftp://metalab.unc.edu/pub/Linux/system/boot/apex/
19 PKG_MD5SUM:=ed2183311aacf5714afbd825f3671417
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(TARGET)
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/apex-nslu2
27   TITLE:=apex-nslu2
28   DESCRIPTION:=\
29         The Apex Bootloader (compiled for the Linksys NSLU2).
30   URL:=http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader
31   SECTION:=base
32   CATEGORY:=Boot Loaders
33   DEPENDS:=@LINUX_2_6_IXP4XX
34 endef
35
36 define Build/Configure
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 ARCH=arm \
39                 slugos-nslu2-armeb_config
40 endef
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 $(TARGET_CONFIGURE_OPTS) \
45                 ARCH=arm \
46                 all
47 endef
48
49 compile-targets: ${PKG_BUILD_DIR}/.built
50
51 ifneq ($(TARGET),)
52 install: compile
53         $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(TARGET)/apex-nslu2-armeb.bin
54 endif
55
56 $(eval $(call BuildPackage,apex-nslu2))