- #!/usr/bin/env bash
- if [ ! -z "$1" ];then
- systems=$(grep -h config target/$1/sys-available/*|cut -d " " -f 2)
- else
- systems=$(grep -h config target/*/sys-available/*|cut -d " " -f 2)
- fi
- for i in $systems;do
- system=${i#ADK_TARGET_SYSTEM_}
- system=$(echo $system|tr '[:upper:]_' '[:lower:]-')
- system=$(echo $system|sed 's#x86-64#x86_64#')
- echo $system
- done
|