From: blaisorblade@yahoo.it
To: akpm@osdl.org
Cc: jdike@addtoit.com, linux-kernel@vger.kernel.org,
user-mode-linux-devel@lists.sourceforge.net,
blaisorblade@yahoo.it, viro@parcelfarce.linux.theplanet.co.uk,
vadim_abrossimov@yahoo.com
Subject: [uml-devel] [patch 07/12] Uml: little build fixes
Date: Tue, 22 Mar 2005 17:21:33 +0100 [thread overview]
Message-ID: <20050322162133.F35149766D@zion> (raw)
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Cc: "Vadim Abrossimov" <vadim_abrossimov@yahoo.com>
Easier parts from "cross-build" (or "UML-kbuild") patch from Al Viro:
*) abuses of host cc/ld/objcopy/paths are gone
*) some #include path fixes
*) other little abuses fixed
*) remove LIBC_DIR var, ask gcc where libc.a is placed.
This creates no problem so can be merged very likely. Note: only tested on
i386, give a run on x86-64.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
linux-2.6.11-paolo/arch/um/Makefile-x86_64 | 4 ----
linux-2.6.11-paolo/arch/um/include/sysdep-i386/sigcontext.h | 2 +-
linux-2.6.11-paolo/arch/um/include/sysdep-x86_64/sigcontext.h | 2 +-
linux-2.6.11-paolo/arch/um/kernel/tt/Makefile | 6 ++----
linux-2.6.11-paolo/arch/um/sys-i386/Makefile | 2 +-
linux-2.6.11-paolo/fs/hppfs/Makefile | 10 ----------
linux-2.6.11-paolo/include/asm-um/archparam-i386.h | 2 +-
7 files changed, 6 insertions(+), 22 deletions(-)
diff -puN arch/um/include/sysdep-x86_64/sigcontext.h~uml-cross-build-little-fixes arch/um/include/sysdep-x86_64/sigcontext.h
--- linux-2.6.11/arch/um/include/sysdep-x86_64/sigcontext.h~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/arch/um/include/sysdep-x86_64/sigcontext.h 2005-03-21 15:25:47.000000000 +0100
@@ -7,7 +7,7 @@
#ifndef __SYSDEP_X86_64_SIGCONTEXT_H
#define __SYSDEP_X86_64_SIGCONTEXT_H
-#include "sc.h"
+#include <sysdep/sc.h>
#define IP_RESTART_SYSCALL(ip) ((ip) -= 2)
diff -puN include/asm-um/archparam-i386.h~uml-cross-build-little-fixes include/asm-um/archparam-i386.h
--- linux-2.6.11/include/asm-um/archparam-i386.h~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/include/asm-um/archparam-i386.h 2005-03-21 15:25:47.000000000 +0100
@@ -8,7 +8,7 @@
/********* Bits for asm-um/elf.h ************/
-#include "user.h"
+#include <asm/user.h>
extern char * elf_aux_platform;
#define ELF_PLATFORM (elf_aux_platform)
diff -puN arch/um/include/sysdep-i386/sigcontext.h~uml-cross-build-little-fixes arch/um/include/sysdep-i386/sigcontext.h
--- linux-2.6.11/arch/um/include/sysdep-i386/sigcontext.h~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/arch/um/include/sysdep-i386/sigcontext.h 2005-03-21 15:25:47.000000000 +0100
@@ -6,7 +6,7 @@
#ifndef __SYS_SIGCONTEXT_I386_H
#define __SYS_SIGCONTEXT_I386_H
-#include "sc.h"
+#include <sysdep/sc.h>
#define IP_RESTART_SYSCALL(ip) ((ip) -= 2)
diff -puN arch/um/sys-i386/Makefile~uml-cross-build-little-fixes arch/um/sys-i386/Makefile
--- linux-2.6.11/arch/um/sys-i386/Makefile~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/arch/um/sys-i386/Makefile 2005-03-21 19:52:49.000000000 +0100
@@ -22,7 +22,7 @@ module.c-dir = kernel
define make_link
-rm -f $1
- ln -sf $(TOPDIR)/arch/i386/$($(notdir $1)-dir)/$(notdir $1) $1
+ ln -sf $(srctree)/arch/i386/$($(notdir $1)-dir)/$(notdir $1) $1
endef
$(USER_OBJS) : %.o: %.c
diff -puN arch/um/kernel/tt/Makefile~uml-cross-build-little-fixes arch/um/kernel/tt/Makefile
--- linux-2.6.11/arch/um/kernel/tt/Makefile~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/arch/um/kernel/tt/Makefile 2005-03-21 19:52:49.000000000 +0100
@@ -24,9 +24,7 @@ $(USER_OBJS) : %.o: %.c
$(obj)/unmap.o: $(src)/unmap.c
$(CC) $(UNMAP_CFLAGS) -c -o $@ $<
-LIBC_DIR ?= /usr/lib
-
$(obj)/unmap_fin.o : $(obj)/unmap.o
- ld -r -o $(obj)/unmap_tmp.o $< -lc -L$(LIBC_DIR)
- objcopy $(obj)/unmap_tmp.o $@ -G switcheroo
+ $(LD) -r -o $(obj)/unmap_tmp.o $< $(shell $(CC) -print-file-name=libc.a)
+ $(OBJCOPY) $(obj)/unmap_tmp.o $@ -G switcheroo
diff -puN arch/um/Makefile-x86_64~uml-cross-build-little-fixes arch/um/Makefile-x86_64
--- linux-2.6.11/arch/um/Makefile-x86_64~uml-cross-build-little-fixes 2005-03-21 15:25:47.000000000 +0100
+++ linux-2.6.11-paolo/arch/um/Makefile-x86_64 2005-03-21 15:25:47.000000000 +0100
@@ -30,7 +30,3 @@ $(SYS_UTIL_DIR)/mk_thread: scripts_basic
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
CLEAN_FILES += $(SYS_HEADERS)
-
-LIBC_DIR := /usr/lib64
-
-export LIBC_DIR
diff -puN fs/hppfs/Makefile~uml-cross-build-little-fixes fs/hppfs/Makefile
--- linux-2.6.11/fs/hppfs/Makefile~uml-cross-build-little-fixes 2005-03-21 19:52:56.000000000 +0100
+++ linux-2.6.11-paolo/fs/hppfs/Makefile 2005-03-21 19:53:17.000000000 +0100
@@ -7,13 +7,3 @@ hppfs-objs := hppfs_kern.o
obj-y =
obj-$(CONFIG_HPPFS) += hppfs.o
-
-clean:
-
-modules:
-
-fastdep:
-
-dep:
-
-archmrproper: clean
_
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&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
reply other threads:[~2005-03-22 17:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050322162133.F35149766D@zion \
--to=blaisorblade@yahoo.it \
--cc=akpm@osdl.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=vadim_abrossimov@yahoo.com \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox