kobs-ng: add new package
[openwrt/staging/wigyori.git] / package / boot / kobs-ng / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
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:=kobs-ng
11 PKG_VERSION:=3.0.35-4.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://repository.timesys.com/buildsources/k/kobs-ng/kobs-ng-$(PKG_VERSION)/
16 PKG_MD5SUM:=26104c577f59a6b81782a5bd16aadd82
17
18 PKG_LICENSE:=GPLv2
19 PKG_LICENSE_FILES:=COPYING
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/kobs-ng
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Application for writing bootstreams to NAND flash
27 DEPENDS:=@TARGET_imx6
28 endef
29
30 define Package/kobs-ng/description
31 The kobs-ng application writes a bootstream to NAND flash with the proper
32 FCB/DBBT headers and replicated streams.
33 endef
34
35 define Build/Prepare
36 $(call Build/Prepare/Default)
37 echo "const char* git_sha = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/autoversion.h
38 endef
39
40 define Package/kobs-ng/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/kobs-ng $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,kobs-ng))