diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-25 16:59:50 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-25 17:04:55 +0100 |
commit | 254625d43b2ddb38faddd9f5fa31c63ff4f3c956 (patch) | |
tree | c1944ec71b25e19a224c0a9d394a0949313682b2 | |
parent | b325667e48aba3e6d3fd2889533a7cf9a948366a (diff) | |
download | vendor_replicant-replicant-6.0.tar.gz vendor_replicant-replicant-6.0.tar.bz2 vendor_replicant-replicant-6.0.zip |
build.sh: Add command to print available targetsHEADreplicant-6.0
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 <GNUtoo@cyberdimension.org>
-rwxr-xr-x | build.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |