ramips: WN3000RPv3: do not setup switch
[oweals/openwrt.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 PKG_FLAGS:=nonshared
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/rbcfg
20   SECTION:=utils
21   CATEGORY:=Utilities
22   SUBMENU:=Boot Loaders
23   TITLE:=RouterBOOT configuration tool
24   DEPENDS:=@TARGET_ar71xx
25 endef
26
27 define Package/rbcfg/description
28  This package contains an utility to manipulate RouterBOOT configuration on the
29  MikroTIK RB-4XX devices.
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36         $(MAKE) -C $(PKG_BUILD_DIR) \
37                 CC="$(TARGET_CC)" \
38                 CFLAGS="$(TARGET_CFLAGS) -Wall" \
39                 LDFLAGS="$(TARGET_LDFLAGS)"
40 endef
41
42 define Package/rbcfg/install
43         $(INSTALL_DIR) $(1)/usr/sbin
44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,rbcfg))