2017-09-07 01:21:42 +00:00
|
|
|
[ "$GLUON_SITEDIR" -a "$GLUON_RELEASE" -a "$BOARD" ] || exit 1
|
|
|
|
|
2018-07-10 20:57:40 +00:00
|
|
|
|
|
|
|
. scripts/modules.sh
|
2018-07-11 19:47:50 +00:00
|
|
|
. scripts/default_feeds.sh
|
2018-07-10 20:57:40 +00:00
|
|
|
|
|
|
|
|
2017-09-07 01:21:42 +00:00
|
|
|
config "CONFIG_GLUON_SITEDIR=\"$GLUON_SITEDIR\""
|
|
|
|
config "CONFIG_GLUON_RELEASE=\"$GLUON_RELEASE\""
|
|
|
|
try_config "CONFIG_GLUON_BRANCH=\"$GLUON_BRANCH\""
|
|
|
|
|
|
|
|
for lang in $GLUON_LANGS; do
|
|
|
|
try_config "CONFIG_GLUON_WEB_LANG_${lang}=y"
|
|
|
|
done
|
|
|
|
|
|
|
|
[ "$BOARD" ] && config "CONFIG_TARGET_${BOARD}=y"
|
|
|
|
[ -z "$SUBTARGET" ] || config "CONFIG_TARGET_${BOARD}_${SUBTARGET}=y"
|
|
|
|
|
2018-07-10 20:57:40 +00:00
|
|
|
# Disable non-default feeds in distfeeds.conf
|
|
|
|
for feed in gluon_base $(echo "$FEEDS" | grep -vxF "$DEFAULT_FEEDS"); do
|
|
|
|
config "# CONFIG_FEED_${feed} is not set"
|
|
|
|
done
|
|
|
|
|
2017-09-07 01:21:42 +00:00
|
|
|
|
2017-01-18 16:21:43 +00:00
|
|
|
config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set'
|
|
|
|
|
|
|
|
config 'CONFIG_ALL_NONSHARED=y'
|
|
|
|
|
2018-04-10 18:25:38 +00:00
|
|
|
config '# CONFIG_PACKAGE_usbip is not set' # fails to build
|
2018-09-30 17:08:40 +00:00
|
|
|
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'
|
|
|
|
|
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
|
|
|
|
2018-01-25 23:13:37 +00:00
|
|
|
if [ "$GLUON_MULTIDOMAIN" = 1 ]; then
|
|
|
|
config 'CONFIG_GLUON_MULTIDOMAIN=y'
|
|
|
|
fi
|
|
|
|
|
2018-01-25 23:03:00 +00:00
|
|
|
if [ "$GLUON_DEBUG" = 1 ]; 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'
|
|
|
|
fi
|
2017-09-07 01:21:42 +00:00
|
|
|
|
|
|
|
|
2018-07-10 20:57:40 +00:00
|
|
|
packages '-odhcpd-ipv6only' '-ppp' '-ppp-mod-pppoe' '-wpad-mini'
|
2019-04-19 11:53:09 +00:00
|
|
|
packages 'gluon-core' 'ip6tables'
|