-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 65431 b: refs/heads/master c: 9b88467 h: refs/heads/master i: 65429: 31a5242 65427: 8bc7158 65423: eaa4912 v: v3
- Loading branch information
Thomas Gleixner
committed
Oct 11, 2007
1 parent
df3ed07
commit ef32507
Showing
3 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 16ae1544b763b33673f82d667b0f7699dd1274b9 | ||
refs/heads/master: 9b88467687550507cca30b49217518e8ba8cda4e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,5 @@ | ||
# | ||
# linux/arch/i386/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.relocs | ||
EXTRA_AFLAGS := -traditional | ||
|
||
LDFLAGS_vmlinux := -T | ||
hostprogs-y := relocs | ||
|
||
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.bin | ||
vmlinux.bin.all-$(CONFIG_RELOCATABLE) += $(obj)/vmlinux.relocs | ||
quiet_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) | ||
ifeq ($(CONFIG_X86_32),y) | ||
include ${srctree}/arch/i386/boot/compressed/Makefile_32 | ||
else | ||
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
$(call if_changed,gzip) | ||
include ${srctree}/arch/x86_64/boot/compressed/Makefile_64 | ||
endif | ||
|
||
LDFLAGS_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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# linux/arch/i386/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.relocs | ||
EXTRA_AFLAGS := -traditional | ||
|
||
LDFLAGS_vmlinux := -T | ||
hostprogs-y := relocs | ||
|
||
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.bin | ||
vmlinux.bin.all-$(CONFIG_RELOCATABLE) += $(obj)/vmlinux.relocs | ||
quiet_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) | ||
endif | ||
|
||
LDFLAGS_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) |