From 3472f88614f1af30d0955d0aec55949610199e64 Mon Sep 17 00:00:00 2001 From: Andreas Gnau Date: Wed, 29 Mar 2023 18:38:33 +0200 Subject: [PATCH] iop: feeds_update: Generate list of feed-devices dirs During feeds_update, generate a list of directories that contain additional device profiles. Via some includes in the target image Makefiles, any .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 --- iop/scripts/feeds_update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iop/scripts/feeds_update.sh b/iop/scripts/feeds_update.sh index 98ba87606..310738b95 100755 --- a/iop/scripts/feeds_update.sh +++ b/iop/scripts/feeds_update.sh @@ -59,6 +59,12 @@ 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 }