2
0

Makefile 1021 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2022 David Bauer <[email protected]>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=zyxel-bootconfig
  9. PKG_RELEASE:=1
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/zyxel-bootconfig
  12. SECTION:=utils
  13. CATEGORY:=Base system
  14. TITLE:=Utility for handling Zyxel Bootconfig settings
  15. MAINTAINER:=David Bauer <[email protected]>
  16. endef
  17. define Package/zyxel-bootconfig/description
  18. This package contains an utility that allows handling Zyxel Bootconfig settings.
  19. endef
  20. define Build/Compile
  21. $(MAKE) -C $(PKG_BUILD_DIR) \
  22. CC="$(TARGET_CC)" \
  23. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  24. LDFLAGS="$(TARGET_LDFLAGS)"
  25. endef
  26. define Package/zyxel-bootconfig/install
  27. $(INSTALL_DIR) $(1)/usr/bin $(1)/lib/preinit
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/zyxel-bootconfig $(1)/usr/bin/
  29. $(CP) ./files/95_apply_bootconfig $(1)/lib/preinit/95_apply_bootconfig
  30. endef
  31. $(eval $(call BuildPackage,zyxel-bootconfig))