Subversion Repositories HelenOS

Rev

Rev 1845 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1845 decky 1
#! /bin/bash
2
 
3
BASE="$HOME/HelenOS.export"
4
TARGETS="amd64 ia32 ia64 mips32gbe mips32gle ppc32 ppc64 sparc64"
5
OUTPUT="$HOME/arch"
6
 
7
for TARGET in $TARGETS ; do
1847 decky 8
	if [ "$TARGET" == "mips32gbe" ]; then
9
		UTARGET="mips32eb"
10
	elif [ "$TARGET" == "mips32gle" ]; then
11
		UTARGET="mips32"
12
	else
13
		UTARGET="$TARGET"
14
	fi
15
 
1845 decky 16
	rm -fr "$OUTPUT/$TARGET"
17
	mkdir -p "$OUTPUT/$TARGET/include"
18
 
19
	cd "$BASE"
20
	make distclean
21
	make "PLATFORM=$TARGET" "COMPILER=cross" "CONFIG_DEBUG=n"
22
 
1847 decky 23
	cp -v "$BASE/uspace/libc/arch/$UTARGET/src/entry.o" "$OUTPUT/$TARGET"
24
	cp -v "$BASE/uspace/libc/arch/$UTARGET/_link.ld" "$OUTPUT/$TARGET"
25
	cp -v "$BASE/uspace/libc/libc.a" "$OUTPUT/$TARGET"
26
	cp -v "$BASE/uspace/softint/libsoftint.a" "$OUTPUT/$TARGET"
27
	cp -v "$BASE/uspace/softfloat/libsoftfloat.a" "$OUTPUT/$TARGET"
28
	cp -v -R -L "$BASE/uspace/libc/include" "$OUTPUT/$TARGET"
1845 decky 29
done