Date:2012-06-04 09:15:57 (11 years 9 months ago)
Author:Xiangfu
Commit:f7c9ae5dda2d0db4824de8ae73ae56e174100746
Message:new package: xburst-tools: Tools for Ingenic XBurst CPU USB boot and NAND flash access

Files: xburst-tools/Makefile (1 diff)

Change Details

xburst-tools/Makefile
1#
2# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
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:=xburst-tools
11PKG_VERSION:=20120604
12PKG_REV:=fc85c030a97151a9f78e72ababb9bbc3ec7081e8
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
17PKG_SOURCE_URL:=git://projects.qi-hardware.com/xburst-tools.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21
22include $(INCLUDE_DIR)/package.mk
23
24TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
25
26define Package/xburst-tools
27  SECTION:=utils
28  CATEGORY:=Utilities
29  TITLE:=Xburst-Tools
30  URL:=http://projects.qi-hardware.com/p/xburst-tools/
31  DEPENDS:=+libusb +libusb-1.0 +confuse
32endef
33
34define Package/xburst-tools/description
35Tools for Ingenic XBurst CPU USB boot and NAND flash access
36endef
37
38define Build/Configure
39    ( cd $(PKG_BUILD_DIR); ./autogen.sh );
40    $(call Build/Configure/Default, \
41        CROSS_COMPILE="mipsel-openwrt-linux-" \
42        --enable-firmware \
43        --prefix=/usr \
44        --sysconfdir=/etc \
45    )
46endef
47
48define Package/xburst-tools/install
49    $(CP) $(PKG_BUILD_DIR)/ipkg-install/* $(1)/
50endef
51
52$(eval $(call BuildPackage,xburst-tools))

Archive Download the corresponding diff file



interactive