?? makefile
字號:
# BK Id: SCCS/s.Makefile 1.28 10/21/01 20:47:58 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 := trueifeq ($(CONFIG_SMP),y)TFTPIMAGE = /tftpboot/zImage.prep.smpelseTFTPIMAGE = /tftpboot/zImage.prependifZLINKFLAGS = -T $(TOPDIR)/arch/$(ARCH)/vmlinux.lds \ -Ttext 0x00800000obj-y := head.o misc.o ../common/misc-common.o \ ../common/string.o of1275.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/offsetall: zImagemisc.o: misc.c $(CC) $(CFLAGS) -DINITRD_OFFSET=0 -DINITRD_SIZE=0 -DZIMAGE_OFFSET=0 \ -DZIMAGE_SIZE=0 -c -o $@ $*.czvmlinux.initrd: $(obj-y) $(LIBS) ../images/vmlinux.gz## Recompile misc.oagain with more 'correct' bogus offsets# $(CC) $(CFLAGS) -DINITRD_OFFSET=0x00138466 -DINITRD_SIZE=0x0000111a \ -DZIMAGE_OFFSET=0x0001b000 -DZIMAGE_SIZE=0x0011d460 \ -c -o misc.o misc.c $(LD) $(ZLINKFLAGS) -o $@.tmp $(obj-y) $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=initrd=../images/ramdisk.image.gz \ --add-section=image=../images/vmlinux.gz \ $@.tmp $@ $(CC) $(CFLAGS) -DINITRD_OFFSET=`sh $(OFFSET) $(OBJDUMP) $@ initrd` \ -DINITRD_SIZE=`sh $(SIZE) $(OBJDUMP) $@ initrd` \ -DZIMAGE_OFFSET=`sh $(OFFSET) $(OBJDUMP) $@ image` \ -DZIMAGE_SIZE=`sh $(SIZE) $(OBJDUMP) $@ image` \ -c -o misc.o misc.c $(LD) $(ZLINKFLAGS) -o $@.tmp $(obj-y) $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=initrd=../images/ramdisk.image.gz \ --add-section=image=../images/vmlinux.gz \ $@.tmp $@ rm -f $@.tmpzImage: zvmlinux $(MKPREP) $(MKPREP) -pbp zvmlinux ../images/$@.prep rm -f zvmlinuxzImage.initrd: zvmlinux.initrd $(MKPREP) $(MKPREP) -pbp zvmlinux.initrd ../images/$@.prep rm -f zvmlinux.initrdzvmlinux: $(obj-y) $(LIBS) ../images/vmlinux.gz## Recompile misc.oagain with more 'correct' bogus offsets# $(CC) $(CFLAGS) -DINITRD_OFFSET=0 -DINITRD_SIZE=0 \ -DZIMAGE_OFFSET=0x0001b000 -DZIMAGE_SIZE=0x0011d460 \ -c -o misc.o misc.c## build the boot loader image and then compute the offset into it# for the kernel image# $(LD) $(ZLINKFLAGS) -o zvmlinux.tmp $(obj-y) $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=image=../images/vmlinux.gz zvmlinux.tmp $@## then with the offset rebuild the bootloader so we know where the kernel is# $(CC) $(CFLAGS) -DINITRD_OFFSET=0 -DINITRD_SIZE=0 \ -DZIMAGE_OFFSET=`sh $(OFFSET) $(OBJDUMP) zvmlinux image` \ -DZIMAGE_SIZE=`sh $(SIZE) $(OBJDUMP) zvmlinux image` \ -c -o misc.o misc.c $(LD) $(ZLINKFLAGS) -o zvmlinux.tmp $(obj-y) $(LIBS) $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section=image=../images/vmlinux.gz $@.tmp $@ rm -f $@.tmpfloppy: 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 + -