Bobby R. Bruce has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/28528 )

Change subject: tests: cross-compiling hello binaries for hello_se tests.
......................................................................

tests: cross-compiling hello binaries for hello_se tests.

Some of the hello_se tests fail due to different syntax of the string
for different isas. This patch adds makefiles for cross-compiling the
hello.c file located at tests/test-progs/hello/src/.

Change-Id: I8ccfc0487020df9da722a97e57310db2d2e8882c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28528
Reviewed-by: Bobby R. Bruce <bbr...@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbr...@ucdavis.edu>
Tested-by: kokoro <noreply+kok...@google.com>
---
D tests/test-progs/hello/bin/mips/linux/hello
D tests/test-progs/hello/bin/power/linux/hello
D tests/test-progs/hello/bin/sparc/linux/hello
A tests/test-progs/hello/src/Makefile.mips
4 files changed, 11 insertions(+), 0 deletions(-)

Approvals:
  Bobby R. Bruce: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass



diff --git a/tests/test-progs/hello/bin/mips/linux/hello b/tests/test-progs/hello/bin/mips/linux/hello
deleted file mode 100755
index a3db001..0000000
--- a/tests/test-progs/hello/bin/mips/linux/hello
+++ /dev/null
Binary files differ
diff --git a/tests/test-progs/hello/bin/power/linux/hello b/tests/test-progs/hello/bin/power/linux/hello
deleted file mode 100755
index 6619ae3..0000000
--- a/tests/test-progs/hello/bin/power/linux/hello
+++ /dev/null
Binary files differ
diff --git a/tests/test-progs/hello/bin/sparc/linux/hello b/tests/test-progs/hello/bin/sparc/linux/hello
deleted file mode 100755
index e254ae3..0000000
--- a/tests/test-progs/hello/bin/sparc/linux/hello
+++ /dev/null
Binary files differ
diff --git a/tests/test-progs/hello/src/Makefile.mips b/tests/test-progs/hello/src/Makefile.mips
new file mode 100644
index 0000000..675c8d1
--- /dev/null
+++ b/tests/test-progs/hello/src/Makefile.mips
@@ -0,0 +1,11 @@
+all: hello
+
+hello: hello.c dockcross-mips
+       ./dockcross-mips bash -c '$$CC hello.c -o hello -static'
+
+dockcross-mips:
+       docker run --rm dockcross/linux-mips > ./dockcross-mips
+       chmod +x ./dockcross-mips
+
+clean:
+       rm -f dockcross* hello

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/28528
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I8ccfc0487020df9da722a97e57310db2d2e8882c
Gerrit-Change-Number: 28528
Gerrit-PatchSet: 9
Gerrit-Owner: Mahyar Samani <msam...@ucdavis.edu>
Gerrit-Reviewer: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Jason Lowe-Power <power...@gmail.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to