31 lines
851 B
Makefile
31 lines
851 B
Makefile
ifneq ($(__gluon_inc),1)
|
|
__gluon_inc=1
|
|
|
|
GLUON_SITEDIR := $(GLUONDIR)/site
|
|
GLUON_IMAGEDIR := $(GLUONDIR)/images
|
|
GLUON_OPENWRTDIR := $(GLUONDIR)/openwrt
|
|
GLUON_BUILDERDIR := $(GLUONDIR)/builder
|
|
GLUON_BUILDDIR := $(GLUONDIR)/build
|
|
|
|
BOARD_BUILDDIR = $(GLUON_BUILDDIR)/$(BOARD)
|
|
BOARD_KDIR = $(BOARD_BUILDDIR)/kernel
|
|
|
|
export GLUONDIR GLUON_SITEDIR GLUON_IMAGEDIR GLUON_OPENWRTDIR GLUON_BUILDERDIR GLUON_BUILDDIR
|
|
|
|
$(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
|
|
|
|
define merge-lists
|
|
$(1) :=
|
|
$(foreach var,$(2),$(1) := $$(sort $$(filter-out -% $$(patsubst -%,%,$$(filter -%,$$($(var)))),$$($(1)) $$($(var))))
|
|
)
|
|
endef
|
|
|
|
GLUON_DEFAULT_PACKAGES := gluon-core kmod-ipv6 firewall ip6tables
|
|
|
|
override DEFAULT_PACKAGES.router :=
|
|
|
|
endif #__gluon_inc
|