(9)## make "config" the default target if there is no configuration file or# "depend" the target if there is no top-level dependency information.#ifeq (.config,$(wildcard .config))include .configifeq (.depend,$(wildcard .depend))include .dependdo-it-all: version vmlinuxelse(10)configuration = dependdo-it-all: dependendifelse(11)configuration = configdo-it-all: configendif

(12)## install-path specifies where to place the updated kernel and system map# images. uncomment if you want to place them anywhere other than root.##export install-paTH=/boot

(13)## install-mod-path specifies a prefix to MODLIB for module directory# relocations required by build roots. This is not defined in the# makefile but the arguement can be passed to make if needed.#modlib := $(instaLL-MOD-PATH)/lib/modules/$(KERNELRELEASE)export modlib

(14)## root-dev specifies the default root-device when making the image.# this can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case# the default of fLOPPY is used by 'build'.# this is i386 specific.#export root-dev = CURRENT

(15)## if you want to preset the SVGA mode, uncomment the next line and# set svga-mode to whatever number you want.# set it to -dsvga-MODE=NORMAL-VGA if you just want the EGA/VGA mode.# the number is the same as you would ordinarily press at bootup.# this is i386 specific.#export svga-mode = -DSVGA-MODE=NORMAL-VGA

(16)## if you want the RAM disk device, define this to be the size in blocks.# this is i386 specific.##export ramdisk = -DRAMDISK=512

(36)# if system.map exists, run depmod. This deliberately does not have a# dependency on system.map since that would run the dependency tree on# vmlinux. this depmod is only for convenience to give the initial# boot a modules.dep even before / is mounted read-write. However the# boot script depmod is the master version.ifeq "$(strip $(inSTALL-MOD-PATH))" ""depmod-opts :=elsedepmod-opts := -b $(INSTALL-MOD-PATH) -rendif.phony: -modinst-post-modinst-post: -modinst-post-pcmcia if [ -r system.map ]; then $(DEPMOD) -ae -F System.map $(depmod-opts) $(KERNELRELEASE); fi

(1) ## i386/makefile## this file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## this file is subject to the terms and conditions of the GNU General Public# license. see the file "COPYING" in the main directory of this archive# for more details.## copyright (c) 1994 by Linus Torvalds## 19990713 artur Skawina <skawina@geocities.com># added '-march' and '-mpreferred-stack-boundary' support#

## arch/i386/boot/makefile## this file is subject to the terms and conditions of the GNU General Public# license. see the file "COPYING" in the main directory of this archive# for more details.## copyright (c) 1994 by Linus Torvalds#

/* * this file builds a disk-image from three different files: * * - bootsect: exactly 512 bytes of 8086 machine code, loads the rest * - setup: 8086 machine code, sets up system parm * - system: 80386 code for actual system * * it does some checking that all files are of the correct type, and * just writes the result to stdout, removing headers and padding to * the right amount. It also writes some system data to stderr. */

(9)## make "config" the default target if there is no configuration file or# "depend" the target if there is no top-level dependency information.#ifeq (.config,$(wildcard .config))include .configifeq (.depend,$(wildcard .depend))include .dependdo-it-all: version vmlinuxelse(10)configuration = dependdo-it-all: dependendifelse(11)configuration = configdo-it-all: configendif

(12)## install-path specifies where to place the updated kernel and system map# images. uncomment if you want to place them anywhere other than root.##export install-paTH=/boot

(13)## install-mod-path specifies a prefix to MODLIB for module directory# relocations required by build roots. This is not defined in the# makefile but the arguement can be passed to make if needed.#modlib := $(instaLL-MOD-PATH)/lib/modules/$(KERNELRELEASE)export modlib

(14)## root-dev specifies the default root-device when making the image.# this can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case# the default of fLOPPY is used by 'build'.# this is i386 specific.#export root-dev = CURRENT

(15)## if you want to preset the SVGA mode, uncomment the next line and# set svga-mode to whatever number you want.# set it to -dsvga-MODE=NORMAL-VGA if you just want the EGA/VGA mode.# the number is the same as you would ordinarily press at bootup.# this is i386 specific.#export svga-mode = -DSVGA-MODE=NORMAL-VGA

(16)## if you want the RAM disk device, define this to be the size in blocks.# this is i386 specific.##export ramdisk = -DRAMDISK=512

(36)# if system.map exists, run depmod. This deliberately does not have a# dependency on system.map since that would run the dependency tree on# vmlinux. this depmod is only for convenience to give the initial# boot a modules.dep even before / is mounted read-write. However the# boot script depmod is the master version.ifeq "$(strip $(inSTALL-MOD-PATH))" ""depmod-opts :=elsedepmod-opts := -b $(INSTALL-MOD-PATH) -rendif.phony: -modinst-post-modinst-post: -modinst-post-pcmcia if [ -r system.map ]; then $(DEPMOD) -ae -F System.map $(depmod-opts) $(KERNELRELEASE); fi

(1) ## i386/makefile## this file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## this file is subject to the terms and conditions of the GNU General Public# license. see the file "COPYING" in the main directory of this archive# for more details.## copyright (c) 1994 by Linus Torvalds## 19990713 artur Skawina <skawina@geocities.com># added '-march' and '-mpreferred-stack-boundary' support#

## arch/i386/boot/makefile## this file is subject to the terms and conditions of the GNU General Public# license. see the file "COPYING" in the main directory of this archive# for more details.## copyright (c) 1994 by Linus Torvalds#

/* * this file builds a disk-image from three different files: * * - bootsect: exactly 512 bytes of 8086 machine code, loads the rest * - setup: 8086 machine code, sets up system parm * - system: 80386 code for actual system * * it does some checking that all files are of the correct type, and * just writes the result to stdout, removing headers and padding to * the right amount. It also writes some system data to stderr. */