tests: arch-power: Add support for building hello
[gem5.git] / tests / test-progs / hello / src / Makefile.power
diff --git a/tests/test-progs/hello/src/Makefile.power b/tests/test-progs/hello/src/Makefile.power
new file mode 100644 (file)
index 0000000..6fb280a
--- /dev/null
@@ -0,0 +1,11 @@
+all: hello64le-static
+
+hello64le-static: hello.c dockcross-ppc64le
+       ./dockcross-ppc64le bash -c '$$CC hello.c -o hello64le-static -static'
+
+dockcross-ppc64le:
+       docker run --rm dockcross/linux-ppc64le > ./dockcross-ppc64le
+       chmod +x ./dockcross-ppc64le
+
+clean:
+       rm -f dockcross* hello64le-static