Add more license tags with SPDX identifiers
[openwrt/staging/lynxis/omap.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_LICENSE:=GPL-2.0
14 PKG_LICENSE_FILES:=
15
16 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/rbcfg
21 SECTION:=utils
22 CATEGORY:=Utilities
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/Prepare
33 mkdir -p $(PKG_BUILD_DIR)
34 $(CP) ./src/* $(PKG_BUILD_DIR)/
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CC="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CFLAGS) -Wall" \
44 LDFLAGS="$(TARGET_LDFLAGS)"
45 endef
46
47 define Package/rbcfg/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,rbcfg))