summaryrefslogtreecommitdiff
path: root/scripts/getsystems
blob: 3ea829e7145d7d50871ea9e65d64a599c8df6b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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