summaryrefslogtreecommitdiff
path: root/tests/test-progs/hello/src/Makefile.arm
blob: 2aad6f555367927c43b7fb888e42edc198ae64bc (plain)
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
SERVER_USER=
SERVER_PATH=/z/www/htdocs/dist/current/test-progs/hello/bin/arm/linux
FETCH_PATH=http://gem5.org/dist/current/test-progs/hello/bin/arm/linux
UPLOAD_LOCATION=$(SERVER_USER)daystrom.gem5.org:$(SERVER_PATH)

all: hello64-static hello32-static

upload: hello64-static hello32-static
	scp hello64-static hello32-static $(UPLOAD_LOCATION)

hello64-static: hello.c dockcross-arm64
	./dockcross-arm64 bash -c '$$CC hello.c -o hello64-static -static'

hello32-static: hello.c dockcross-armv7
	./dockcross-armv7 bash -c '$$CC hello.c -o hello32-static -static'

dockcross-arm64:
	docker run --rm dockcross/linux-arm64 > ./dockcross-arm64
	chmod +x ./dockcross-arm64

dockcross-armv7:
	docker run --rm dockcross/linux-armv7 > ./dockcross-armv7
	chmod +x ./dockcross-armv7

clean:
	rm -f dockcross* hello64-static hello32-static