2012-06-04 10:15:57 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xburst-tools
|
2012-06-05 05:31:42 +03:00
|
|
|
PKG_VERSION:=20120605
|
|
|
|
PKG_REV:=ff28d4c923a489cef1af0b761b9026e1c65a7a48
|
2012-06-04 10:15:57 +03:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
|
|
|
PKG_SOURCE_URL:=git://projects.qi-hardware.com/xburst-tools.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
|
|
|
define Package/xburst-tools
|
2012-06-18 18:54:40 +03:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@openmobilefree.net>
|
2012-06-04 10:15:57 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Xburst-Tools
|
|
|
|
URL:=http://projects.qi-hardware.com/p/xburst-tools/
|
2012-07-04 05:18:12 +03:00
|
|
|
DEPENDS:=+libusb +libusb-1.0 +confuse +libreadline +libncurses
|
2012-06-04 10:15:57 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xburst-tools/description
|
|
|
|
Tools for Ingenic XBurst CPU USB boot and NAND flash access
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
( cd $(PKG_BUILD_DIR); ./autogen.sh );
|
|
|
|
$(call Build/Configure/Default, \
|
2012-06-04 10:29:56 +03:00
|
|
|
--disable-firmware \
|
2012-06-04 10:15:57 +03:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xburst-tools/install
|
2012-06-04 10:29:56 +03:00
|
|
|
(cd $(PKG_BUILD_DIR) && \
|
|
|
|
wget http://projects.qi-hardware.com/media/upload/xburst-tools/files/xburst-tools-firmware-201105.tar.bz2 && \
|
|
|
|
tar xvf xburst-tools-firmware-201105.tar.bz2)
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/xburst-tools/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/xburst-tools-firmware/* $(1)/usr/share/xburst-tools/
|
|
|
|
|
2012-06-04 10:15:57 +03:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/ipkg-install/* $(1)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xburst-tools))
|