eb2dd79b82bda20b1d10b2536576a17ec78dcde7
[openwrt/openwrt.git] / package / utils / zyxel-bootconfig / Makefile
1 #
2 # Copyright (C) 2022 David Bauer <mail@david-bauer.net>
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:=zyxel-bootconfig
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/zyxel-bootconfig
16 SECTION:=utils
17 CATEGORY:=Base system
18 TITLE:=Utility for handling ZyXEL Bootconfig settings
19 MAINTAINER:=David Bauer <mail@david-bauer.net>
20 endef
21
22 define Package/zyxel-bootconfig/description
23 This package contains an utility that allows handling ZyXEL Bootconfig settings.
24 endef
25
26 define Build/Compile
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC="$(TARGET_CC)" \
29 CFLAGS="$(TARGET_CFLAGS) -Wall"
30 endef
31
32 define Package/zyxel-bootconfig/install
33 $(INSTALL_DIR) $(1)/usr/bin $(1)/lib/preinit
34 $(INSTALL_BIN) $(PKG_BUILD_DIR)/zyxel-bootconfig $(1)/usr/bin/
35 $(CP) ./files/95_apply_bootconfig $(1)/lib/preinit/95_apply_bootconfig
36 endef
37
38 $(eval $(call BuildPackage,zyxel-bootconfig))