Skip to contentSkip to conversation

user: compile ioport-user.c only for x86

Qemu-devel Filip Navara 2 participants 2 messages Aug 15, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 21 lines · Anthony Liguori

From: Blue Swirl <[email protected]>

Makefile.target +2 -2
index 93c555b..74f869d 100644
@@ -87,13 +87,17 @@ VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
  QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
 
  obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
-      elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
-      ioport-user.o
+      elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o
+

 obj-$(TARGET_HAS_BFLT) += flatload.o
 obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o

 obj-$(TARGET_I386) += vm86.o

Makefile.target

Quoted 3 lines
Makefile.target +3 -0
+ifeq ($(TARGET_BASE_ARCH), i386)
+obj-y += ioport-user.o
+endif

Shouldn't this be just

obj-$(TARGET_I386) += ioport-user.o

?

Quoted 10 lines

+
 nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))

Makefile.target +0 -0
@@ -118,7 +122,11 @@ LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000

 LIBS+=-lmx

 obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
-        gdbstub.o gdbstub-xml.o ioport-user.o
+        gdbstub.o gdbstub-xml.o

Makefile.target

Quoted 4 lines
Makefile.target +4 -0
+
+ifeq ($(TARGET_BASE_ARCH), i386)
+obj-y += ioport-user.o
+endif

Same here...

Quoted 20 lines

 ARLIBS=libqemu.a

Makefile.target +5 -2
@@ -133,8 +141,11 @@ VPATH+=:$(SRC_PATH)/bsd-user
  QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
 
  obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
-        gdbstub.o gdbstub-xml.o ioport-user.o
-obj-y += uaccess.o
+        gdbstub.o gdbstub-xml.o uaccess.o
+
+ifeq ($(TARGET_BASE_ARCH), i386)
+obj-y += ioport-user.o
+endif
 

 ARLIBS=libqemu.a ../libqemu_user.a

#2 lore raw
Quoted 28 lines · Filip Navara
Quoted 21 lines · Anthony Liguori

From: Blue Swirl <[email protected]>

Makefile.target +2 -2
index 93c555b..74f869d 100644
@@ -87,13 +87,17 @@ VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
  QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
 
  obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
-      elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
-      ioport-user.o
+      elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o
+

 obj-$(TARGET_HAS_BFLT) += flatload.o
 obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o

 obj-$(TARGET_I386) += vm86.o

Makefile.target

Quoted 3 lines
Makefile.target +3 -0
+ifeq ($(TARGET_BASE_ARCH), i386)
+obj-y += ioport-user.o
+endif

Shouldn't this be just

Quoted 3 lines

obj-$(TARGET_I386) += ioport-user.o

?

No, because TARGET_I386 is not defined for x86_64. If there was TARGET_BASE_I386 (or similar) which was either 'y' or undefined, this could be changed to

obj-$(TARGET_BASE_I386) += ioport-user.o

We could of course have
obj-$(TARGET_I386) += ioport-user.o
obj-$(TARGET_X86_64) += ioport-user.o

But I trust Juan will rearrange this anyway. :-)