gluon.mk 851 B

123456789101112131415161718192021222324252627282930
  1. ifneq ($(__gluon_inc),1)
  2. __gluon_inc=1
  3. GLUON_SITEDIR := $(GLUONDIR)/site
  4. GLUON_IMAGEDIR := $(GLUONDIR)/images
  5. GLUON_OPENWRTDIR := $(GLUONDIR)/openwrt
  6. GLUON_BUILDERDIR := $(GLUONDIR)/builder
  7. GLUON_BUILDDIR := $(GLUONDIR)/build
  8. BOARD_BUILDDIR = $(GLUON_BUILDDIR)/$(BOARD)
  9. BOARD_KDIR = $(BOARD_BUILDDIR)/kernel
  10. export GLUONDIR GLUON_SITEDIR GLUON_IMAGEDIR GLUON_OPENWRTDIR GLUON_BUILDERDIR GLUON_BUILDDIR
  11. $(GLUON_SITEDIR)/site.mk:
  12. $(error There was no site configuration found. Please check out a site configuration to $(GLUON_SITEDIR))
  13. -include $(GLUON_SITEDIR)/site.mk
  14. define merge-lists
  15. $(1) :=
  16. $(foreach var,$(2),$(1) := $$(sort $$(filter-out -% $$(patsubst -%,%,$$(filter -%,$$($(var)))),$$($(1)) $$($(var))))
  17. )
  18. endef
  19. GLUON_DEFAULT_PACKAGES := gluon-core kmod-ipv6 firewall ip6tables
  20. override DEFAULT_PACKAGES.router :=
  21. endif #__gluon_inc