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_BUILDERDIR := $(GLUONDIR)/builder
|
|
|
|
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-02-17 15:30:59 +00:00
|
|
|
export GLUONDIR GLUON_SITEDIR GLUON_IMAGEDIR GLUON_OPENWRTDIR GLUON_BUILDERDIR GLUON_BUILDDIR
|
|
|
|
|
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
|
|
|
|
|
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
|