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
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
config('CONFIG_GLUON_SITEDIR="%s"', env.GLUON_SITEDIR)
|
|
|
|
config('CONFIG_GLUON_RELEASE="%s"', env.GLUON_RELEASE)
|
|
|
|
try_config('CONFIG_GLUON_BRANCH="%s"', env.GLUON_BRANCH or '')
|
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
|
|
|
|
try_config('CONFIG_GLUON_WEB_LANG_%s=y', lang)
|
|
|
|
end
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
config('CONFIG_TARGET_%s=y', env.BOARD)
|
|
|
|
if env.SUBTARGET ~= '' then
|
|
|
|
config('CONFIG_TARGET_%s_%s=y', env.BOARD, env.SUBTARGET)
|
|
|
|
end
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
-- Disable non-default feeds in distfeeds.conf
|
|
|
|
config('# CONFIG_FEED_gluon_base is not set')
|
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
|
|
|
|
config('# CONFIG_FEED_%s is not set', feed)
|
|
|
|
end
|
|
|
|
end
|
2018-07-10 20:57:40 +00:00
|
|
|
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2017-01-18 16:21:43 +00:00
|
|
|
config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set'
|
|
|
|
|
2020-05-11 21:08:02 +00:00
|
|
|
config 'CONFIG_DEVEL=y'
|
2017-01-18 16:21:43 +00:00
|
|
|
config 'CONFIG_ALL_NONSHARED=y'
|
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
config '# CONFIG_PACKAGE_usbip is not set' -- fails to build
|
|
|
|
config '# CONFIG_PACKAGE_kmod-jool is not set' -- fails to build
|
2018-04-10 18:25:38 +00:00
|
|
|
|
2017-01-18 16:21:43 +00:00
|
|
|
config 'CONFIG_BUSYBOX_CUSTOM=y'
|
|
|
|
config '# CONFIG_BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set'
|
|
|
|
|
|
|
|
config 'CONFIG_PACKAGE_ATH_DEBUG=y'
|
|
|
|
|
2020-05-26 17:57:42 +00:00
|
|
|
try_config 'CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256'
|
|
|
|
|
2018-07-10 20:57:40 +00:00
|
|
|
config '# CONFIG_KERNEL_IP_MROUTE is not set'
|
|
|
|
config '# CONFIG_KERNEL_IPV6_MROUTE is not set'
|
|
|
|
|
2017-09-06 22:17:57 +00:00
|
|
|
try_config 'CONFIG_TARGET_MULTI_PROFILE=y'
|
|
|
|
try_config 'CONFIG_TARGET_PER_DEVICE_ROOTFS=y'
|
2017-02-11 22:33:07 +00:00
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
if envtrue.GLUON_MULTIDOMAIN then
|
2018-01-25 23:13:37 +00:00
|
|
|
config 'CONFIG_GLUON_MULTIDOMAIN=y'
|
2019-06-14 17:20:15 +00:00
|
|
|
end
|
2018-01-25 23:13:37 +00:00
|
|
|
|
2020-05-11 21:08:02 +00:00
|
|
|
if envtrue.GLUON_AUTOREMOVE then
|
|
|
|
config 'CONFIG_AUTOREMOVE=y'
|
|
|
|
end
|
|
|
|
|
2019-06-14 17:20:15 +00:00
|
|
|
if envtrue.GLUON_DEBUG then
|
2017-02-11 22:33:07 +00:00
|
|
|
config 'CONFIG_DEBUG=y'
|
|
|
|
config 'CONFIG_NO_STRIP=y'
|
|
|
|
config '# CONFIG_USE_STRIP is not set'
|
|
|
|
config '# CONFIG_USE_SSTRIP is not set'
|
2020-02-04 01:04:36 +00:00
|
|
|
|
|
|
|
try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
|
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
|
|
|
packages {
|
2020-05-26 18:13:28 +00:00
|
|
|
'-kmod-ipt-offload',
|
2019-06-14 17:20:15 +00:00
|
|
|
'-odhcpd-ipv6only',
|
|
|
|
'-ppp',
|
|
|
|
'-ppp-mod-pppoe',
|
2020-05-01 12:00:55 +00:00
|
|
|
'-urngd',
|
2019-06-14 17:20:15 +00:00
|
|
|
'-wpad-mini',
|
2019-08-11 15:50:03 +00:00
|
|
|
'-wpad-basic',
|
2019-06-14 17:20:15 +00:00
|
|
|
'gluon-core',
|
|
|
|
'ip6tables',
|
|
|
|
}
|