Received: from eggs.gnu.org ([2001:4830:134:3::10]:39458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvXQc-0006W7-HR for qemu-devel@nongnu.org; Sat, 06 Jul 2013 14:41:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvXQa-0004Aj-1Z for qemu-devel@nongnu.org; Sat, 06 Jul 2013 14:41:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34229 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvXQZ-0004AU-Qv for qemu-devel@nongnu.org; Sat, 06 Jul 2013 14:41:47 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 6 Jul 2013 20:41:37 +0200 Message-Id: <1373136097-14465-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] tests/tcg/xtensa: Fix out-of-tree build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Signed-off-by: Andreas F=C3=A4rber --- configure | 5 +++-- tests/tcg/xtensa/Makefile | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 0e0adde..7b60efd 100755 --- a/configure +++ b/configure @@ -4469,13 +4469,14 @@ if [ "$dtc_internal" =3D "yes" ]; then fi =20 # build tree in object directory in case the source is not in the curren= t directory -DIRS=3D"tests tests/tcg tests/tcg/cris tests/tcg/lm32 tests/libqos" +DIRS=3D"tests tests/tcg tests/tcg/cris tests/tcg/lm32 tests/tcg/xtensa" +DIRS=3D"$DIRS tests/libqos" DIRS=3D"$DIRS pc-bios/optionrom pc-bios/spapr-rtas pc-bios/s390-ccw" DIRS=3D"$DIRS roms/seabios roms/vgabios" DIRS=3D"$DIRS qapi-generated" FILES=3D"Makefile tests/tcg/Makefile qdict-test-data.txt" FILES=3D"$FILES tests/tcg/cris/Makefile tests/tcg/cris/.gdbinit" -FILES=3D"$FILES tests/tcg/lm32/Makefile po/Makefile" +FILES=3D"$FILES tests/tcg/lm32/Makefile tests/tcg/xtensa/Makefile po/Mak= efile" FILES=3D"$FILES pc-bios/optionrom/Makefile pc-bios/keymaps" FILES=3D"$FILES pc-bios/spapr-rtas/Makefile" FILES=3D"$FILES pc-bios/s390-ccw/Makefile" diff --git a/tests/tcg/xtensa/Makefile b/tests/tcg/xtensa/Makefile index 002fd87..c77ff76 100644 --- a/tests/tcg/xtensa/Makefile +++ b/tests/tcg/xtensa/Makefile @@ -1,4 +1,4 @@ --include ../../config-host.mak +-include ../../../config-host.mak =20 CROSS=3Dxtensa-dc232b-elf- =20 @@ -52,13 +52,13 @@ TESTCASES +=3D test_windowed.tst =20 all: build =20 -%.o: $(SRC_PATH)/tests/xtensa/%.c +%.o: $(SRC_PATH)/tests/tcg/xtensa/%.c $(CC) $(CFLAGS) -c $< -o $@ =20 -%.o: $(SRC_PATH)/tests/xtensa/%.S +%.o: $(SRC_PATH)/tests/tcg/xtensa/%.S $(AS) $(ASFLAGS) -c $< -o $@ =20 -%.tst: %.o macros.inc $(CRT) Makefile +%.tst: %.o $(SRC_PATH)/tests/tcg/xtensa/macros.inc $(CRT) Makefile $(LD) $(LDFLAGS) $(NOSTDFLAGS) $(CRT) $< -o $@ =20 build: $(TESTCASES) --=20 1.8.1.4