qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] 'make test' build fixes
@ 2012-11-14 13:12 Cornelia Huck
  2012-11-14 13:12 ` [Qemu-devel] [PATCH 1/2] tests/tcg: test_path is not i386 only Cornelia Huck
  2012-11-14 13:12 ` [Qemu-devel] [PATCH 2/2] rules.mak: Fix find-in-path Cornelia Huck
  0 siblings, 2 replies; 3+ messages in thread
From: Cornelia Huck @ 2012-11-14 13:12 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini, Anthony Liguori

Hi,

I've tried to make 'make test' at least build on an s390 host
(not that it does anything interesting yet...) by changing the
compiler for a test that's supposed to be architecture agnostic
and doing some whitespace fixes in find-in-path.

Build tested on Linux/s390 and Linux/x86.

Cornelia Huck (2):
  tests/tcg: test_path is not i386 only
  rules.mak: Fix find-in-path

 rules.mak          | 4 ++--
 tests/tcg/Makefile | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.7.12.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 1/2] tests/tcg: test_path is not i386 only
  2012-11-14 13:12 [Qemu-devel] [PATCH 0/2] 'make test' build fixes Cornelia Huck
@ 2012-11-14 13:12 ` Cornelia Huck
  2012-11-14 13:12 ` [Qemu-devel] [PATCH 2/2] rules.mak: Fix find-in-path Cornelia Huck
  1 sibling, 0 replies; 3+ messages in thread
From: Cornelia Huck @ 2012-11-14 13:12 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini, Anthony Liguori

test_path is supposed to be run for all architectures, so it should
use the main compiler instead of the i386 compiler.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
 tests/tcg/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index 24e3154..2ffa067 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -81,10 +81,10 @@ run-test_path: test_path
 # rules to compile tests
 
 test_path: test_path.o
-	$(CC_I386) $(LDFLAGS) -o $@ $^ $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 test_path.o: test_path.c
-	$(CC_I386) $(QEMU_INCLUDES) $(GLIB_CFLAGS) $(CFLAGS) -c -o $@ $^
+	$(CC) $(QEMU_INCLUDES) $(GLIB_CFLAGS) $(CFLAGS) -c -o $@ $^
 
 hello-i386: hello-i386.c
 	$(CC_I386) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 2/2] rules.mak: Fix find-in-path
  2012-11-14 13:12 [Qemu-devel] [PATCH 0/2] 'make test' build fixes Cornelia Huck
  2012-11-14 13:12 ` [Qemu-devel] [PATCH 1/2] tests/tcg: test_path is not i386 only Cornelia Huck
@ 2012-11-14 13:12 ` Cornelia Huck
  1 sibling, 0 replies; 3+ messages in thread
From: Cornelia Huck @ 2012-11-14 13:12 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini, Anthony Liguori

Whitespace needs to be stripped before building the path and in
the end to ensure we really get an empty string.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
 rules.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules.mak b/rules.mak
index 1b173aa..66b1d79 100644
--- a/rules.mak
+++ b/rules.mak
@@ -55,9 +55,9 @@ set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN)
 # Looks in the PATH if the argument contains no slash, else only considers one
 # specific directory.  Returns an # empty string if the program doesn't exist
 # there.
-find-in-path = $(if $(find-string /, $1), \
+find-in-path = $(strip $(if $(find-string /, $1), \
         $(wildcard $1), \
-        $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
+        $(wildcard $(patsubst %, %/$(strip $1), $(subst :, ,$(PATH))))))
 
 # Generate files with tracetool
 TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-14 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 13:12 [Qemu-devel] [PATCH 0/2] 'make test' build fixes Cornelia Huck
2012-11-14 13:12 ` [Qemu-devel] [PATCH 1/2] tests/tcg: test_path is not i386 only Cornelia Huck
2012-11-14 13:12 ` [Qemu-devel] [PATCH 2/2] rules.mak: Fix find-in-path Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).