Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 978
b: refs/heads/master
c: 03f81dc
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed May 5, 2005
1 parent 542b2d6 commit 2e5653f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 776cfebb430c7b22c208b1b17add97f354d97cab
refs/heads/master: 03f81dc50caf6360aa5343264fed8868e22d9058
15 changes: 1 addition & 14 deletions trunk/arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,11 @@ endef

$(shell cd $(ARCH_DIR) && ln -sf Kconfig_$(SUBARCH) Kconfig_arch)

prepare: $(ARCH_SYMLINKS) $(SYS_HEADERS) $(GEN_HEADERS) \
$(ARCH_DIR)/kernel/vmlinux.lds.S
prepare: $(ARCH_SYMLINKS) $(SYS_HEADERS) $(GEN_HEADERS)

LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib

LD_SCRIPT-$(CONFIG_LD_SCRIPT_STATIC) := uml.lds.S
LD_SCRIPT-$(CONFIG_LD_SCRIPT_DYN) := dyn.lds.S

CPP_MODE-$(CONFIG_MODE_TT) := -DMODE_TT
CONFIG_KERNEL_STACK_ORDER ?= 2
STACK_SIZE := $(shell echo $$[ 4096 * (1 << $(CONFIG_KERNEL_STACK_ORDER)) ] )
Expand Down Expand Up @@ -145,15 +141,6 @@ archclean:
@find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
-o -name '*.gcov' \) -type f -print | xargs rm -f

#We need to re-preprocess this when the symlink dest changes.
#So we touch it when needed.
$(ARCH_DIR)/kernel/vmlinux.lds.S: FORCE
$(Q)if [ "$(shell readlink $@)" != "$(LD_SCRIPT-y)" ]; then \
echo ' SYMLINK $@'; \
ln -sf $(LD_SCRIPT-y) $@; \
touch $@; \
fi;

$(SYMLINK_HEADERS):
@echo ' SYMLINK $@'
$(Q)cd $(TOPDIR)/$(dir $@) ; \
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

extra-y := vmlinux.lds
clean-files := vmlinux.lds.S
clean-files :=

obj-y = checksum.o config.o exec_kern.o exitcode.o \
helper.o init_task.o irq.o irq_user.o ksyms.o main.o mem.o mem_user.o \
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/um/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <linux/config.h>
#ifdef CONFIG_LD_SCRIPT_STATIC
#include "uml.lds.S"
#else
#include "dyn.lds.S"
#endif

0 comments on commit 2e5653f

Please sign in to comment.