Makefile 804 B

12345678910111213141516171819202122232425262728293031323334353637
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-config
  3. PKG_VERSION:=$(GLUON_SITE_CODE)
  4. PKG_RELEASE:=$(GLUON_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. echo "$(GLUON_RELEASE)" > $(1)/lib/gluon/release
  26. endef
  27. $(eval $(call BuildPackage,gluon-config))