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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=xburst-tools |
| 11 | PKG_VERSION:=20120604 |
| 12 | PKG_REV:=fc85c030a97151a9f78e72ababb9bbc3ec7081e8 |
| 13 | PKG_RELEASE:=1 |
| 14 | PKG_INSTALL:=1 |
| 15 | |
| 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
| 17 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/xburst-tools.git |
| 18 | PKG_SOURCE_PROTO:=git |
| 19 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 20 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 21 | |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | |
| 24 | TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
| 25 | |
| 26 | define 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 |
| 32 | endef |
| 33 | |
| 34 | define Package/xburst-tools/description |
| 35 | Tools for Ingenic XBurst CPU USB boot and NAND flash access |
| 36 | endef |
| 37 | |
| 38 | define 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 | ) |
| 46 | endef |
| 47 | |
| 48 | define Package/xburst-tools/install |
| 49 | $(CP) $(PKG_BUILD_DIR)/ipkg-install/* $(1)/ |
| 50 | endef |
| 51 | |
| 52 | $(eval $(call BuildPackage,xburst-tools)) |
Download the corresponding diff file