ia64/xen-unstable

view extras/mini-os/arch/ia64/arch.mk @ 14425:f74e837c3902

[IA64][MINIOS] Make Endian-ness build changeable on the command line

Now you can do 'BIGENDIAN=y make'

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild2.aw
date Tue Mar 20 10:07:11 2007 -0600 (2007-03-20)
parents 0fadd0476e03
children 7ef733b961c8
line source
1 # Build for Big Endian?
2 BIGENDIAN ?= n
4 ARCH_CFLAGS := -mfixed-range=f2-f5,f12-f15,f32-f127 -mconstant-gp
5 ARCH_CFLAGS += -O2
6 ARCH_ASFLAGS := -x assembler-with-cpp
7 ARCH_ASFLAGS += -mfixed-range=f2-f5,f12-f15,f32-f127 -fomit-frame-pointer
8 ARCH_ASFLAGS += -fno-builtin -fno-common -fno-strict-aliasing -mconstant-gp
10 ARCH_LDFLAGS = -warn-common
12 # Next lines are for big endian code !
13 ifeq ($(BIGENDIAN),y)
14 ARCH_CFLAGS += -mbig-endian -Wa,-mbe -Wa,-mlp64
15 ARCH_CFLAGS += -DBIG_ENDIAN
16 ARCH_ASFLAGS += -Wa,-mbe
17 ARCH_ASFLAGS += -DBIG_ENDIAN
18 ARCH_LDFLAGS = -EB -d
19 endif