-
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: 80127 b: refs/heads/master c: db569af h: refs/heads/master i: 80125: a7d7c3a 80123: bf45166 80119: d2b9067 80111: 30909e3 80095: 01a08d9 80063: 93052d8 79999: 44364b8 79871: 60968cb v: v3
- Loading branch information
Sam Ravnborg
authored and
Ingo Molnar
committed
Jan 30, 2008
1 parent
4bc8a8a
commit 9c0bf71
Showing
4 changed files
with
61 additions
and
83 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: 6b0c3d44d33e9429dbc568dc7fd3aee3774c5707 | ||
refs/heads/master: db569afa4e69ceaf89b3723a8f9cd2846ed09c76 |
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,5 +1,63 @@ | ||
# | ||
# linux/arch/x86/boot/compressed/Makefile | ||
# | ||
# create a compressed vmlinux image from the original vmlinux | ||
# | ||
|
||
targets := vmlinux vmlinux.bin vmlinux.bin.gz head_$(BITS).o misc_$(BITS).o piggy.o | ||
|
||
KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 | ||
KBUILD_CFLAGS += -fno-strict-aliasing -fPIC | ||
cflags-$(CONFIG_X86_64) := -mcmodel=small | ||
KBUILD_CFLAGS += $(cflags-y) | ||
KBUILD_CFLAGS += $(call cc-option,-ffreestanding) | ||
KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector) | ||
|
||
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | ||
|
||
LDFLAGS := -m elf_$(UTS_MACHINE) | ||
LDFLAGS_vmlinux := -T | ||
|
||
$(obj)/vmlinux: $(src)/vmlinux_$(BITS).lds $(obj)/head_$(BITS).o $(obj)/misc_$(BITS).o $(obj)/piggy.o FORCE | ||
$(call if_changed,ld) | ||
@: | ||
|
||
$(obj)/vmlinux.bin: vmlinux FORCE | ||
$(call if_changed,objcopy) | ||
|
||
|
||
ifeq ($(CONFIG_X86_32),y) | ||
include ${srctree}/arch/x86/boot/compressed/Makefile_32 | ||
targets += vmlinux.bin.all vmlinux.relocs | ||
hostprogs-y := relocs | ||
|
||
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 | ||
include ${srctree}/arch/x86/boot/compressed/Makefile_64 | ||
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
$(call if_changed,gzip) | ||
endif | ||
LDFLAGS_piggy.o := -r --format binary --oformat elf32-i386 -T | ||
|
||
else | ||
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
$(call if_changed,gzip) | ||
|
||
LDFLAGS_piggy.o := -r --format binary --oformat elf64-x86-64 -T | ||
endif | ||
|
||
|
||
$(obj)/piggy.o: $(obj)/vmlinux_$(BITS).scr $(obj)/vmlinux.bin.gz FORCE | ||
$(call if_changed,ld) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.