2013-02-11 22:06:19 +00:00
|
|
|
ifneq ($(__gluon_inc),1)
|
|
|
|
__gluon_inc=1
|
|
|
|
|
2014-07-28 18:53:43 +00:00
|
|
|
GLUON_SITEDIR ?= $(GLUONDIR)/site
|
2014-02-23 21:41:21 +00:00
|
|
|
GLUON_BUILDDIR ?= $(GLUONDIR)/build
|
2013-02-11 22:06:19 +00:00
|
|
|
|
2014-07-28 18:53:43 +00:00
|
|
|
GLUON_ORIGOPENWRTDIR := $(GLUONDIR)/openwrt
|
|
|
|
GLUON_SITE_CONFIG := $(GLUON_SITEDIR)/site.conf
|
|
|
|
|
2015-10-12 23:18:03 +00:00
|
|
|
GLUON_OUTPUTDIR ?= $(GLUONDIR)/output
|
|
|
|
GLUON_IMAGEDIR ?= $(GLUON_OUTPUTDIR)/images
|
2015-10-13 19:36:19 +00:00
|
|
|
GLUON_MODULEDIR ?= $(GLUON_OUTPUTDIR)/modules
|
2015-10-12 23:18:03 +00:00
|
|
|
|
2015-10-14 18:12:52 +00:00
|
|
|
GLUON_OPKG_KEY ?= $(GLUON_BUILDDIR)/gluon-opkg-key
|
|
|
|
|
2015-10-13 19:36:19 +00:00
|
|
|
export GLUONDIR GLUON_SITEDIR GLUON_BUILDDIR GLUON_SITE_CONFIG GLUON_OUTPUTDIR GLUON_IMAGEDIR GLUON_MODULEDIR
|
2014-05-11 08:43:10 +00:00
|
|
|
|
2015-03-14 18:10:23 +00:00
|
|
|
|
|
|
|
BOARD_BUILDDIR = $(GLUON_BUILDDIR)/$(GLUON_TARGET)
|
2013-02-17 23:39:44 +00:00
|
|
|
BOARD_KDIR = $(BOARD_BUILDDIR)/kernel
|
|
|
|
|
2015-03-20 00:34:02 +00:00
|
|
|
export BOARD_BUILDDIR
|
|
|
|
|
2015-10-12 23:00:46 +00:00
|
|
|
|
|
|
|
LINUX_RELEASE := 2
|
|
|
|
export LINUX_RELEASE
|
|
|
|
|
|
|
|
|
2015-03-14 18:10:23 +00:00
|
|
|
GLUON_OPENWRTDIR = $(BOARD_BUILDDIR)/openwrt
|
|
|
|
|
2013-02-17 15:30:59 +00:00
|
|
|
|
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-02-25 10:23:52 +00:00
|
|
|
GLUON_VERSION := $(shell cd $(GLUONDIR) && git describe --always 2>/dev/null || echo unknown)
|
|
|
|
export GLUON_VERSION
|
|
|
|
|
2015-03-18 17:14:21 +00:00
|
|
|
GLUON_LANGS ?= en
|
|
|
|
export GLUON_LANGS
|
|
|
|
|
2014-05-07 22:49:46 +00:00
|
|
|
|
|
|
|
ifeq ($(OPENWRT_BUILD),1)
|
|
|
|
ifeq ($(GLUON_TOOLS),1)
|
|
|
|
|
2015-10-14 00:55:13 +00:00
|
|
|
GLUON_OPENWRT_FEEDS := base packages luci routing telephony management
|
|
|
|
export GLUON_OPENWRT_FEEDS
|
2014-05-09 11:43:42 +00:00
|
|
|
|
2014-01-20 01:19:59 +00:00
|
|
|
GLUON_SITE_CODE := $(shell $(GLUONDIR)/scripts/site.sh site_code)
|
|
|
|
export GLUON_SITE_CODE
|
|
|
|
|
2014-05-13 14:49:22 +00:00
|
|
|
ifeq ($(GLUON_RELEASE),)
|
|
|
|
$(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line.)
|
|
|
|
endif
|
2014-01-20 01:19:59 +00:00
|
|
|
export GLUON_RELEASE
|
|
|
|
|
2014-05-07 22:49:46 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2013-02-18 23:12:23 +00:00
|
|
|
define merge-lists
|
|
|
|
$(1) :=
|
2014-08-08 14:25:03 +00:00
|
|
|
$(foreach var,$(2),$(1) := $$(filter-out -% $$(patsubst -%,%,$$(filter -%,$$($(var)))),$$($(1)) $$($(var)))
|
2013-02-18 23:12:23 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2014-05-10 09:52:06 +00:00
|
|
|
GLUON_TARGETS :=
|
|
|
|
|
|
|
|
define GluonTarget
|
|
|
|
gluon_target := $(1)$$(if $(2),-$(2))
|
|
|
|
GLUON_TARGETS += $$(gluon_target)
|
|
|
|
GLUON_TARGET_$$(gluon_target)_BOARD := $(1)
|
|
|
|
GLUON_TARGET_$$(gluon_target)_SUBTARGET := $(2)
|
|
|
|
endef
|
|
|
|
|
2016-06-15 23:23:00 +00:00
|
|
|
GLUON_DEFAULT_PACKAGES := gluon-core firewall ip6tables -uboot-envtools -wpad-mini hostapd-mini
|
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
|