mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 18:10:38 +02:00
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
|
#
|
||
|
# 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
|
||
|
PKG_VERSION:=20120604
|
||
|
PKG_REV:=fc85c030a97151a9f78e72ababb9bbc3ec7081e8
|
||
|
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
|
||
|
SECTION:=utils
|
||
|
CATEGORY:=Utilities
|
||
|
TITLE:=Xburst-Tools
|
||
|
URL:=http://projects.qi-hardware.com/p/xburst-tools/
|
||
|
DEPENDS:=+libusb +libusb-1.0 +confuse
|
||
|
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, \
|
||
|
CROSS_COMPILE="mipsel-openwrt-linux-" \
|
||
|
--enable-firmware \
|
||
|
--prefix=/usr \
|
||
|
--sysconfdir=/etc \
|
||
|
)
|
||
|
endef
|
||
|
|
||
|
define Package/xburst-tools/install
|
||
|
$(CP) $(PKG_BUILD_DIR)/ipkg-install/* $(1)/
|
||
|
endef
|
||
|
|
||
|
$(eval $(call BuildPackage,xburst-tools))
|