e6d9bdb7fadde62da0c482143d1726c904596a1c
[openwrt.git] / package / redboot-ar231x / Makefile
1 #
2 # Copyright (C) 2008 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:=redboot-ar231x
11 PKG_VERSION:=2010-10-26
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_TARGETS:=bin
15
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=git://nbd.name/redboot-ar231x.git
18 PKG_SOURCE_VERSION:=327f02ce1645d3427f26cf8116353332c81564a9
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.bz2
21
22 include $(INCLUDE_DIR)/package.mk
23
24 export GCC_HONOUR_COPTS=s
25
26 define Package/redboot-ar231x
27 SECTION:=boot
28 CATEGORY:=Boot Loaders
29 DEPENDS:=@TARGET_atheros
30 TITLE:=Tiny redboot for AR231x/AR531x
31 endef
32
33 define Build/Configure
34 mkdir -p $(PKG_BUILD_DIR)/host-build
35 if [ \! -x $(PKG_BUILD_DIR)/host-install/bin/ecosconfig ]; then ( \
36 cd $(PKG_BUILD_DIR)/host-build; \
37 ../ecos/host/configure \
38 --prefix=$(PKG_BUILD_DIR)/host-install \
39 --exec-prefix=$(PKG_BUILD_DIR)/host-install; \
40 CFLAGS="$(HOST_CFLAGS)" $(MAKE) all install; \
41 ) fi
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) all
46 endef
47
48 define Package/redboot-ar231x/install
49 $(CP) $(PKG_BUILD_DIR)/bin/* $(1)/
50 endef
51
52 $(eval $(call BuildPackage,redboot-ar231x))
This page took 0.040833 seconds and 3 git commands to generate.