From: "Vadim Abrossimov" <vadim_abrossimov@yahoo.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: User-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [PATCH] uml: support a separate build tree; support USER_OBJS dependencies
Date: Mon, 14 Feb 2005 00:11:16 +0100 [thread overview]
Message-ID: <opsl5r02lclfdzum@localhost.localdomain> (raw)
In-Reply-To: <200502132151.j1DLoxnW003492@ccure.user-mode-linux.org>
On Sun, 13 Feb 2005 16:50:59 -0500, Jeff Dike <jdike@addtoit.com> wrote:
>
> Yup, that would be useful.
>
Quite simple.
BTW, after application of all patches from your tarboll I got an error
compiling kernel-offsets.c.
I solve it adding the following dependency:
diff -rup 2.6.11-rc3.orig/arch/um/Makefile-i386
2.6.11-rc3/arch/um/Makefile-i386
--- 2.6.11-rc3.orig/arch/um/Makefile-i386 2005-02-13 23:31:35.116344504
+0100
+++ 2.6.11-rc3/arch/um/Makefile-i386 2005-02-13 23:11:31.344345664 +0100
@@ -36,6 +36,7 @@ CLEAN_FILES += $(ARCH_DIR)/user-offsets.
$(ARCH_DIR)/kernel-offsets.s: $(SUBARCH_CORE)/kernel-offsets.c \
$(ARCH_SYMLINKS) \
+ $(ARCH_DIR)/include/user_constants.h \
$(SYS_DIR)/sc.h \
include/asm include/linux/version.h \
include/config/MARKER
This is the patch for USER_OBJS:
---
diff -rup 2.6.11-rc3.orig/arch/um/drivers/Makefile
2.6.11-rc3/arch/um/drivers/Makefile
--- 2.6.11-rc3.orig/arch/um/drivers/Makefile 2005-02-13 23:31:34.754399528
+0100
+++ 2.6.11-rc3/arch/um/drivers/Makefile 2005-02-13 23:21:05.547053584 +0100
@@ -54,5 +54,4 @@ USER_OBJS := $(filter %_user.o,$(obj-y)
null.o pty.o tty.o xterm.o
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
diff -rup 2.6.11-rc3.orig/arch/um/kernel/Makefile
2.6.11-rc3/arch/um/kernel/Makefile
--- 2.6.11-rc3.orig/arch/um/kernel/Makefile 2005-02-13 23:31:35.118344200
+0100
+++ 2.6.11-rc3/arch/um/kernel/Makefile 2005-02-13 23:21:43.820235176 +0100
@@ -29,8 +29,7 @@ USER_OBJS := $(foreach file,$(USER_OBJS)
CFLAGS_frame.o := -fno-omit-frame-pointer
-$(USER_OBJS) : %.o: %.c
- $(CC) $(USER_CFLAGS) $(CFLAGS_$(notdir $@)) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS)
$(CFLAGS_$(notdir $@))
targets += config.c
diff -rup 2.6.11-rc3.orig/arch/um/kernel/skas/Makefile
2.6.11-rc3/arch/um/kernel/skas/Makefile
--- 2.6.11-rc3.orig/arch/um/kernel/skas/Makefile 2005-02-13
23:30:36.017328920 +0100
+++ 2.6.11-rc3/arch/um/kernel/skas/Makefile 2005-02-13 23:22:10.380197448
+0100
@@ -9,7 +9,6 @@ obj-y := exec_kern.o mem.o mem_user.o mm
USER_OBJS = $(filter %_user.o,$(obj-y)) process.o time.o
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
subdir- := util
diff -rup 2.6.11-rc3.orig/arch/um/kernel/tt/Makefile
2.6.11-rc3/arch/um/kernel/tt/Makefile
--- 2.6.11-rc3.orig/arch/um/kernel/tt/Makefile 2005-02-13
23:31:35.120343896 +0100
+++ 2.6.11-rc3/arch/um/kernel/tt/Makefile 2005-02-13 23:23:21.856331424
+0100
@@ -18,11 +18,9 @@ USER_OBJS := $(foreach file,$(USER_OBJS)
UNMAP_CFLAGS := $(patsubst -pg -DPROFILING,,$(USER_CFLAGS))
UNMAP_CFLAGS := $(patsubst -fprofile-arcs
-ftest-coverage,,$(UNMAP_CFLAGS))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
-$(obj)/unmap.o: $(src)/unmap.c
- $(CC) $(UNMAP_CFLAGS) -c -o $@ $<
+$(obj)/unmap.o: c_flags = -Wp,-MD,$(depfile) $(UNMAP_CFLAGS)
$(obj)/unmap_fin.o : $(obj)/unmap.o
$(LD) -r -o $(obj)/unmap_tmp.o $< $(shell $(CC) -print-file-name=libc.a)
diff -rup 2.6.11-rc3.orig/arch/um/kernel/tt/ptproxy/Makefile
2.6.11-rc3/arch/um/kernel/tt/ptproxy/Makefile
--- 2.6.11-rc3.orig/arch/um/kernel/tt/ptproxy/Makefile 2005-02-03
02:55:40.000000000 +0100
+++ 2.6.11-rc3/arch/um/kernel/tt/ptproxy/Makefile 2005-02-13
23:24:03.203045768 +0100
@@ -7,5 +7,4 @@ obj-y = proxy.o ptrace.o sysdep.o wait.o
USER_OBJS := $(foreach file,$(obj-y),$(src)/$(file))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
diff -rup 2.6.11-rc3.orig/arch/um/os-Linux/drivers/Makefile
2.6.11-rc3/arch/um/os-Linux/drivers/Makefile
--- 2.6.11-rc3.orig/arch/um/os-Linux/drivers/Makefile 2005-02-03
02:55:50.000000000 +0100
+++ 2.6.11-rc3/arch/um/os-Linux/drivers/Makefile 2005-02-13
23:24:56.239982928 +0100
@@ -15,5 +15,4 @@ USER_SINGLE_OBJS = $(foreach f,$(patsubs
USER_OBJS = $(filter %_user.o,$(obj-y) $(USER_SINGLE_OBJS))
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
diff -rup 2.6.11-rc3.orig/arch/um/os-Linux/Makefile
2.6.11-rc3/arch/um/os-Linux/Makefile
--- 2.6.11-rc3.orig/arch/um/os-Linux/Makefile 2005-02-13
23:31:33.859535568 +0100
+++ 2.6.11-rc3/arch/um/os-Linux/Makefile 2005-02-13 23:24:35.699105616
+0100
@@ -10,7 +10,6 @@ USER_OBJS := aio.o elf_aux.o file.o mem.
time.o tt.o tty.o
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
CFLAGS_user_syms.o += -DSUBARCH_$(SUBARCH)
diff -rup 2.6.11-rc3.orig/arch/um/sys-i386/Makefile
2.6.11-rc3/arch/um/sys-i386/Makefile
--- 2.6.11-rc3.orig/arch/um/sys-i386/Makefile 2005-02-13
23:31:35.120343896 +0100
+++ 2.6.11-rc3/arch/um/sys-i386/Makefile 2005-02-13 23:26:06.141356304
+0100
@@ -26,8 +26,7 @@ define make_link
ln -sf $(srctree)/arch/i386/$($(notdir $1)-dir)/$(notdir $1) $1
endef
-$(USER_OBJS) : %.o: %.c
- $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
+$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(CFLAGS_$(notdir $@))
$(USER_CFLAGS)
$(SYMLINKS):
$(call make_link,$@)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-02-13 23:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-13 14:19 [PATCH] uml: support a separate build tree; support USER_OBJS dependencies Vadim Abrossimov
2005-02-13 18:12 ` Jeff Dike
2005-02-13 16:46 ` Al Viro
2005-02-13 18:58 ` [uml-devel] " Vadim Abrossimov
2005-02-13 21:50 ` Jeff Dike
2005-02-13 23:11 ` Vadim Abrossimov [this message]
2005-02-16 18:30 ` Blaisorblade
2005-02-19 10:55 ` Vadim Abrossimov
2005-02-24 16:31 ` Blaisorblade
2005-02-19 14:04 ` Vadim Abrossimov
2005-02-24 18:19 ` Blaisorblade
2005-02-14 1:13 ` Al Viro
2005-02-14 5:28 ` Vadim Abrossimov
2005-02-13 19:35 ` Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=opsl5r02lclfdzum@localhost.localdomain \
--to=vadim_abrossimov@yahoo.com \
--cc=User-mode-linux-devel@lists.sourceforge.net \
--cc=jdike@addtoit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.