7ba3d932b06c58c3d105f8ea789cbb30d8831dd0
[openwrt/staging/yousong.git] / package / boot / rbcfg / Makefile
1 #
2 # Copyright (C) 2010 Gabor Juhos <juhosg@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:=rbcfg
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/rbcfg
18 SECTION:=utils
19 CATEGORY:=Utilities
20 SUBMENU:=Boot Loaders
21 TITLE:=RouterBOOT configuration tool
22 DEPENDS:=@TARGET_ar71xx
23 endef
24
25 define Package/rbcfg/description
26 This package contains an utility to manipulate RouterBOOT configuration on the
27 MikroTIK RB-4XX devices.
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS) -Wall" \
37 LDFLAGS="$(TARGET_LDFLAGS)"
38 endef
39
40 define Package/rbcfg/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,rbcfg))