On 25/09/18 14:29, Jan Beulich wrote: > In order to be able to verify the 32-bit variant builds and runs, > introduce a respective target (and the necessary other adjustments). > > Signed-off-by: Jan Beulich <jbeul...@suse.com>
I tried this, but got: make: Entering directory '/local/xen.git/tools/tests/x86_emulator/32' gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -m32 -I/local/xen.git/tools/tests/x86_emulator/32/../../../../tools/include -I. -D__XEN_TOOLS__ -c -g -o x86-emulate.o ../x86-emulate.c gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -m32 -I/local/xen.git/tools/tests/x86_emulator/32/../../../../tools/include -I. -o test_x86_emulator x86-emulate.o ../test_x86_emulator.o ../evex-disp8.o ../wrappers.o /usr/bin/ld: i386:x86-64 architecture of input file `../test_x86_emulator.o' is incompatible with i386 output /usr/bin/ld: i386:x86-64 architecture of input file `../evex-disp8.o' is incompatible with i386 output /usr/bin/ld: i386:x86-64 architecture of input file `../wrappers.o' is incompatible with i386 output collect2: error: ld returned 1 exit status ../Makefile:153: recipe for target 'test_x86_emulator' failed > --- > v4: Moved ahead in series. > v3: New. > > --- a/.gitignore > +++ b/.gitignore > @@ -240,6 +240,7 @@ tools/security/xensec_tool > tools/tests/depriv/depriv-fd-checker > tools/tests/x86_emulator/*.bin > tools/tests/x86_emulator/*.tmp > +tools/tests/x86_emulator/32/x86_emulate > tools/tests/x86_emulator/3dnow*.[ch] > tools/tests/x86_emulator/asm > tools/tests/x86_emulator/avx*.[ch] > --- /dev/null > +++ b/tools/tests/x86_emulator/32/Makefile > @@ -0,0 +1,4 @@ > +override XEN_COMPILE_ARCH := x86_32 > +XEN_ROOT = $(CURDIR)/../../../.. > +VPATH += .. > +include ../Makefile > --- a/tools/tests/x86_emulator/Makefile > +++ b/tools/tests/x86_emulator/Makefile > @@ -1,5 +1,7 @@ > > +ifeq ($(XEN_ROOT),) > XEN_ROOT=$(CURDIR)/../../.. > +endif How about ?= ? ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel