Uml: little build fixes
PATCH 7/12 Uml: little build fixes
From: Al Viro <[email protected]>
Cc: "Vadim Abrossimov" <[email protected]>
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.
---
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(-)
arch/um/include/sysdep-x86_64/sigcontext.h renamed from arch/um/include/sysdep-x86_64/sigcontext.h~uml-cross-build-little-fixes +1 -1
@@ -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)
include/asm-um/archparam-i386.h renamed from include/asm-um/archparam-i386.h~uml-cross-build-little-fixes +1 -1
@@ -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)
arch/um/include/sysdep-i386/sigcontext.h renamed from arch/um/include/sysdep-i386/sigcontext.h~uml-cross-build-little-fixes +1 -1
@@ -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)
arch/um/sys-i386/Makefile renamed from arch/um/sys-i386/Makefile~uml-cross-build-little-fixes +1 -1
@@ -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
arch/um/kernel/tt/Makefile renamed from arch/um/kernel/tt/Makefile~uml-cross-build-little-fixes +2 -4
@@ -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
arch/um/Makefile-x86_64 renamed from arch/um/Makefile-x86_64~uml-cross-build-little-fixes +0 -4
@@ -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
fs/hppfs/Makefile renamed from fs/hppfs/Makefile~uml-cross-build-little-fixes +0 -10
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel