Makefile 989 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. endef
  25. define Package/zyxel-bootconfig/install
  26. $(INSTALL_DIR) $(1)/usr/bin $(1)/lib/preinit
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/zyxel-bootconfig $(1)/usr/bin/
  28. $(CP) ./files/95_apply_bootconfig $(1)/lib/preinit/95_apply_bootconfig
  29. endef
  30. $(eval $(call BuildPackage,zyxel-bootconfig))