Makefile 737 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-config
  3. PKG_VERSION:=$(GLUON_SITE_CODE)
  4. PKG_RELEASE:=$(shell $(MD5SUM) $(GLUON_SITEDIR)/site.conf)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/gluon-config
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Site-specific config files of Gluon
  11. endef
  12. define Package/gluon-config/description
  13. Gluon community wifi mesh firmware framework: site configuration
  14. endef
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. endef
  18. define Build/Configure
  19. endef
  20. define Build/Compile
  21. endef
  22. define Package/gluon-config/install
  23. $(INSTALL_DIR) $(1)/lib/gluon
  24. $(CP) $(GLUON_SITEDIR)/site.conf $(1)/lib/gluon/site.conf
  25. endef
  26. $(eval $(call BuildPackage,gluon-config))