iop: feeds_update: Move feed-devices generation earlier

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>
This commit is contained in:
Andreas Gnau 2023-03-30 11:17:32 +02:00
parent 3472f88614
commit 7de9e6c348

View file

@ -30,6 +30,12 @@ function feeds_update {
./scripts/feeds install -f -p openwrt_core -a
fi
(
echo '# DO NOT EDIT. Autogenerated file by ./iop feeds_update'
echo 'FEED_DEVICES_DIRS:='
find feeds -type f -name .is-feed-devices-dir -printf 'FEED_DEVICES_DIRS+=$(TOPDIR)/%h'
) > target/linux/feed-devices/feed-devices-list.mk
# targets need to be installed explicitly
for target in $(ls ./feeds/targets); do
rm -f target/linux/$target
@ -59,12 +65,6 @@ function feeds_update {
# record when we last run this script
touch tmp/.iop_bootstrap
(
echo '# DO NOT EDIT. Autogenerated file by ./iop feeds_update'
echo 'FEED_DEVICES_DIRS:='
find feeds -type f -name .is-feed-devices-dir -printf 'FEED_DEVICES_DIRS+=$(TOPDIR)/%h'
) > target/linux/feed-devices/feed-devices-list.mk
# always return true
exit 0
}