gluon/scripts/feeds.sh
Sven Roederer e68594963f scripts: do not create gluon_base entry in feeds.conf
The gluon-script "feeds.sh" creates by default a "gluon_base" entry in the feeds.conf
of OpenWrt. This links to the gluon-base packages directory and causes an error message
during build, as this directory does not exist in our non-gluon firmware.
Add a test for definiton of a "FOREIGN_BUILD" variable to the feeds.sh script, which
will no add the mentioned line to the feeds.conf, when defined.
2020-02-17 22:32:28 +01:00

25 lines
472 B
Bash
Executable File

#!/bin/bash
set -e
. scripts/modules.sh
. scripts/default_feeds.sh
rm -rf openwrt/tmp
rm -rf openwrt/feeds
rm -rf openwrt/package/feeds
(
[ -n "${FOREIGN_BUILD}" ] || echo 'src-link gluon_base ../../package'
for feed in $FEEDS; do
echo "src-link $feed ../../packages/$feed"
done
for feed in $(echo "$DEFAULT_FEEDS" | grep -vxF "$FEEDS"); do
echo "src-dummy $feed"
done
) > openwrt/feeds.conf
openwrt/scripts/feeds update -a
openwrt/scripts/feeds install -a