File: linsetup.sh

package info (click to toggle)
oss4 4.2-build2020-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,408 kB
  • sloc: ansic: 237,053; cpp: 18,981; sh: 4,909; pascal: 3,863; asm: 1,189; makefile: 646; php: 53; xml: 46
file content (52 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (5)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

if test "$CONFIGURE " != "YES "
then
	echo
	echo Error: Wrong usage
	echo
	echo You must run `dirname $0`/configure instead of $0
	exit 1
fi

if test "`ls .` " != " "
then
	echo Error: Current directory must be empty
	exit 1
fi

if test "`uname -m` " = "arm "
then
# ARM doesn't have regparm support

	echo Setting up for ARM architecture
	sh $SRCDIR/setup/setupdir.sh
	exit 0
fi

# Setup directory for REGPARM

unset NO_REGPARM
export USE_REGPARM=1

echo Setting up full REGPARM compiling environment

echo "SUBDIRS+=noregparm" > .makefile
sh $SRCDIR/setup/setupdir.sh

# Setup for NOREGPARM

mkdir noregparm

unset USE_REGPARM
export NO_REGPARM=1

echo > .nocopy
echo Setting up kernel-only NOREGPARM compiling environment
(cd noregparm;sh $SRCDIR/setup/setupdir.sh -K)
rm -f .nocopy

# Make sure both versions share the same timestamp.h file.
cp -f kernel/framework/include/timestamp.h noregparm/kernel/framework/include/timestamp.h

exit 0