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

TOMOYO Linux Cross Reference
Linux/arch/nios2/boot/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/nios2/boot/Makefile (Version linux-6.12-rc7) and /arch/i386/boot/Makefile (Version linux-2.6.0)


  1 #                                                   1 #
  2 # arch/nios2/boot/Makefile                     !!   2 # arch/i386/boot/Makefile
  3 #                                                   3 #
  4 # This file is subject to the terms and condit      4 # This file is subject to the terms and conditions of the GNU General Public
  5 # License.  See the file "COPYING" in the main      5 # License.  See the file "COPYING" in the main directory of this archive
  6 # for more details.                                 6 # for more details.
  7 #                                                   7 #
                                                   >>   8 # Copyright (C) 1994 by Linus Torvalds
                                                   >>   9 #
  8                                                    10 
  9 UIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk  !!  11 # ROOT_DEV specifies the default root-device when making the image.
 10 UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk !!  12 # This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case
 11 UIMAGE_COMPRESSION = gzip                      !!  13 # the default of FLOPPY is used by 'build'.
 12                                                    14 
 13 OBJCOPYFLAGS_vmlinux.bin := -O binary          !!  15 ROOT_DEV := CURRENT
 14                                                    16 
 15 targets += vmlinux.bin vmlinux.gz vmImage      !!  17 # If you want to preset the SVGA mode, uncomment the next line and
                                                   >>  18 # set SVGA_MODE to whatever number you want.
                                                   >>  19 # Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode.
                                                   >>  20 # The number is the same as you would ordinarily press at bootup.
 16                                                    21 
 17 $(obj)/vmlinux.bin: vmlinux FORCE              !!  22 SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
 18         $(call if_changed,objcopy)             !!  23 
                                                   >>  24 # If you want the RAM disk device, define this to be the size in blocks.
                                                   >>  25 
                                                   >>  26 #RAMDISK := -DRAMDISK=512
                                                   >>  27 
                                                   >>  28 targets         := vmlinux.bin bootsect bootsect.o setup setup.o \
                                                   >>  29                    zImage bzImage
                                                   >>  30 subdir-         := compressed
                                                   >>  31 
                                                   >>  32 host-progs      := tools/build
 19                                                    33 
 20 $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE    !!  34 # ---------------------------------------------------------------------------
 21         $(call if_changed,gzip)                << 
 22                                                    35 
 23 $(obj)/vmImage: $(obj)/vmlinux.gz FORCE        !!  36 $(obj)/zImage:  IMAGE_OFFSET := 0x1000
 24         $(call if_changed,uimage)              !!  37 $(obj)/zImage:  EXTRA_AFLAGS := -traditional $(SVGA_MODE) $(RAMDISK)
 25         @$(kecho) 'Kernel: $@ is ready'        !!  38 $(obj)/bzImage: IMAGE_OFFSET := 0x100000
                                                   >>  39 $(obj)/bzImage: EXTRA_AFLAGS := -traditional $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__
                                                   >>  40 $(obj)/bzImage: BUILDFLAGS   := -b
 26                                                    41 
 27 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE !!  42 quiet_cmd_image = BUILD   $@
                                                   >>  43 cmd_image = $(obj)/tools/build $(BUILDFLAGS) $(obj)/bootsect $(obj)/setup \
                                                   >>  44             $(obj)/vmlinux.bin $(ROOT_DEV) > $@
                                                   >>  45 
                                                   >>  46 $(obj)/zImage $(obj)/bzImage: $(obj)/bootsect $(obj)/setup \
                                                   >>  47                               $(obj)/vmlinux.bin $(obj)/tools/build FORCE
                                                   >>  48         $(call if_changed,image)
                                                   >>  49         @echo 'Kernel: $@ is ready'
                                                   >>  50 
                                                   >>  51 $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE
 28         $(call if_changed,objcopy)                 52         $(call if_changed,objcopy)
 29         @$(kecho) 'Kernel: $@ is ready'        << 
 30                                                    53 
 31 $(obj)/compressed/vmlinux: $(obj)/vmlinux.gz F !!  54 LDFLAGS_bootsect := -Ttext 0x0 -s --oformat binary
 32         $(Q)$(MAKE) $(build)=$(obj)/compressed !!  55 LDFLAGS_setup    := -Ttext 0x0 -s --oformat binary -e begtext
                                                   >>  56 
                                                   >>  57 $(obj)/setup $(obj)/bootsect: %: %.o FORCE
                                                   >>  58         $(call if_changed,ld)
                                                   >>  59 
                                                   >>  60 $(obj)/compressed/vmlinux: FORCE
                                                   >>  61         $(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
                                                   >>  62 
                                                   >>  63 # Set this if you want to pass append arguments to the zdisk/fdimage kernel
                                                   >>  64 FDARGS = 
                                                   >>  65 
                                                   >>  66 $(obj)/mtools.conf: $(src)/mtools.conf.in
                                                   >>  67         sed -e 's|@OBJ@|$(obj)|g' < $< > $@
                                                   >>  68 
                                                   >>  69 # This requires write access to /dev/fd0
                                                   >>  70 zdisk: $(BOOTIMAGE) $(obj)/mtools.conf
                                                   >>  71         MTOOLSRC=$(obj)/mtools.conf mformat a:                  ; sync
                                                   >>  72         syslinux /dev/fd0                                       ; sync
                                                   >>  73         echo 'default linux $(FDARGS)' | \
                                                   >>  74                 MTOOLSRC=$(src)/mtools.conf mcopy - a:syslinux.cfg
                                                   >>  75         MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) a:linux  ; sync
                                                   >>  76 
                                                   >>  77 # These require being root or having syslinux 2.02 or higher installed
                                                   >>  78 fdimage fdimage144: $(BOOTIMAGE) $(obj)/mtools.conf
                                                   >>  79         dd if=/dev/zero of=$(obj)/fdimage bs=1024 count=1440
                                                   >>  80         MTOOLSRC=$(obj)/mtools.conf mformat v:                  ; sync
                                                   >>  81         syslinux $(obj)/fdimage                                 ; sync
                                                   >>  82         echo 'default linux $(FDARGS)' | \
                                                   >>  83                 MTOOLSRC=$(obj)/mtools.conf mcopy - v:syslinux.cfg
                                                   >>  84         MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) v:linux  ; sync
                                                   >>  85 
                                                   >>  86 fdimage288: $(BOOTIMAGE) $(obj)/mtools.conf
                                                   >>  87         dd if=/dev/zero of=$(obj)/fdimage bs=1024 count=2880
                                                   >>  88         MTOOLSRC=$(obj)/mtools.conf mformat w:                  ; sync
                                                   >>  89         syslinux $(obj)/fdimage                                 ; sync
                                                   >>  90         echo 'default linux $(FDARGS)' | \
                                                   >>  91                 MTOOLSRC=$(obj)/mtools.conf mcopy - w:syslinux.cfg
                                                   >>  92         MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) w:linux  ; sync
                                                   >>  93 
                                                   >>  94 zlilo: $(BOOTIMAGE)
                                                   >>  95         if [ -f $(INSTALL_PATH)/vmlinuz ]; then mv $(INSTALL_PATH)/vmlinuz $(INSTALL_PATH)/vmlinuz.old; fi
                                                   >>  96         if [ -f $(INSTALL_PATH)/System.map ]; then mv $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
                                                   >>  97         cat $(BOOTIMAGE) > $(INSTALL_PATH)/vmlinuz
                                                   >>  98         cp System.map $(INSTALL_PATH)/
                                                   >>  99         if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
                                                   >> 100 
                                                   >> 101 install: $(BOOTIMAGE)
                                                   >> 102         sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
                                                      

~ [ 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