Handle failures correctly so that CI for example will terminate. Add
-i option to update index only and not heads.
Change-Id: Idabcd8c855eb513bf702c0808aff28b28262c9c7
Move feed-devices generation earlier, before target installation to
ensure that generated files are correct earlier.
Fixes: 3472f88614 ("iop: feeds_update: Generate list of feed-devices dirs")
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
During feeds_update, generate a list of directories that contain
additional device profiles. Via some includes in the target image
Makefiles, any <BOARD/image/<SUBTARGET>.mk inside those directories will
get included, thus allowing to extend the list of devices from an
external feed. Motivation for this is that the external feed might have
a different access permission than the target-definition.
This code should probably live in the Perl script scripts/feeds in the
future, but for now, while we are experimenting with the feature, the
existing approach in feeds_update is considered good enough.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Workaround a bug in the OpenWrt build system that was introduced when
the installed target path had been moved to target/linux/feeds.
Config.in and Makefile from installed targets are not properly included
from the new location. This hack is to be removed once the issues are
fixed.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
The file was indented with a mix of spaces and tabs. Unify formating by
running shfmt on the file.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Similarly to 986fc5ea (Make dev-check check for SSH instead of non-HTTP,
2020-06-23), check for SSH instead of whether the repo was cloned via
HTTP. Developers might have other remotes such as OpenWrt's configured.
Don't remove all installed packages at the start of
feeds_update. Remove duplicate feed installs as named feeds are
included with the install -a command later.