makefile_32

来自「linux内核源码」· 代码 · 共 51 行

TXT
51
字号
## linux/arch/x86/boot/compressed/Makefile## create a compressed vmlinux image from the original vmlinux#targets		:= vmlinux vmlinux.bin vmlinux.bin.gz head_32.o misc_32.o piggy.o \			vmlinux.bin.all vmlinux.relocsEXTRA_AFLAGS	:= -traditionalLDFLAGS_vmlinux := -Thostprogs-y	:= relocsKBUILD_CFLAGS  := -m32 -D__KERNEL__ $(LINUX_INCLUDE) -O2 \	   -fno-strict-aliasing -fPIC \	   $(call cc-option,-ffreestanding) \	   $(call cc-option,-fno-stack-protector)LDFLAGS := -m elf_i386$(obj)/vmlinux: $(src)/vmlinux_32.lds $(obj)/head_32.o $(obj)/misc_32.o $(obj)/piggy.o FORCE	$(call if_changed,ld)	@:$(obj)/vmlinux.bin: vmlinux FORCE	$(call if_changed,objcopy)quiet_cmd_relocs = RELOCS  $@      cmd_relocs = $(obj)/relocs $< > $@;$(obj)/relocs --abs-relocs $<$(obj)/vmlinux.relocs: vmlinux $(obj)/relocs FORCE	$(call if_changed,relocs)vmlinux.bin.all-y := $(obj)/vmlinux.binvmlinux.bin.all-$(CONFIG_RELOCATABLE) += $(obj)/vmlinux.relocsquiet_cmd_relocbin = BUILD   $@      cmd_relocbin = cat $(filter-out FORCE,$^) > $@$(obj)/vmlinux.bin.all: $(vmlinux.bin.all-y) FORCE	$(call if_changed,relocbin)ifdef CONFIG_RELOCATABLE$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin.all FORCE	$(call if_changed,gzip)else$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE	$(call if_changed,gzip)endifLDFLAGS_piggy.o := -r --format binary --oformat elf32-i386 -T$(obj)/piggy.o: $(src)/vmlinux_32.scr $(obj)/vmlinux.bin.gz FORCE	$(call if_changed,ld)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?