]> xenbits.xensource.com Git - xen.git/commitdiff
solaris: Fix Solaris tools build.
authorKeir Fraser <keir@xensource.com>
Fri, 2 Nov 2007 10:16:37 +0000 (10:16 +0000)
committerKeir Fraser <keir@xensource.com>
Fri, 2 Nov 2007 10:16:37 +0000 (10:16 +0000)
Signed-off-by: John Levon <john.levon@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/firmware/hvmloader/Makefile
tools/firmware/hvmloader/acpi/acpi2_0.h
tools/firmware/hvmloader/mp_tables.c
tools/firmware/vmxassist/Makefile
tools/tests/blowfish.mk

index 35313e4f01958cbdcfdb6c1677c7d5886c9c0ec5..739a1705586337fb627091684b611bd9e346c759 100644 (file)
@@ -31,9 +31,7 @@ CFLAGS  += $(call cc-option,$(CC),-nopie,)
 CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector,)
 CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
-OBJCOPY  = objcopy
 CFLAGS  += -fno-builtin -O2 -msoft-float
-LDFLAGS  = -nostdlib -Wl,-N -Wl,-Ttext -Wl,$(LOADADDR)
 
 SRCS = hvmloader.c mp_tables.c util.c smbios.c 32bitbios_support.c
 OBJS = $(patsubst %.c,%.o,$(SRCS))
@@ -43,7 +41,7 @@ all: hvmloader
 
 hvmloader: roms.h acpi/acpi.a $(SRCS)
        $(CC) $(CFLAGS) -c $(SRCS)
-       $(CC) $(CFLAGS) $(LDFLAGS) -o hvmloader.tmp $(OBJS) acpi/acpi.a
+       $(LD) $(LDFLAGS_DIRECT) -nostdlib -N -Ttext $(LOADADDR) -o hvmloader.tmp $(OBJS) acpi/acpi.a
        $(OBJCOPY) hvmloader.tmp hvmloader
        rm -f hvmloader.tmp
 
index 491d72e05e723e199a9dd902cde1b0ee1edb78ac..5846cb2fac1cf454033437543b35463980708126 100644 (file)
 #ifndef _ACPI_2_0_H_
 #define _ACPI_2_0_H_
 
-typedef unsigned char  uint8_t;
-typedef   signed char  int8_t;
-typedef unsigned short uint16_t;
-typedef   signed short int16_t;
-typedef unsigned int   uint32_t;
-typedef   signed int   int32_t;
-#ifdef __i386__
-typedef unsigned long long uint64_t;
-typedef   signed long long int64_t;
-#else
-typedef unsigned long uint64_t;
-typedef   signed long int64_t;
-#endif
-
+#include <stdint.h>
 #include <xen/xen.h>
 
 #define ASCII32(a,b,c,d)         \
index c9a7eca1507313ca9a352493683cfcd74a237f9d..bbf9a38f515a2f68751dffe5b9e033f64d5a129d 100644 (file)
  * Place - Suite 330, Boston, MA 02111-1307 USA.
  */
 
+#include <stdint.h>
 #include "config.h"
 
-/* FIXME find a header that already has types defined!!! */
-typedef unsigned char  uint8_t;
-typedef   signed char  int8_t;
-typedef unsigned short uint16_t;
-typedef   signed short int16_t;
-typedef unsigned int   uint32_t;
-typedef   signed int   int32_t;
-#ifdef __i386__
-typedef unsigned long long uint64_t;
-typedef   signed long long int64_t;
-#else
-typedef unsigned long uint64_t;
-typedef   signed long int64_t;
-#endif
-
 /* number of non-processor MP table entries */
 #define NR_NONPROC_ENTRIES     18
 
index 70f7a0e0a3ab00a93c70309745771c914d3e8237..3bb1998a82c14d21a6be277187aacbf1b2dc5c47 100644 (file)
@@ -37,7 +37,6 @@ CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector,)
 CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
 CPP      = cpp -P
-OBJCOPY  = objcopy -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0
 CFLAGS  += $(DEFINES) -I. $(XENINC) -fno-builtin -O2 -msoft-float
 
 OBJECTS = head.o trap.o vm86.o setup.o util.o
@@ -49,7 +48,7 @@ vmxassist.bin: vmxassist.ld $(OBJECTS)
        $(CPP) $(DEFINES) vmxassist.ld > vmxassist.tmp
        $(LD) -o vmxassist $(LDFLAGS_DIRECT) -nostdlib --fatal-warnings -N -T vmxassist.tmp $(OBJECTS)
        nm -n vmxassist > vmxassist.sym
-       $(OBJCOPY) vmxassist vmxassist.tmp
+       $(OBJCOPY) -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0 vmxassist vmxassist.tmp
        dd if=vmxassist.tmp of=vmxassist.bin ibs=512 conv=sync
        rm -f vmxassist.tmp
 
index a66a4ee401028f03ac3f15ac018402f0ed52facb..95c39ae4ab9f69bb9846ba81532b2b722de65671 100644 (file)
@@ -9,7 +9,6 @@ CFLAGS  += $(call cc-option,$(CC),-nopie,)
 CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector,)
 CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
-OBJCOPY  = objcopy
 CFLAGS  += -fno-builtin -O2 -msoft-float
 LDFLAGS  = -nostdlib -Wl,-N -Wl,-Ttext -Wl,0x100000