-
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: 72310 b: refs/heads/master c: af76bba h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Oct 23, 2007
1 parent
738e306
commit 01116f6
Showing
220 changed files
with
7,462 additions
and
5,641 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: 06063e26bc3ab62aa7aca874c6ce9e7638673838 | ||
refs/heads/master: af76bbabbdf5cebea6a3863446f9f74b469c4bdc |
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
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,28 +1,8 @@ | ||
# This creates the demonstration utility "lguest" which runs a Linux guest. | ||
|
||
# For those people that have a separate object dir, look there for .config | ||
KBUILD_OUTPUT := ../.. | ||
ifdef O | ||
ifeq ("$(origin O)", "command line") | ||
KBUILD_OUTPUT := $(O) | ||
endif | ||
endif | ||
# We rely on CONFIG_PAGE_OFFSET to know where to put lguest binary. | ||
include $(KBUILD_OUTPUT)/.config | ||
LGUEST_GUEST_TOP := ($(CONFIG_PAGE_OFFSET) - 0x08000000) | ||
|
||
CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -Wl,-T,lguest.lds | ||
CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include | ||
LDLIBS:=-lz | ||
# Removing this works for some versions of ld.so (eg. Ubuntu Feisty) and | ||
# not others (eg. FC7). | ||
LDFLAGS+=-static | ||
all: lguest.lds lguest | ||
|
||
# The linker script on x86 is so complex the only way of creating one | ||
# which will link our binary in the right place is to mangle the | ||
# default one. | ||
lguest.lds: | ||
$(LD) --verbose | awk '/^==========/ { PRINT=1; next; } /SIZEOF_HEADERS/ { gsub(/0x[0-9A-F]*/, "$(LGUEST_GUEST_TOP)") } { if (PRINT) print $$0; }' > $@ | ||
all: lguest | ||
|
||
clean: | ||
rm -f lguest.lds lguest | ||
rm -f lguest |
Oops, something went wrong.