| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 | NM := $(NM) -B
|
| 12 |
|
| 13 | LDFLAGS_vmlinux := -static -N
|
| 14 | CHECKFLAGS += -D__alpha__
|
| 15 | cflags-y := -pipe -mno-fp-regs -ffixed-8
|
| 16 | cflags-y += $(call cc-option, -fno-jump-tables)
|
| 17 |
|
| 18 | cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
|
| 19 | cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
|
| 20 | cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
|
| 21 | cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
|
| 22 | cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
|
| 23 |
|
| 24 |
|
| 25 | cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev56 -mtune=ev6
|
| 26 |
|
| 27 | cflags-y += $(cpuflags-y)
|
| 28 |
|
| 29 |
|
| 30 | KBUILD_CFLAGS += $(cflags-y)
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 | ifdef CONFIG_AS_IS_GNU
|
| 38 | KBUILD_CFLAGS += -Wa,-mev6
|
| 39 | endif
|
| 40 |
|
| 41 | libs-y += arch/alpha/lib/
|
| 42 |
|
| 43 |
|
| 44 | LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
|
| 45 | export LIBS_Y
|
| 46 |
|
| 47 | boot := arch/alpha/boot
|
| 48 |
|
| 49 |
|
| 50 | all boot: $(boot)/vmlinuz
|
| 51 |
|
| 52 | $(boot)/vmlinuz: vmlinux
|
| 53 | $(Q)$(MAKE) $(build)=$(boot) $@
|
| 54 |
|
| 55 | bootimage bootpfile bootpzfile: vmlinux
|
| 56 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
| 57 |
|
| 58 | archheaders:
|
| 59 | $(Q)$(MAKE) $(build)=arch/alpha/kernel/syscalls all
|
| 60 |
|
| 61 | define archhelp
|
| 62 | echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinuz)'
|
| 63 | echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
|
| 64 | echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
|
| 65 | echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
|
| 66 | endef
|