This makes it easier to build specific programs or libraries from
script (without building full images) for all the supported devices.

For that a script will simply get the available targets from this
build.sh and then do the source build/envsetup.sh, launch, and make
commands by itself.

This can for instance be used to build libsamsung-ipc or its tools
for all the supported devices.

Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@cyberdimension.org>
---
 build.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/build.sh b/build.sh
index 095fb70c..2fad9c20 100755
--- a/build.sh
+++ b/build.sh
@@ -37,6 +37,7 @@ usage()
     printf "\b>\n"
     printf "%s all      # build all machines\n" "$0"
     printf "%s machines # print all machines supported by this script\n" "$0"
+    printf "%s targets  # print the build targets corresponding to the 
supported machines\n" "$0"
     exit 1
 }
 
@@ -47,6 +48,13 @@ print_machines()
     done
 }
 
+print_targets()
+{
+    for machine in ${supported_machines} ; do
+        printf "replicant_${machine}-userdebug\n"
+    done
+}
+
 build()
 {
     machine="$1"
@@ -72,6 +80,8 @@ if [ "$1" = "all" ] ; then
     done
 elif [ "$1" = "machines" ] ; then
     print_machines
+elif [ "$1" = "targets" ] ; then
+    print_targets
 else
     found=0
     for machine in ${supported_machines} ; do
-- 
2.35.1

_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to