1f022469dd5d1aedb4b58922fee1d5522f1e05bc
[gem5.git] / tests / test-progs / hello / src / Makefile.arm
1 SERVER_USER=
2 SERVER_PATH=/z/www/htdocs/dist/current/test-progs/hello/bin/arm/linux
3 FETCH_PATH=http://dist.gem5.org/dist/current/test-progs/hello/bin/arm/linux
4 UPLOAD_LOCATION=$(SERVER_USER)daystrom.gem5.org:$(SERVER_PATH)
5
6 all: hello64-static hello32-static
7
8 upload: hello64-static hello32-static
9 scp hello64-static hello32-static $(UPLOAD_LOCATION)
10
11 hello64-static: hello.c dockcross-arm64
12 ./dockcross-arm64 bash -c '$$CC hello.c -o hello64-static -static'
13
14 hello32-static: hello.c dockcross-armv7
15 ./dockcross-armv7 bash -c '$$CC hello.c -o hello32-static -static'
16
17 dockcross-arm64:
18 docker run --rm dockcross/linux-arm64 > ./dockcross-arm64
19 chmod +x ./dockcross-arm64
20
21 dockcross-armv7:
22 docker run --rm dockcross/linux-armv7 > ./dockcross-armv7
23 chmod +x ./dockcross-armv7
24
25 clean:
26 rm -f dockcross* hello64-static hello32-static