📄 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) 1995, 1998, 2001 by Ralf Baechle# Copyright (C) 2004 Maciej W. Rozycki#USE_STANDARD_AS_RULE := true## Some DECstations need all possible sections of an ECOFF executable#ifdef CONFIG_DECSTATION E2EFLAGS = -aelse E2EFLAGS =endif## Drop some uninteresting sections in the kernel.# This is only relevant for ELF kernels but doesn't hurt a.out#drop-sections = .reginfo .mdebug .comment .note .pdr .options .MIPS.optionsstrip-flags = $(addprefix --remove-section=,$(drop-sections))VMLINUX = $(TOPDIR)/vmlinuxall:boot: vmlinux.ecoff vmlinux.srec addinitrdvmlinux.ecoff: $(CONFIGURE) elf2ecoff $(VMLINUX) ./elf2ecoff $(VMLINUX) vmlinux.ecoff $(E2EFLAGS)elf2ecoff: elf2ecoff.c $(HOSTCC) -o $@ $^vmlinux.srec: $(CONFIGURE) $(VMLINUX) $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) vmlinux.srecaddinitrd: addinitrd.c $(HOSTCC) -o $@ $^# Don't build dependencies, this may die if $(CC) isn't gccdep:clean: rm -f vmlinux.ecoff vmlinux.srecmrproper: rm -f vmlinux.ecoff vmlinux.srec addinitrd elf2ecoffdummy:include $(TOPDIR)/Rules.make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -