Commit a440108cc ("tests: Add Makefiles for hello")
introduced Makefiles for building the hello test binary
for ARM and x86 using dockcross. Since dockcross also
provides an image with a 64-bit little endian toolchain
for Power, this adds a Makefile for building the hello
binary.
As of this moment, 64-bit little endian (ppc64le) is the
prevalent variant supported by most distributions. Hence,
we are currently limited to only building the binary for
this variant.
Change-Id: Ic20322ca33c69634d9f17d30b29e522cc35742fb
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40949
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
12 lines
295 B
Makefile
12 lines
295 B
Makefile
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
|