X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Falpha%2FMakefile;h=1b704ee54bf3ad5210aab22c6f36d372aadc19e6;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=46bb6e918385e0b1da9e0383fed8224e2c07cd6d;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile index 46bb6e918..1b704ee54 100644 --- a/arch/alpha/Makefile +++ b/arch/alpha/Makefile @@ -11,6 +11,7 @@ NM := $(NM) -B LDFLAGS_vmlinux := -static -N #-relax +CHECKFLAGS += -D__alpha__ -m64 cflags-y := -pipe -mno-fp-regs -ffixed-8 # Determine if we can use the BWX instructions with GAS. @@ -21,15 +22,11 @@ $(error The assembler '$(AS)' does not support the BWX instruction) endif # Determine if GCC understands the -mcpu= option. -have_mcpu := $(shell if $(CC) -mcpu=ev5 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) - -have_mcpu_pca56 := $(shell if $(CC) -mcpu=pca56 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) - -have_mcpu_ev6 := $(shell if $(CC) -mcpu=ev6 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) - -have_mcpu_ev67 := $(shell if $(CC) -mcpu=ev67 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) - -have_msmall_data := $(shell if $(CC) -msmall-data -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) +have_mcpu := $(call cc-option-yn, -mcpu=ev5) +have_mcpu_pca56 := $(call cc-option-yn, -mcpu=pca56) +have_mcpu_ev6 := $(call cc-option-yn, -mcpu=ev6) +have_mcpu_ev67 := $(call cc-option-yn, -mcpu=ev67) +have_msmall_data := $(call cc-option-yn, -msmall-data) cflags-$(have_msmall_data) += -msmall-data @@ -106,24 +103,13 @@ boot := arch/alpha/boot all boot: $(boot)/vmlinux.gz $(boot)/vmlinux.gz: vmlinux - $(Q)$(MAKE) -f scripts/Makefile.build obj=$(boot) $@ + $(Q)$(MAKE) $(build)=$(boot) $@ bootimage bootpfile bootpzfile: vmlinux - $(Q)$(MAKE) -f scripts/Makefile.build obj=$(boot) $(boot)/$@ - - -prepare: include/asm-$(ARCH)/asm_offsets.h - -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ - include/config/MARKER - -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s - $(call filechk,gen-asm-offsets) + $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ archclean: - $(Q)$(MAKE) -f scripts/Makefile.clean obj=$(boot) - -CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h + $(Q)$(MAKE) $(clean)=$(boot) define archhelp echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'