gluon/targets/generic_gluon
Sven Roederer 7d9bab9a8d build: add option "GLUON_BUILDTYPE" to support other firmwares-types
This change adds the option "GLUON_BUILDTYPE", to support building other types of firmware
with the framework. With the generalization some of the gluon specific setup can be disabled
and it  will become more easy to use the framework for other projects. These gluon-specific
settings include:
* setup of "CONFIG_TARGET_DEVICE_" in scripts/target_config_lib.lua
* setup of "CONFIG_TARGET_DEVICE_PACKAGES_" in scripts/target_config_lib.lua
* most of the settings in  targets/generic

The targets/generic file is split into targets/generic and targets/generic_gluon. The
CONFIG_TARGET_DEVICE_ options of scripts/target_config_lib.lua will only be setup when
GLUON_BUILDTYPE is set to "gluon". By default GLUON_BUILDTYPE is "gluon" and the framework
will do as before.
Setting GLUON_BUILDTYPE to something different via environment/commandline, e.g. "ffberlin",
will skip the gluon-section in scripts/target_config_lib.lua and include targets/generic_ffberlin
in place of targets/generic_gluon.
2020-10-25 21:56:58 +01:00

58 lines
1.3 KiB
Plaintext

assert(env.GLUON_LANGS)
config('GLUON_SITEDIR', env.GLUON_SITEDIR)
config('GLUON_RELEASE', env.GLUON_RELEASE)
try_config('GLUON_AUTOUPDATER_BRANCH', env.GLUON_AUTOUPDATER_BRANCH)
try_config('GLUON_AUTOUPDATER_ENABLED', istrue(env.GLUON_AUTOUPDATER_ENABLED))
for lang in string.gmatch(env.GLUON_LANGS, '%S+') do
try_config('GLUON_WEB_LANG_' .. lang, true)
end
-- Disable non-default feeds in distfeeds.conf
config('FEED_gluon_base', false)
config('TARGET_ROOTFS_INITRAMFS', false)
config('DEVEL', true)
config('ALL_NONSHARED', true)
config('PACKAGE_usbip', false) -- fails to build
config('PACKAGE_kmod-jool', false) -- fails to build
config('BUSYBOX_CUSTOM', true)
config('BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS', false)
try_config('PACKAGE_ATH_DEBUG', true)
try_config('TARGET_SQUASHFS_BLOCK_SIZE', 256)
config('KERNEL_IP_MROUTE', false)
config('KERNEL_IPV6_MROUTE', false)
config('COLLECT_KERNEL_DEBUG', true)
try_config('TARGET_MULTI_PROFILE', true)
try_config('TARGET_PER_DEVICE_ROOTFS', true)
config('GLUON_MULTIDOMAIN', istrue(env.GLUON_MULTIDOMAIN))
config('AUTOREMOVE', istrue(env.GLUON_AUTOREMOVE))
config('GLUON_MINIFY', istrue(env.GLUON_MINIFY))
packages {
'-kmod-ipt-offload',
'-odhcpd-ipv6only',
'-ppp',
'-ppp-mod-pppoe',
'-wpad-mini',
'-wpad-basic',
'gluon-core',
'ip6tables',
}