2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=redboot-ar231x
11 PKG_VERSION
:=2010-10-26
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
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
22 include $(INCLUDE_DIR
)/package.mk
24 export GCC_HONOUR_COPTS
=s
26 define Package
/redboot-ar231x
28 CATEGORY
:=Boot Loaders
29 DEPENDS
:=@TARGET_atheros
30 TITLE
:=Tiny redboot for AR231x
/AR531x
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; \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
48 define Package
/redboot-ar231x
/install
49 $(CP
) $(PKG_BUILD_DIR
)/bin
/* $(1)/
52 $(eval
$(call BuildPackage
,redboot-ar231x
))