ar71xx: make rb750_latch_change 'static void'
[openwrt.git] / package / 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 TITLE:=RouterBOOT configuration tool
21 DEPENDS:=@TARGET_ar71xx
22 endef
23
24 define Package/rbcfg/description
25 This package contains an utility to manipulate RouterBOOT configuration on the
26 MikroTIK RB-4XX devices.
27 endef
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CC="$(TARGET_CC)" \
40 CFLAGS="$(TARGET_CFLAGS) -Wall" \
41 LDFLAGS="$(TARGET_LDFLAGS)"
42 endef
43
44 define Package/rbcfg/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,rbcfg))
This page took 0.039248 seconds and 5 git commands to generate.