From: Sam Ravnborg <sam@ravnborg.org>
To: Chris Wedgwood <cw@f00f.org>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, Jeff Dike <jdike@addtoit.com>
Subject: Re: [PATCH] 2.6.8.1-mm2 --- UML build fixes
Date: Thu, 19 Aug 2004 22:55:06 +0200 [thread overview]
Message-ID: <20040819205506.GA7440@mars.ravnborg.org> (raw)
In-Reply-To: <20040819122915.GA2085@taniwha.stupidest.org>
On Thu, Aug 19, 2004 at 05:29:15AM -0700, Chris Wedgwood wrote:
> On Thu, Aug 19, 2004 at 01:42:04AM -0700, Andrew Morton wrote:
>
> > +uml-remove-cow-driver.patch
> > +uml-updates-2.patch
> >
> > UML fixes
>
> This (merged from jdike earlier email) is required to get uml to
> build.
A few comments below.
> ===== Makefile 1.514 vs edited =====
> --- 1.514/Makefile 2004-08-19 04:32:25 -07:00
> +++ edited/Makefile 2004-08-19 04:38:27 -07:00
> @@ -523,6 +523,7 @@
> $(drivers-y) \
> $(net-y) \
> --end-group \
> + $(post-y) \
> $(filter .tmp_kallsyms%,$^) \
I recall Jeff introduced post-y to bypass the "check for
undefined symbols in vmlinux" stuff.
That's gone again.
> ===== arch/um/Makefile 1.27 vs edited =====
> --- 1.27/arch/um/Makefile 2004-08-19 04:33:04 -07:00
> +++ edited/arch/um/Makefile 2004-08-19 04:38:27 -07:00
> @@ -21,6 +21,10 @@
> $(ARCH_DIR)/drivers/ \
> $(ARCH_DIR)/sys-$(SUBARCH)/
>
> +post-y = --wrap malloc --wrap free --wrap calloc \
> + $(ARCH_DIR)/main.o -lutil \
> + --start-group -lgcc -lgcc_eh -lc --end-group
So this part can go as well.
> -#$(LD_SCRIPT-y) : $(LD_SCRIPT-y:.s=.S) scripts FORCE
> -# $(call if_changed_dep,as_s_S)
> +# More kbuild lossage - I can't get uml.lds to fire the %.lds : %.lds.S rule.
> +# It always ends up going into the .S assembly rule. So, an explicit rule
> +# here works around that. Then, it turns out that cmd_cpp_lds_S is undefined,
> +# which I don't understand since I would have thought that the entire Makefile
> +# had been read by the time it executes commands. So, defining that here works
> +# around that. Then, it turns out that cpp_flags isn't defined, which I don't
> +# understand for the same reason. So, I just included the expansion here,
> +# and after much grossness, you get a building and working UML.
> +quiet_cmd_cpp_lds_S = LDS $@
> + cmd_cpp_lds_S = $(CPP) -Wp,-MD,$(depfile) -Iinclude $(CPPFLAGS_vmlinux.lds) -P -C -Uum $(NOSTDINC_FLAGS) -D__ASSEMBLY__ -o $@ $<
> +
> +$(LD_SCRIPT-y) : $(LD_SCRIPT-y).S scripts FORCE
> + $(call if_changed_dep,cpp_lds_S)
What makes um so speciel that it cannot handle .lds files in
arch/um/kernel like all other architectures?
That would allow um to utilise the kbuild infrastructure,
and no need for duplication.
> ===== arch/um/kernel/Makefile 1.21 vs edited =====
> --- 1.21/arch/um/kernel/Makefile 2004-08-19 04:33:10 -07:00
> +++ edited/arch/um/kernel/Makefile 2004-08-19 04:38:27 -07:00
> @@ -3,7 +3,7 @@
> # Licensed under the GPL
> #
>
> -extra-y := vmlinux.lds
> +extra-y := vmlinux.lds ../main.o
Code located in arch/um/ is an error. No code should stay there.
> obj-y = checksum.o config.o exec_kern.o exitcode.o frame_kern.o frame.o \
> helper.o init_task.o irq.o irq_user.o ksyms.o mem.o mem_user.o \
> @@ -24,7 +24,7 @@
> user-objs-$(CONFIG_TTY_LOG) += tty_log.o
>
> USER_OBJS := $(filter %_user.o,$(obj-y)) $(user-objs-y) config.o helper.o \
> - process.o tempfile.o time.o tty_log.o umid.o user_util.o
> + process.o tempfile.o time.o tty_log.o umid.o user_util.o ../main.o
> USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
>
> CFLAGS_frame.o := $(patsubst -fomit-frame-pointer,,$(USER_CFLAGS))
It is (way down) on my todo list to go through all of um Makefiles.
In general they seems too complicated for the task solved - but it may be needed.
Sam
next prev parent reply other threads:[~2004-08-19 18:54 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-19 8:42 2.6.8.1-mm2 Andrew Morton
2004-08-19 9:10 ` 2.6.8.1-mm2 Ryan Cumming
2004-08-19 9:35 ` 2.6.8.1-mm2 Chris Wedgwood
2004-08-23 21:25 ` 2.6.8.1-mm2 Adrian Bunk
2004-08-25 18:32 ` 2.6.8.1-mm2 Bill Davidsen
2004-08-19 9:12 ` 2.6.8.1-mm2 Dipankar Sarma
2004-08-19 9:39 ` aliased directories, was 2.6.8.1-mm2 Christoph Hellwig
2004-08-19 9:43 ` 2.6.8.1-mm2 Christoph Hellwig
2004-08-19 11:36 ` 2.6.8.1-mm2 Gene Heskett
2004-08-19 12:29 ` [PATCH] 2.6.8.1-mm2 --- UML build fixes Chris Wedgwood
2004-08-19 20:55 ` Sam Ravnborg [this message]
2004-08-19 21:19 ` Jeff Dike
2004-08-19 22:32 ` Sam Ravnborg
2004-08-19 14:43 ` 2.6.8.1-mm2 Michael Geithe
2004-08-19 14:52 ` 2.6.8.1-mm2 John Cherry
2004-08-19 14:29 ` 2.6.8.1-mm2 Alan Cox
2004-08-20 7:06 ` 2.6.8.1-mm2 Hans Reiser
2004-08-20 7:16 ` 2.6.8.1-mm2 Andrew Morton
2004-08-20 7:37 ` 2.6.8.1-mm2 Hans Reiser
2004-08-20 13:53 ` 2.6.8.1-mm2 Alex Zarochentsev
2004-08-20 18:05 ` 2.6.8.1-mm2 Hans Reiser
[not found] ` <200408191245.46726.gene.heskett@verizon.net>
[not found] ` <20040819182752.GA3024@viasys.com>
2004-08-19 19:17 ` 2.6.8.1-mm2 Gene Heskett
2004-08-20 1:51 ` 2.6.8.1-mm2 Gene Heskett
2004-08-20 0:50 ` 2.6.8.1-mm2 Marcelo Tosatti
2004-08-20 6:08 ` 2.6.8.1-mm2 Andrew Morton
2004-08-20 9:11 ` 2.6.8.1-mm2 Antonino A. Daplas
2004-08-20 16:20 ` Kronos
2004-08-20 1:08 ` 2.6.8.1-mm2 Nathan Lynch
2004-08-20 1:16 ` 2.6.8.1-mm2 Andrew Morton
2004-08-20 7:40 ` 2.6.8.1-mm2 Rusty Russell
2004-08-20 8:14 ` 2.6.8.1-mm2 Ingo Molnar
2004-08-20 8:29 ` 2.6.8.1-mm2 Srivatsa Vaddagiri
2004-08-20 8:59 ` 2.6.8.1-mm2 Ingo Molnar
2004-08-20 9:03 ` 2.6.8.1-mm2 Ingo Molnar
2004-08-21 7:51 ` 2.6.8.1-mm2 Rusty Russell
2004-08-20 8:33 ` 2.6.8.1-mm2 Ingo Molnar
2004-08-20 21:35 ` 2.6.8.1-mm2 Andrew Morton
2004-08-20 22:12 ` 2.6.8.1-mm2 Nathan Lynch
2004-08-20 6:17 ` 2.6.8.1-mm2 Srivatsa Vaddagiri
2004-08-20 6:59 ` 2.6.8.1-mm2 Paul Mackerras
2004-08-20 8:21 ` 2.6.8.1-mm2 ismail dönmez
2004-08-20 22:43 ` 2.6.8.1-mm2 Rik van Riel
2004-08-20 23:05 ` 2.6.8.1-mm2 - reiser4 Rik van Riel
2004-08-20 23:15 ` William Lee Irwin III
2004-08-20 23:20 ` Anton Blanchard
2004-08-20 23:34 ` Andrew Morton
2004-08-21 0:12 ` Rik van Riel
2004-08-21 6:24 ` Hans Reiser
2004-08-21 0:15 ` Rik van Riel
2004-08-21 8:57 ` Hans Reiser
2004-08-21 7:30 ` 2.6.8.1-mm2 Hans Reiser
2004-08-22 21:32 ` 2.6.8.1-mm2 Alex Zarochentsev
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=20040819205506.GA7440@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=cw@f00f.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
/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.