argh, found the blackbox problem: yosys is "doing the right thing" and
[soclayout.git] / mksym.sh
1 #!/bin/bash
2
3 ALLIANCE_TOOLKIT=${ALLIANCE_TOOLKIT:-${HOME}/alliance-check-toolkit/}
4
5 echo "creating symlinks"
6
7 mkdir -p mk/dks.d
8 mkdir -p mk/users.d
9
10 declare -a ScriptsArray=("os" "users" "binaries" "alliance"
11 "design-flow" "pr-coriolis" "pr-alliance" "pr-hibikino"
12 "synthesis-yosys"
13 )
14
15 for script in "${ScriptsArray[@]}"; do
16 if [ ! -L "mk/$script.mk" ]; then
17 echo "link" mk/$script.mk
18 ln -s $ALLIANCE_TOOLKIT/etc/mk/$script.mk mk/$script.mk
19 fi
20 done
21
22 declare -a LibsArray=("sxlib" "nsxlib" "nsxlib45" "cmos" "mosis" "cmos45"
23 )
24
25 for script in "${LibsArray[@]}"; do
26 if [ ! -L "mk/dks.d/$script.mk" ]; then
27 echo "link" mk/dks.d/$script.mk
28 ln -s $ALLIANCE_TOOLKIT/etc/mk/dks.d/$script.mk mk/dks.d/$script.mk
29 fi
30 done
31
32 declare -a UsersArray=("lkcl"
33 )
34
35 for script in "${UsersArray[@]}"; do
36 if [ ! -L "mk/users.d/user-$script.mk" ]; then
37 echo "link" mk/users.d/user-$script.mk
38 ln -s $ALLIANCE_TOOLKIT/etc/mk/users.d/user-$script.mk \
39 mk/users.d/user-$script.mk
40 fi
41 done
42