Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 977
b: refs/heads/master
c: 776cfeb
h: refs/heads/master
i:
  975: 04c4ac8
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed May 5, 2005
1 parent 62638ab commit 542b2d6
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 29 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: 0c28130b5c9e8f0b153436d3dae39482e5a70af1
refs/heads/master: 776cfebb430c7b22c208b1b17add97f354d97cab
2 changes: 1 addition & 1 deletion trunk/arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ define cmd_vmlinux__
$(CC) $(CFLAGS_vmlinux) -o $@ \
-Wl,-T,$(vmlinux-lds) $(vmlinux-init) \
-Wl,--start-group $(vmlinux-main) -Wl,--end-group \
-L/usr/lib -lutil \
-lutil \
$(filter-out $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) \
FORCE ,$^) ; rm -f linux
endef
Expand Down
4 changes: 2 additions & 2 deletions 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 config.tmp
clean-files := vmlinux.lds.S

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 Expand Up @@ -34,7 +34,7 @@ USER_OBJS := $(user-objs-y) config.o helper.o main.o process.o tempfile.o \

include arch/um/scripts/Makefile.rules

targets += config.c
targets := config.c config.tmp

# Be careful with the below Sed code - sed is pitfall-rich!
# We use sed to lower build requirements, for "embedded" builders for instance.
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/kernel/tt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

extra-y := unmap_fin.o
targets := unmap.o
clean-files := unmap_tmp.o

obj-y = exec_kern.o exec_user.o gdb.o ksyms.o mem.o mem_user.o process_kern.o \
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/um/scripts/Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
$(USER_OBJS): c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(notdir $@))

quiet_cmd_make_link = SYMLINK $@
cmd_make_link = rm -f $@; ln -sf $(srctree)/arch/$(SUBARCH)/$($(notdir $@)-dir)/$(notdir $@) $@
cmd_make_link = ln -sf $(srctree)/arch/$(SUBARCH)/$($(notdir $@)-dir)/$(notdir $@) $@

# this needs to be before the foreach, because targets does not accept
# complete paths like $(obj)/$(f). To make sure this works, use a := assignment,
# or we will get $(obj)/$(f) in the "targets" value.
# Also, this forces you to use the := syntax when assigning to targets.
# Otherwise the line below will cause an infinite loop (if you don't know why,
# just do it).

targets := $(targets) $(SYMLINKS)

SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$(f))

$(SYMLINKS): FORCE
$(call if_changed,make_link)
15 changes: 2 additions & 13 deletions trunk/arch/um/sys-i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,13 @@ obj-$(CONFIG_MODULES) += module.o

USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o

include arch/um/scripts/Makefile.rules

SYMLINKS = bitops.c semaphore.c highmem.c module.c

# this needs to be before the foreach, because clean-files does not accept
# complete paths like $(src)/$f.
clean-files := $(SYMLINKS)

targets += $(SYMLINKS)

SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f)

bitops.c-dir = lib
semaphore.c-dir = kernel
highmem.c-dir = mm
module.c-dir = kernel

$(SYMLINKS): FORCE
$(call if_changed,make_link)

subdir- := util

include arch/um/scripts/Makefile.rules
11 changes: 0 additions & 11 deletions trunk/arch/um/sys-x86_64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ include arch/um/scripts/Makefile.rules
SYMLINKS = bitops.c csum-copy.S csum-partial.c csum-wrappers.c memcpy.S \
semaphore.c thunk.S module.c

# this needs to be before the foreach, because clean-files does not accept
# complete paths like $(src)/$f.
clean-files := $(SYMLINKS)

targets += $(SYMLINKS)

SYMLINKS := $(foreach f,$(SYMLINKS),$(obj)/$f)

bitops.c-dir = lib
csum-copy.S-dir = lib
csum-partial.c-dir = lib
Expand All @@ -36,7 +28,4 @@ semaphore.c-dir = kernel
thunk.S-dir = lib
module.c-dir = kernel

$(SYMLINKS): FORCE
$(call if_changed,make_link)

CFLAGS_csum-partial.o := -Dcsum_partial=arch_csum_partial

0 comments on commit 542b2d6

Please sign in to comment.