aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/mbootpack/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-30 13:12:47 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-30 13:12:47 +0000
commit5dbd0a6081a79a2098a4cdc7cb01f64fcf63057e (patch)
treef29adc9926587f6b4ebe43b729e8900970f72b3f /tools/misc/mbootpack/Makefile
parente4dfe0cdba5ee02d3b00e42454790f0ee7d381bf (diff)
downloadxen-5dbd0a6081a79a2098a4cdc7cb01f64fcf63057e.tar.gz
xen-5dbd0a6081a79a2098a4cdc7cb01f64fcf63057e.tar.bz2
xen-5dbd0a6081a79a2098a4cdc7cb01f64fcf63057e.zip
Make mbootpack work on big-endian systems.
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
Diffstat (limited to 'tools/misc/mbootpack/Makefile')
-rw-r--r--tools/misc/mbootpack/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/misc/mbootpack/Makefile b/tools/misc/mbootpack/Makefile
index 69d26dc014..135c67d85d 100644
--- a/tools/misc/mbootpack/Makefile
+++ b/tools/misc/mbootpack/Makefile
@@ -20,8 +20,7 @@ GDB := gdb
INCS := -I. -I-
DEFS :=
LDFLAGS :=
-CC := gcc
-CFLAGS := -Wall -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
+CFLAGS := -Wall -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
CFLAGS += -Wmissing-prototypes
#CFLAGS += -pipe -g -O0 -Wcast-align
CFLAGS += -pipe -O3
@@ -34,7 +33,7 @@ DEPFLAGS = -Wp,-MD,.$(@F).d
DEPS = .*.d
mbootpack: $(OBJS)
- $(CC) -o $@ $(filter-out %.a, $^) $(LDFLAGS)
+ $(HOSTCC) -o $@ $(filter-out %.a, $^) $(LDFLAGS)
clean:
$(RM) mbootpack *.o $(DEPS) bootsect setup bzimage_header.c bin2c
@@ -48,7 +47,7 @@ setup: setup.S
$(LD) -m elf_i386 -Ttext 0x0 -s --oformat binary setup.o -o $@
bin2c: bin2c.o
- $(CC) -o $@ $^
+ $(HOSTCC) -o $@ $^
bzimage_header.c: bootsect setup bin2c
./bin2c -n 8 -b1 -a bzimage_bootsect bootsect > bzimage_header.c
@@ -58,10 +57,10 @@ buildimage.c: bzimage_header.c
@
%.o: %.S
- $(CC) $(DEPFLAGS) $(CFLAGS) $(INCS) $(DEFS) -c $< -o $@
+ $(HOSTCC) $(DEPFLAGS) $(CFLAGS) $(INCS) $(DEFS) -c $< -o $@
%.o: %.c
- $(CC) $(DEPFLAGS) $(CFLAGS) $(INCS) $(DEFS) -c $< -o $@
+ $(HOSTCC) $(DEPFLAGS) $(CFLAGS) $(INCS) $(DEFS) -c $< -o $@
.PHONY: all clean gdb
.PRECIOUS: $(OBJS) $(OBJS:.o=.c) $(DEPS)