Root/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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=redboot-ar231x
11PKG_VERSION:=2010-10-26
12PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14PKG_TARGETS:=bin
15
16PKG_SOURCE_PROTO:=git
17PKG_SOURCE_URL:=git://nbd.name/redboot-ar231x.git
18PKG_SOURCE_VERSION:=327f02ce1645d3427f26cf8116353332c81564a9
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.bz2
21
22include $(INCLUDE_DIR)/package.mk
23
24export GCC_HONOUR_COPTS=s
25
26define Package/redboot-ar231x
27  SECTION:=boot
28  CATEGORY:=Boot Loaders
29  DEPENDS:=@TARGET_atheros @BROKEN
30  TITLE:=Tiny redboot for AR231x/AR531x
31endef
32
33define 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
42endef
43
44define Build/Compile
45    $(MAKE) -C $(PKG_BUILD_DIR) all
46endef
47
48define Package/redboot-ar231x/install
49    $(CP) $(PKG_BUILD_DIR)/bin/* $(1)/
50endef
51
52$(eval $(call BuildPackage,redboot-ar231x))
53

Archive Download this file



interactive