Skip to content
Snippets Groups Projects
Commit 7005a585 authored by Nils Schneider's avatar Nils Schneider
Browse files

allow GLUON_SITEDIR to be set by environement

parent 53500c50
No related branches found
No related tags found
No related merge requests found
......@@ -47,3 +47,17 @@ will also call ``make clean`` on the OpenWRT tree, and
make dirclean
will do all this, and call ``make dirclean`` on the OpenWRT tree.
Environment variables
---------------------
Gluon's build process can be controlled by various environment variables.
GLUON_SITEDIR
Path to the site configuration. Defaults to ``site/``.
GLUON_IMAGEDIR
Path where images will be stored. Defaults to ``images/``.
GLUON_BUILDDIR ?= $(GLUONDIR)/build
Working directory during build. Defaults to ``build/``.
ifneq ($(__gluon_inc),1)
__gluon_inc=1
GLUON_ORIGOPENWRTDIR := $(GLUONDIR)/openwrt
GLUON_SITEDIR := $(GLUONDIR)/site
GLUON_SITE_CONFIG := $(GLUON_SITEDIR)/site.conf
GLUON_SITEDIR ?= $(GLUONDIR)/site
GLUON_IMAGEDIR ?= $(GLUONDIR)/images
GLUON_BUILDDIR ?= $(GLUONDIR)/build
GLUON_ORIGOPENWRTDIR := $(GLUONDIR)/openwrt
GLUON_SITE_CONFIG := $(GLUON_SITEDIR)/site.conf
GLUON_OPENWRTDIR = $(GLUON_BUILDDIR)/$(GLUON_TARGET)/openwrt
BOARD_BUILDDIR = $(GLUON_BUILDDIR)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment