2 # Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
16 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
18 include $(INCLUDE_DIR
)/package.mk
23 TITLE
:=RouterBOOT configuration tool
24 DEPENDS
:=@TARGET_ar71xx
27 define Package
/rbcfg
/description
28 This package contains an utility to manipulate RouterBOOT configuration on the
29 MikroTIK RB-4XX devices.
33 mkdir
-p
$(PKG_BUILD_DIR
)
34 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
37 define Build
/Configure
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
44 LDFLAGS
="$(TARGET_LDFLAGS)"
47 define Package
/rbcfg
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rbcfg
$(1)/usr
/sbin
/
52 $(eval
$(call BuildPackage
,rbcfg
))