📄 makefile
字号:
# BK Id: SCCS/s.Makefile 1.30 01/26/02 12:27:41 trini## arch/ppc/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.## Tom Rini January 2001## Originally:# arch/ppc/boot/Makefile# Copyright (C) 1994 by Linus Torvalds# Adapted for PowerPC by Gary Thomas# modified by Cort (cort@cs.nmt.edu)#USE_STANDARD_AS_RULE := trueTFTPIMAGE = /tftpboot/zImage.prepifeq ($(CONFIG_SMP),y)TFTPIMAGE = $(TFTPBOOT).smpendifLD_ARGS = -T ../ld.script -Ttext 0x00800000 -Bstaticobj-y := head.o ../simple/legacy.o misc.o of1275.o \ ../common/util.o ../common/string.o \ ../common/misc-common.oOBJCOPY_ARGS = -O elf32-powerpcLIBS = ../lib/zlib.aobj-$(CONFIG_SERIAL_CONSOLE) += ../common/ns16550.oobj-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o# ToolsMKPREP := ../utils/mkprepSIZE := ../utils/sizeOFFSET := ../utils/offset# Extra include search dirsCFLAGS_kbd.o += -I$(TOPDIR)/drivers/charAFLAGS_head.o += -I$(TOPDIR)/arch/$(ARCH)/kernelAFLAGS_../common/util.o += -I$(TOPDIR)/arch/$(ARCH)/kernelAFLAGS_../common/relocate.o += -I$(TOPDIR)/arch/$(ARCH)/kernelAFLAGS_../simple/legacy.o += -I$(TOPDIR)/arch/$(ARCH)/kernelall: zImagezImage: $(obj-y) $(LIBS) ../ld.script ../images/vmlinux.gz ../common/dummy.o \ $(MKPREP) $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=.image=../images/vmlinux.gz \ --set-section-flags=.image=contents,alloc,load,readonly,data \ ../common/dummy.o image.o $(LD) $(LD_ARGS) -o $@ $(obj-y) image.o $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ -R .comment -R .stab -R .stabstr $(MKPREP) -pbp $@ ../images/$@.prep rm -f $@zImage.initrd: $(obj-y) $(LIBS) ../ld.script ../images/vmlinux.gz $(MKPREP) \ ../common/dummy.o $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=.ramdisk=../images/ramdisk.image.gz \ --set-section-flags=.ramdisk=contents,alloc,load,readonly,data \ --add-section=.image=../images/vmlinux.gz \ --set-section-flags=.image=contents,alloc,load,readonly,data \ ../common/dummy.o image.o $(LD) $(LD_ARGS) -o $@ $(obj-y) image.o $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) $@ $@ -R .comment -R .stab -R .stabstr $(MKPREP) -pbp $@ ../images/$@.prep rm -f $@floppy: zImage dd if=../images/zImage.prep of=/dev/fd0H1440 bs=64bznetboot : zImage cp ../images/zImage.prep $(TFTPIMAGE)znetboot.initrd : zImage.initrd cp ../images/zImage.initrd.prep $(TFTPIMAGE)include $(TOPDIR)/Rules.make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -