Skip to content
Snippets Groups Projects
Commit 17b9514e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Add gluon-config package containing the site config

parent 25b8446a
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config
PKG_VERSION:=$(GLUON_SITE_CODE)
PKG_RELEASE:=$(shell $(MD5SUM) $(GLUON_SITEDIR)/site.conf)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/gluon-config
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Site-specific config files of Gluon
endef
define Package/gluon-config/description
Gluon community wifi mesh firmware framework: site configuration
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/gluon-config/install
$(INSTALL_DIR) $(1)/lib/gluon
$(CP) $(GLUON_SITEDIR)/site.conf $(1)/lib/gluon/site.conf
endef
$(eval $(call BuildPackage,gluon-config))
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-core
PKG_VERSION:=1
PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
PKG_VERSION:=2
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
......@@ -12,7 +12,7 @@ define Package/gluon-core
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Base files of Gluon
DEPENDS:=+odhcp6c
DEPENDS:=+gluon-config +odhcp6c
endef
define Package/gluon-core/description
......@@ -35,7 +35,6 @@ define Package/gluon-core/install
$(INSTALL_DIR) $(1)/lib/gluon
echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
echo "$(GLUON_RELEASE)" > $(1)/lib/gluon/release
endef
$(eval $(call BuildPackage,gluon-core))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment