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

Target build cleanup
This commit is contained in:
David Bauer 2022-01-02 19:20:19 +01:00 committed by GitHub
commit 60c6b4023b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 50 deletions

View File

@ -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.)

View File

@ -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

View File

@ -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

View File

@ -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``.

View File

@ -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

View File

@ -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