📄 makefile
字号:
## Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>## Module name: Makefile## Description:# Makefile for the IBM "tree" evaluation board Linux kernel# boot loaders.#HOSTCFLAGS = -O -I$(TOPDIR)/includeGZIP = gzip -vf9RM = rm -fMKEVIMG = mkevimg -lMKIRIMG = mkirimgCFLAGS = -O -fno-builtin -I$(TOPDIR)/includeLD_ARGS = -e _start -T ld.script -Ttext 0x00200000 -BstaticOBJS = crt0.o main.o misc.o irSect.o ../coffboot/string.o ../coffboot/zlib.o LIBS =treeboot: $(OBJS) ld.script $(LD) -o $@ $(LD_ARGS) $(OBJS) $(LIBS)zImage: vmlinux.imgzImage.initrd: vmlinux.initrd.imgtreeboot.image: treeboot vmlinux.gz $(OBJCOPY) --add-section=image=vmlinux.gz treeboot $@treeboot.initrd: treeboot.image ramdisk.image.gz $(OBJCOPY) --add-section=initrd=ramdisk.image.gz treeboot.image $@vmlinux.img: treeboot.image $(OBJDUMP) --syms treeboot.image | grep irSectStart > irSectStart.txt $(MKIRIMG) treeboot.image treeboot.image.out irSectStart.txt $(MKEVIMG) treeboot.image.out $@ $(RM) treeboot.image treeboot.image.out irSectStart.txtvmlinux.initrd.img: treeboot.initrd $(OBJDUMP) --all-headers treeboot.initrd | grep irSectStart > irSectStart.txt $(MKIRIMG) treeboot.initrd treeboot.initrd.out irSectStart.txt $(MKEVIMG) treeboot.initrd.out $@ $(RM) treeboot.initrd treeboot.initrd.out irSectStart.txtvmlinux.gz: $(TOPDIR)/vmlinux $(OBJCOPY) -S -O binary $(TOPDIR)/vmlinux vmlinux $(GZIP) vmlinuxclean: rm -f treeboot treeboot.image treeboot.initrd irSectStart.txt vmlinux.* *.ofastdep:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -