Blame view
arch/sparc/Makefile
2.82 KB
b24413180 License cleanup: ... |
1 |
# SPDX-License-Identifier: GPL-2.0 |
1da177e4c Linux-2.6.12-rc2 |
2 3 4 5 |
# # sparc/Makefile # # Makefile for the architecture dependent flags and dependencies on the |
5e5387900 sparc,sparc64: un... |
6 |
# Sparc and sparc64. |
1da177e4c Linux-2.6.12-rc2 |
7 |
# |
5e5387900 sparc,sparc64: un... |
8 9 10 11 |
# Copyright (C) 1994,1996,1998 David S. Miller (davem@caip.rutgers.edu) # Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz) # We are not yet configured - so test on arch |
c84ca616b sparc: fix KBUILD... |
12 |
ifeq ($(ARCH),sparc64) |
5e5387900 sparc,sparc64: un... |
13 |
KBUILD_DEFCONFIG := sparc64_defconfig |
c84ca616b sparc: fix KBUILD... |
14 15 |
else KBUILD_DEFCONFIG := sparc32_defconfig |
5e5387900 sparc,sparc64: un... |
16 17 18 19 20 |
endif ifeq ($(CONFIG_SPARC32),y) ##### # sparc32 |
1da177e4c Linux-2.6.12-rc2 |
21 |
# |
b0cdd599d sparc,sparc64: ad... |
22 |
CHECKFLAGS += -D__sparc__ |
d503ac531 kbuild: rename LD... |
23 |
KBUILD_LDFLAGS := -m elf32_sparc |
b0cdd599d sparc,sparc64: ad... |
24 |
export BITS := 32 |
7f5620a5f sparc: Set UTS_MA... |
25 |
UTS_MACHINE := sparc |
1da177e4c Linux-2.6.12-rc2 |
26 |
|
22be3b105 sparc32: Add -Wa,... |
27 28 29 30 |
# We are adding -Wa,-Av8 to KBUILD_CFLAGS to deal with a specs bug in some # versions of gcc. Some gcc versions won't pass -Av8 to binutils when you # give -mcpu=v8. This silently worked with older bintutils versions but # does not any more. |
38753586a sparc: clean up M... |
31 |
KBUILD_CFLAGS += -m32 -mcpu=v8 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 |
22be3b105 sparc32: Add -Wa,... |
32 |
KBUILD_CFLAGS += -Wa,-Av8 |
38753586a sparc: clean up M... |
33 |
KBUILD_AFLAGS += -m32 -Wa,-Av8 |
1da177e4c Linux-2.6.12-rc2 |
34 |
|
5e5387900 sparc,sparc64: un... |
35 36 37 38 |
else ##### # sparc64 # |
1f2f01b12 kbuild: add machi... |
39 |
CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -D__arch64__ |
d503ac531 kbuild: rename LD... |
40 |
KBUILD_LDFLAGS := -m elf64_sparc |
38753586a sparc: clean up M... |
41 42 |
export BITS := 64 UTS_MACHINE := sparc64 |
5e5387900 sparc,sparc64: un... |
43 |
|
38753586a sparc: clean up M... |
44 45 46 |
KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow KBUILD_CFLAGS += -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare KBUILD_CFLAGS += -Wa,--undeclared-regs |
5e5387900 sparc,sparc64: un... |
47 48 49 50 51 52 53 54 |
KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3) KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs ifeq ($(CONFIG_MCOUNT),y) KBUILD_CFLAGS += -pg endif endif |
1da177e4c Linux-2.6.12-rc2 |
55 |
|
a88b5ba8b sparc,sparc64: un... |
56 |
head-y := arch/sparc/kernel/head_$(BITS).o |
5e5387900 sparc,sparc64: un... |
57 |
|
e1d7de837 sparc: introduce ... |
58 59 |
# See arch/sparc/Kbuild for the core part of the kernel core-y += arch/sparc/ |
5e5387900 sparc,sparc64: un... |
60 |
|
5de18cde3 sparc,sparc64: un... |
61 |
libs-y += arch/sparc/prom/ |
478b8fecd sparc,sparc64: un... |
62 |
libs-y += arch/sparc/lib/ |
1da177e4c Linux-2.6.12-rc2 |
63 |
|
bdde6b3c8 sparc64: Hibernat... |
64 |
drivers-$(CONFIG_PM) += arch/sparc/power/ |
9550e59c4 [SPARC]: Add spar... |
65 |
drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/ |
a8c601ca2 sparc,sparc64: un... |
66 |
boot := arch/sparc/boot |
1da177e4c Linux-2.6.12-rc2 |
67 |
|
48e46b7b3 sparc64: build co... |
68 69 |
# Default target all: zImage |
684151a75 sparc32: added U-... |
70 |
image zImage uImage tftpboot.img vmlinux.aout: vmlinux |
a8c601ca2 sparc,sparc64: un... |
71 |
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
1da177e4c Linux-2.6.12-rc2 |
72 |
|
c78f77e20 sparc: Add "insta... |
73 74 |
install: $(Q)$(MAKE) $(build)=$(boot) $@ |
1da177e4c Linux-2.6.12-rc2 |
75 |
archclean: |
a8c601ca2 sparc,sparc64: un... |
76 |
$(Q)$(MAKE) $(clean)=$(boot) |
1da177e4c Linux-2.6.12-rc2 |
77 |
|
368003300 sparc: generate u... |
78 79 |
archheaders: $(Q)$(MAKE) $(build)=arch/sparc/kernel/syscalls all |
9a08862a5 vDSO for sparc |
80 81 82 |
PHONY += vdso_install vdso_install: $(Q)$(MAKE) $(build)=arch/sparc/vdso $@ |
349101da8 sparc: Add target... |
83 |
# This is the image used for packaging |
a8c601ca2 sparc,sparc64: un... |
84 |
KBUILD_IMAGE := $(boot)/zImage |
349101da8 sparc: Add target... |
85 |
|
1da177e4c Linux-2.6.12-rc2 |
86 |
# Don't use tabs in echo arguments. |
5e5387900 sparc,sparc64: un... |
87 |
ifeq ($(ARCH),sparc) |
1da177e4c Linux-2.6.12-rc2 |
88 89 |
define archhelp echo '* image - kernel image ($(boot)/image)' |
349101da8 sparc: Add target... |
90 |
echo '* zImage - stripped kernel image ($(boot)/zImage)' |
684151a75 sparc32: added U-... |
91 |
echo ' uImage - U-Boot SPARC32 Image (only for LEON)' |
1da177e4c Linux-2.6.12-rc2 |
92 93 |
echo ' tftpboot.img - image prepared for tftp' endef |
5e5387900 sparc,sparc64: un... |
94 95 |
else define archhelp |
48e46b7b3 sparc64: build co... |
96 97 98 |
echo '* vmlinux - standard sparc64 kernel' echo '* zImage - stripped and compressed sparc64 kernel ($(boot)/zImage)' echo ' vmlinux.aout - a.out kernel for sparc64' |
5e5387900 sparc,sparc64: un... |
99 100 101 |
echo ' tftpboot.img - image prepared for tftp' endef endif |