-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathenv.slac.sh.in
36 lines (36 loc) · 938 Bytes
/
env.slac.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is AUTOMATICALLY GENERATED
# DO NOT EDIT
if [ -z "$ARCH" ] ; then
MACH=`uname -m`
VERS=`uname -v`
REL=`uname -r`
if echo $VERS | grep -q "PREEMPT RT" ; then
if echo $REL | grep -q '4[.]14[.]139' ; then
ARCH=buildroot-2019.08-
elif echo $REL | grep -q '4[.]8[.]11' ; then
ARCH=buildroot-2016.11.1-
elif echo $REL | grep -q '3[.]18[.]11' ; then
ARCH=buildroot-2015.02-
else
echo "Unable to determine buildroot version"
fi
elif echo $REL | grep -q el6 ; then
ARCH=rhel6-
elif echo $REL | grep -q el7 ; then
ARCH=rhel7-
elif echo $REL | grep -q el8 ; then
ARCH=rhel8-
elif echo $REL | grep -q el9 ; then
ARCH=rhel9-
else
ARCH="linux-"
fi
ARCH=$ARCH$MACH
fi
if [ -z $ARCH ] ; then
echo "ARCH not set; not modifying environment"
else
echo "Setting environment for $ARCH"
# TOPDIR is replaced by 'make'!
. TOPDIR/${ARCH}/bin/env-*.sh
fi