~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sparc/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/sparc/Makefile (Version linux-6.12-rc7) and /arch/i386/Makefile (Version linux-2.6.0)


  1 # SPDX-License-Identifier: GPL-2.0             << 
  2 #                                                   1 #
  3 # sparc/Makefile                               !!   2 # i386/Makefile
  4 #                                                   3 #
  5 # Makefile for the architecture dependent flag !!   4 # This file is included by the global makefile so that you can add your own
  6 # Sparc and sparc64.                           !!   5 # architecture-specific flags and dependencies. Remember to do have actions
                                                   >>   6 # for "archclean" cleaning up for this architecture.
                                                   >>   7 #
                                                   >>   8 # This file is subject to the terms and conditions of the GNU General Public
                                                   >>   9 # License.  See the file "COPYING" in the main directory of this archive
                                                   >>  10 # for more details.
                                                   >>  11 #
                                                   >>  12 # Copyright (C) 1994 by Linus Torvalds
                                                   >>  13 #
                                                   >>  14 # 19990713  Artur Skawina <skawina@geocities.com>
                                                   >>  15 #           Added '-march' and '-mpreferred-stack-boundary' support
  7 #                                                  16 #
  8 # Copyright (C) 1994,1996,1998 David S. Miller << 
  9 # Copyright (C) 1998 Jakub Jelinek (jj@ultra.l << 
 10                                                    17 
 11 # We are not yet configured - so test on arch  !!  18 LDFLAGS         := -m elf_i386
 12 ifeq ($(ARCH),sparc64)                         !!  19 OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
 13         KBUILD_DEFCONFIG := sparc64_defconfig  !!  20 LDFLAGS_vmlinux :=
 14 else                                           << 
 15         KBUILD_DEFCONFIG := sparc32_defconfig  << 
 16 endif                                          << 
 17                                                    21 
 18 ifeq ($(CONFIG_SPARC32),y)                     !!  22 CFLAGS += -pipe
 19 #####                                          << 
 20 # sparc32                                      << 
 21 #                                              << 
 22                                                    23 
 23 CHECKFLAGS     += -D__sparc__                  !!  24 # prevent gcc from keeping the stack 16 byte aligned
 24 KBUILD_LDFLAGS := -m elf32_sparc               !!  25 CFLAGS += $(call check_gcc,-mpreferred-stack-boundary=2,)
 25 export BITS    := 32                           << 
 26 UTS_MACHINE    := sparc                        << 
 27                                                    26 
 28 # We are adding -Wa,-Av8 to KBUILD_CFLAGS to d !!  27 align := $(subst -functions=0,,$(call check_gcc,-falign-functions=0,-malign-functions=0))
 29 # versions of gcc.  Some gcc versions won't pa << 
 30 # give -mcpu=v8.  This silently worked with ol << 
 31 # does not any more.                           << 
 32 KBUILD_CFLAGS  += -m32 -mcpu=v8 -pipe -mno-fpu << 
 33 KBUILD_CFLAGS  += -Wa,-Av8                     << 
 34                                                    28 
 35 KBUILD_AFLAGS  += -m32 -Wa,-Av8                !!  29 cflags-$(CONFIG_M386)           += -march=i386
                                                   >>  30 cflags-$(CONFIG_M486)           += -march=i486
                                                   >>  31 cflags-$(CONFIG_M586)           += -march=i586
                                                   >>  32 cflags-$(CONFIG_M586TSC)        += -march=i586
                                                   >>  33 cflags-$(CONFIG_M586MMX)        += $(call check_gcc,-march=pentium-mmx,-march=i586)
                                                   >>  34 cflags-$(CONFIG_M686)           += -march=i686
                                                   >>  35 cflags-$(CONFIG_MPENTIUMII)     += $(call check_gcc,-march=pentium2,-march=i686)
                                                   >>  36 cflags-$(CONFIG_MPENTIUMIII)    += $(call check_gcc,-march=pentium3,-march=i686)
                                                   >>  37 cflags-$(CONFIG_MPENTIUM4)      += $(call check_gcc,-march=pentium4,-march=i686)
                                                   >>  38 cflags-$(CONFIG_MK6)            += $(call check_gcc,-march=k6,-march=i586)
                                                   >>  39 # Please note, that patches that add -march=athlon-xp and friends are pointless.
                                                   >>  40 # They make zero difference whatsosever to performance at this time.
                                                   >>  41 cflags-$(CONFIG_MK7)            += $(call check_gcc,-march=athlon,-march=i686 $(align)-functions=4)
                                                   >>  42 cflags-$(CONFIG_MK8)            += $(call check_gcc,-march=k8,$(call check_gcc,-march=athlon,-march=i686 $(align)-functions=4))
                                                   >>  43 cflags-$(CONFIG_MCRUSOE)        += -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
                                                   >>  44 cflags-$(CONFIG_MWINCHIPC6)     += $(call check_gcc,-march=winchip-c6,-march=i586)
                                                   >>  45 cflags-$(CONFIG_MWINCHIP2)      += $(call check_gcc,-march=winchip2,-march=i586)
                                                   >>  46 cflags-$(CONFIG_MWINCHIP3D)     += $(call check_gcc,-march=winchip2,-march=i586)
                                                   >>  47 cflags-$(CONFIG_MCYRIXIII)      += $(call check_gcc,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
                                                   >>  48 cflags-$(CONFIG_MVIAC3_2)       += $(call check_gcc,-march=c3-2,-march=i686)
 36                                                    49 
 37 else                                           !!  50 CFLAGS += $(cflags-y)
 38 #####                                          !!  51 
 39 # sparc64                                      !!  52 # Default subarch .c files
 40 #                                              !!  53 mcore-y  := mach-default
                                                   >>  54 
                                                   >>  55 # Voyager subarch support
                                                   >>  56 mflags-$(CONFIG_X86_VOYAGER)    := -Iinclude/asm-i386/mach-voyager
                                                   >>  57 mcore-$(CONFIG_X86_VOYAGER)     := mach-voyager
                                                   >>  58 
                                                   >>  59 # VISWS subarch support
                                                   >>  60 mflags-$(CONFIG_X86_VISWS)      := -Iinclude/asm-i386/mach-visws
                                                   >>  61 mcore-$(CONFIG_X86_VISWS)       := mach-visws
                                                   >>  62 
                                                   >>  63 # NUMAQ subarch support
                                                   >>  64 mflags-$(CONFIG_X86_NUMAQ)      := -Iinclude/asm-i386/mach-numaq
                                                   >>  65 mcore-$(CONFIG_X86_NUMAQ)       := mach-default
 41                                                    66 
 42 CHECKFLAGS    += -D__sparc__ -D__sparc_v9__ -D !!  67 # BIGSMP subarch support
 43 KBUILD_LDFLAGS := -m elf64_sparc               !!  68 mflags-$(CONFIG_X86_BIGSMP)     := -Iinclude/asm-i386/mach-bigsmp
 44 export BITS   := 64                            !!  69 mcore-$(CONFIG_X86_BIGSMP)      := mach-default
 45 UTS_MACHINE   := sparc64                       << 
 46                                                    70 
 47 KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ult !!  71 #Summit subarch support
 48 KBUILD_CFLAGS += -ffixed-g4 -ffixed-g5 -fcall- !!  72 mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-i386/mach-summit
 49 KBUILD_CFLAGS += -Wa,--undeclared-regs         !!  73 mcore-$(CONFIG_X86_SUMMIT)  := mach-default
 50 KBUILD_CFLAGS += $(call cc-option,-mtune=ultra << 
 51 KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--u << 
 52                                                    74 
 53 ifeq ($(CONFIG_MCOUNT),y)                      !!  75 # generic subarchitecture
 54   KBUILD_CFLAGS += -pg                         !!  76 mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-i386/mach-generic
 55 endif                                          !!  77 mcore-$(CONFIG_X86_GENERICARCH) := mach-default
                                                   >>  78 core-$(CONFIG_X86_GENERICARCH) += arch/i386/mach-generic/
 56                                                    79 
 57 endif                                          !!  80 # ES7000 subarch support
                                                   >>  81 mflags-$(CONFIG_X86_ES7000)     := -Iinclude/asm-i386/mach-es7000
                                                   >>  82 mcore-$(CONFIG_X86_ES7000)      := mach-es7000
 58                                                    83 
 59 libs-y                 += arch/sparc/prom/     !!  84 # default subarch .h files
 60 libs-y                 += arch/sparc/lib/      !!  85 mflags-y += -Iinclude/asm-i386/mach-default
 61                                                    86 
 62 drivers-$(CONFIG_PM)    += arch/sparc/power/   !!  87 head-y := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
 63 drivers-$(CONFIG_VIDEO) += arch/sparc/video/   << 
 64                                                    88 
 65 boot := arch/sparc/boot                        !!  89 libs-y                                  += arch/i386/lib/
                                                   >>  90 core-y                                  += arch/i386/kernel/ \
                                                   >>  91                                            arch/i386/mm/ \
                                                   >>  92                                            arch/i386/$(mcore-y)/
                                                   >>  93 drivers-$(CONFIG_MATH_EMULATION)        += arch/i386/math-emu/
                                                   >>  94 drivers-$(CONFIG_PCI)                   += arch/i386/pci/
                                                   >>  95 # must be linked after kernel/
                                                   >>  96 drivers-$(CONFIG_OPROFILE)              += arch/i386/oprofile/
                                                   >>  97 drivers-$(CONFIG_PM)                    += arch/i386/power/
 66                                                    98 
 67 # Default target                               !!  99 CFLAGS += $(mflags-y)
 68 all: zImage                                    !! 100 AFLAGS += $(mflags-y)
 69                                                   101 
 70 image zImage uImage tftpboot.img vmlinux.aout: !! 102 boot := arch/i386/boot
 71         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$ << 
 72                                                   103 
 73 install:                                       !! 104 .PHONY: zImage bzImage compressed zlilo bzlilo \
 74         $(call cmd,install)                    !! 105         zdisk bzdisk fdimage fdimage144 fdimage288 install
 75                                                   106 
 76 archheaders:                                   !! 107 all: bzImage
 77         $(Q)$(MAKE) $(build)=arch/sparc/kernel << 
 78                                                   108 
 79 vdso-install-$(CONFIG_SPARC64)  += arch/sparc/ !! 109 BOOTIMAGE=arch/i386/boot/bzImage
 80 vdso-install-$(CONFIG_COMPAT)   += arch/sparc/ !! 110 zImage zlilo zdisk: BOOTIMAGE=arch/i386/boot/zImage
 81                                                   111 
 82 # This is the image used for packaging         !! 112 zImage bzImage: vmlinux
 83 KBUILD_IMAGE := $(boot)/zImage                 !! 113         $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
                                                   >> 114 
                                                   >> 115 compressed: zImage
                                                   >> 116 
                                                   >> 117 zlilo bzlilo: vmlinux
                                                   >> 118         $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zlilo
                                                   >> 119 
                                                   >> 120 zdisk bzdisk: vmlinux
                                                   >> 121         $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zdisk
                                                   >> 122 
                                                   >> 123 install fdimage fdimage144 fdimage288: vmlinux
                                                   >> 124         $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@
                                                   >> 125 
                                                   >> 126 prepare: include/asm-$(ARCH)/asm_offsets.h
                                                   >> 127 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
                                                   >> 128 
                                                   >> 129 arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
                                                   >> 130                                    include/config/MARKER
                                                   >> 131 
                                                   >> 132 include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
                                                   >> 133         $(call filechk,gen-asm-offsets)
                                                   >> 134 
                                                   >> 135 archclean:
                                                   >> 136         $(Q)$(MAKE) $(clean)=arch/i386/boot
 84                                                   137 
 85 # Don't use tabs in echo arguments.            << 
 86 define archhelp                                   138 define archhelp
 87   echo  '* vmlinux      - standard SPARC kerne !! 139   echo  '* bzImage      - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
 88   echo  '  image        - kernel image ($(boot !! 140   echo  '  install      - Install kernel using'
 89   echo  '* zImage       - stripped/compressed  !! 141   echo  '                  (your) ~/bin/installkernel or'
 90   echo  '  uImage       - U-Boot SPARC32 Image !! 142   echo  '                  (distribution) /sbin/installkernel or'
 91   echo  '  vmlinux.aout - a.out kernel for SPA !! 143   echo  '                  install to $$(INSTALL_PATH) and run lilo'
 92   echo  '  tftpboot.img - image prepared for t !! 144   echo  '  bzdisk       - Create a boot floppy in /dev/fd0'
                                                   >> 145   echo  '  fdimage      - Create a boot floppy image'
 93 endef                                             146 endef
                                                   >> 147 
                                                   >> 148 CLEAN_FILES += arch/$(ARCH)/boot/fdimage arch/$(ARCH)/boot/mtools.conf
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php