2013-02-11 22:06:19 +00:00
|
|
|
ifneq ($(__gluon_inc),1)
|
|
|
|
__gluon_inc=1
|
|
|
|
|
2013-02-12 06:14:18 +00:00
|
|
|
GLUON_SITEDIR := $(GLUONDIR)/site
|
|
|
|
GLUON_IMAGEDIR := $(GLUONDIR)/images
|
|
|
|
GLUON_OPENWRTDIR := $(GLUONDIR)/openwrt
|
|
|
|
GLUON_BUILDDIR := $(GLUONDIR)/build
|
2013-02-11 22:06:19 +00:00
|
|
|
|
2013-02-17 23:39:44 +00:00
|
|
|
BOARD_BUILDDIR = $(GLUON_BUILDDIR)/$(BOARD)
|
|
|
|
BOARD_KDIR = $(BOARD_BUILDDIR)/kernel
|
|
|
|
|
2013-04-05 20:53:09 +00:00
|
|
|
export GLUONDIR GLUON_SITEDIR GLUON_IMAGEDIR GLUON_OPENWRTDIR GLUON_BUILDDIR
|
2013-02-17 15:30:59 +00:00
|
|
|
|
2013-10-08 17:59:17 +00:00
|
|
|
|
|
|
|
CONFIG_VERSION_REPO := http://downloads.openwrt.org/attitude_adjustment/12.09/%S/packages
|
|
|
|
|
|
|
|
export CONFIG_VERSION_REPO
|
|
|
|
|
2013-02-11 22:06:19 +00:00
|
|
|
$(GLUON_SITEDIR)/site.mk:
|
|
|
|
$(error There was no site configuration found. Please check out a site configuration to $(GLUON_SITEDIR))
|
|
|
|
|
|
|
|
-include $(GLUON_SITEDIR)/site.mk
|
|
|
|
|
2014-01-04 08:18:07 +00:00
|
|
|
|
2014-01-09 16:51:27 +00:00
|
|
|
GLUON_CONFIG_VERSION := $(shell cd $(GLUON_SITEDIR) && git describe --always --dirty=.$$(stat -c %Y $(GLUON_SITEDIR)/site.conf) 2>/dev/null || stat -c %Y site.conf)
|
2014-01-04 08:18:07 +00:00
|
|
|
export GLUON_CONFIG_VERSION
|
|
|
|
|
2014-01-20 01:19:59 +00:00
|
|
|
GLUON_SITE_CODE := $(shell $(GLUONDIR)/scripts/site.sh site_code)
|
|
|
|
export GLUON_SITE_CODE
|
|
|
|
|
|
|
|
GLUON_RELEASE ?= $(shell $(GLUONDIR)/scripts/site.sh release)
|
|
|
|
export GLUON_RELEASE
|
|
|
|
|
2013-02-18 23:12:23 +00:00
|
|
|
define merge-lists
|
|
|
|
$(1) :=
|
|
|
|
$(foreach var,$(2),$(1) := $$(sort $$(filter-out -% $$(patsubst -%,%,$$(filter -%,$$($(var)))),$$($(1)) $$($(var))))
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2013-02-13 01:37:06 +00:00
|
|
|
GLUON_DEFAULT_PACKAGES := gluon-core kmod-ipv6 firewall ip6tables
|
2013-02-11 22:06:19 +00:00
|
|
|
|
2013-02-18 23:12:23 +00:00
|
|
|
override DEFAULT_PACKAGES.router :=
|
2013-02-11 22:06:19 +00:00
|
|
|
|
|
|
|
endif #__gluon_inc
|