2019-06-14 17:20:15 +00:00
|
|
|
assert(env.GLUON_LANGS)
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('GLUON_SITEDIR', env.GLUON_SITEDIR)
|
2021-09-21 15:55:44 +00:00
|
|
|
config('GLUON_VERSION', env.GLUON_VERSION)
|
|
|
|
config('GLUON_SITE_VERSION', env.GLUON_SITE_VERSION)
|
2020-05-26 21:30:05 +00:00
|
|
|
config('GLUON_RELEASE', env.GLUON_RELEASE)
|
2020-07-04 09:17:29 +00:00
|
|
|
|
2020-07-04 10:26:59 +00:00
|
|
|
try_config('GLUON_AUTOUPDATER_BRANCH', env.GLUON_AUTOUPDATER_BRANCH)
|
|
|
|
try_config('GLUON_AUTOUPDATER_ENABLED', istrue(env.GLUON_AUTOUPDATER_ENABLED))
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
for lang in string.gmatch(env.GLUON_LANGS, '%S+') do
|
2020-05-26 21:30:05 +00:00
|
|
|
try_config('GLUON_WEB_LANG_' .. lang, true)
|
2019-06-14 17:20:15 +00:00
|
|
|
end
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('TARGET_' .. env.BOARD, true)
|
2019-06-14 17:20:15 +00:00
|
|
|
if env.SUBTARGET ~= '' then
|
2020-05-26 21:30:05 +00:00
|
|
|
config(string.format('TARGET_%s_%s', env.BOARD, env.SUBTARGET), true)
|
2019-06-14 17:20:15 +00:00
|
|
|
end
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
-- Disable non-default feeds in distfeeds.conf
|
2020-05-26 21:30:05 +00:00
|
|
|
config('FEED_gluon_base', false)
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
local default_feeds = {}
|
|
|
|
for feed in string.gmatch(exec_capture_raw('. scripts/default_feeds.sh && echo "$DEFAULT_FEEDS"'), '%S+') do
|
|
|
|
default_feeds[feed] = true
|
|
|
|
end
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
for feed in string.gmatch(exec_capture_raw('. scripts/modules.sh && echo -n "$FEEDS"'), '%S+') do
|
|
|
|
if not default_feeds[feed] then
|
2020-05-26 21:30:05 +00:00
|
|
|
config('FEED_' .. feed, false)
|
2019-06-14 17:20:15 +00:00
|
|
|
end
|
|
|
|
end
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('TARGET_ROOTFS_INITRAMFS', false)
|
2017-01-18 16:21:43 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('DEVEL', true)
|
|
|
|
config('ALL_NONSHARED', true)
|
2017-01-18 16:21:43 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('PACKAGE_usbip', false) -- fails to build
|
|
|
|
config('PACKAGE_kmod-jool', false) -- fails to build
|
2018-04-10 18:25:38 +00:00
|
|
|
|
2020-06-11 00:16:49 +00:00
|
|
|
try_config('PACKAGE_ATH_DEBUG', true)
|
2017-01-18 16:21:43 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
try_config('TARGET_SQUASHFS_BLOCK_SIZE', 256)
|
2020-05-26 17:57:42 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('KERNEL_IP_MROUTE', false)
|
|
|
|
config('KERNEL_IPV6_MROUTE', false)
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2020-06-04 20:35:58 +00:00
|
|
|
config('COLLECT_KERNEL_DEBUG', true)
|
|
|
|
|
2021-06-21 14:23:51 +00:00
|
|
|
config('TARGET_MULTI_PROFILE', true)
|
|
|
|
config('TARGET_PER_DEVICE_ROOTFS', true)
|
2017-02-11 22:33:07 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('GLUON_MULTIDOMAIN', istrue(env.GLUON_MULTIDOMAIN))
|
2018-01-25 23:13:37 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('AUTOREMOVE', istrue(env.GLUON_AUTOREMOVE))
|
2020-05-11 21:08:02 +00:00
|
|
|
|
2020-03-14 15:51:43 +00:00
|
|
|
if istrue(env.GLUON_DEBUG) then
|
2020-05-26 21:30:05 +00:00
|
|
|
config('DEBUG', true)
|
|
|
|
config('NO_STRIP', true)
|
|
|
|
config('USE_STRIP', false)
|
|
|
|
config('USE_SSTRIP', false)
|
2020-02-04 01:04:36 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
try_config('TARGET_ROOTFS_PARTSIZE', 500)
|
2019-06-14 17:20:15 +00:00
|
|
|
end
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2020-05-26 21:30:05 +00:00
|
|
|
config('GLUON_MINIFY', istrue(env.GLUON_MINIFY))
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
packages {
|
2020-12-16 22:18:27 +00:00
|
|
|
'-ca-bundle',
|
2020-05-26 18:13:28 +00:00
|
|
|
'-kmod-ipt-offload',
|
2020-12-16 22:18:27 +00:00
|
|
|
'-libustream-wolfssl',
|
|
|
|
'-libwolfssl',
|
2019-06-14 17:20:15 +00:00
|
|
|
'-odhcpd-ipv6only',
|
|
|
|
'-ppp',
|
|
|
|
'-ppp-mod-pppoe',
|
|
|
|
'-wpad-mini',
|
2019-08-11 15:50:03 +00:00
|
|
|
'-wpad-basic',
|
2020-08-21 09:00:04 +00:00
|
|
|
'-wpad-basic-wolfssl',
|
2019-06-14 17:20:15 +00:00
|
|
|
'gluon-core',
|
2022-03-14 23:54:43 +00:00
|
|
|
'ip6tables-legacy',
|
2019-06-14 17:20:15 +00:00
|
|
|
}
|