Skip to content
Snippets Groups Projects
Unverified Commit 60c6b402 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #2361 from freifunk-gluon/cleanup-target-lib

Target build cleanup
parents b95b857a adda3171
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ include $(GLUON_SITEDIR)/site.mk ...@@ -27,7 +27,7 @@ include $(GLUON_SITEDIR)/site.mk
GLUON_RELEASE ?= $(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line) GLUON_RELEASE ?= $(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line)
GLUON_DEPRECATED ?= $(error GLUON_DEPRECATED not set. Please consult the documentation) GLUON_DEPRECATED ?= 0
ifneq ($(GLUON_BRANCH),) ifneq ($(GLUON_BRANCH),)
$(warning *** Warning: GLUON_BRANCH has been deprecated, please set GLUON_AUTOUPDATER_BRANCH and GLUON_AUTOUPDATER_ENABLED instead.) $(warning *** Warning: GLUON_BRANCH has been deprecated, please set GLUON_AUTOUPDATER_BRANCH and GLUON_AUTOUPDATER_ENABLED instead.)
......
...@@ -58,6 +58,3 @@ GLUON_REGION ?= eu ...@@ -58,6 +58,3 @@ GLUON_REGION ?= eu
# Languages to include # Languages to include
GLUON_LANGS ?= en de GLUON_LANGS ?= en de
# Do not build images for deprecated devices
GLUON_DEPRECATED ?= 0
...@@ -55,6 +55,3 @@ GLUON_REGION ?= eu ...@@ -55,6 +55,3 @@ GLUON_REGION ?= eu
# Languages to include # Languages to include
GLUON_LANGS ?= en de GLUON_LANGS ?= en de
# Do not build images for deprecated devices
GLUON_DEPRECATED ?= 0
...@@ -213,7 +213,7 @@ GLUON_DEPRECATED ...@@ -213,7 +213,7 @@ GLUON_DEPRECATED
Usually, devices are deprecated because their flash size is insufficient to Usually, devices are deprecated because their flash size is insufficient to
support future Gluon versions. The recommended setting is ``0`` for new sites, support future Gluon versions. The recommended setting is ``0`` for new sites,
and ``upgrade`` for existing configurations (where upgrades for existing and ``upgrade`` for existing configurations (where upgrades for existing
deployments of low-flash devices are required). deployments of low-flash devices are required). Defaults to ``0``.
GLUON_LANGS GLUON_LANGS
Space-separated list of languages to include for the config mode/advanced settings. Defaults to ``en``. Space-separated list of languages to include for the config mode/advanced settings. Defaults to ``en``.
......
...@@ -562,7 +562,7 @@ GLUON_DEPRECATED ...@@ -562,7 +562,7 @@ GLUON_DEPRECATED
Usually, devices are deprecated because their flash size is insufficient to Usually, devices are deprecated because their flash size is insufficient to
support future Gluon versions. The recommended setting is ``0`` for new sites, support future Gluon versions. The recommended setting is ``0`` for new sites,
and ``upgrade`` for existing configurations (where upgrades for existing and ``upgrade`` for existing configurations (where upgrades for existing
deployments of low-flash devices are required). deployments of low-flash devices are required). Defaults to ``0``.
GLUON_FEATURES GLUON_FEATURES
Defines a list of features to include. Depending on the device, the feature list Defines a list of features to include. Depending on the device, the feature list
......
...@@ -267,47 +267,6 @@ function F.device(image, name, options) ...@@ -267,47 +267,6 @@ function F.device(image, name, options)
end end
end end
function F.factory_image(image, name, ext, options)
options = merge(default_options, options)
if not want_device(image, options) then
return
end
if options.deprecated and not full_deprecated then
return
end
add_image {
image = image,
name = name,
subdir = 'factory',
in_suffix = '',
out_suffix = '',
extension = ext,
aliases = options.aliases,
}
end
function F.sysupgrade_image(image, name, ext, options)
options = merge(default_options, options)
if not want_device(image, options) then
return
end
add_image {
image = image,
name = name,
subdir = 'sysupgrade',
in_suffix = '',
out_suffix = '-sysupgrade',
extension = ext,
aliases = options.aliases,
manifest_aliases = options.manifest_aliases,
}
end
function F.defaults(options) function F.defaults(options)
default_options = merge(default_options, options) default_options = merge(default_options, options)
end end
......
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