mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] - UML - LFS 64-bit cleanups
@ 2004-11-14 23:04 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2004-11-14 23:04 UTC (permalink / raw)
  To: akpm, Blaisorblade; +Cc: linux-kernel

Add ARCH_USER_CFLAGS so the arches can modify USER_CFLAGS.
We now take __ARCH_WANT_OLD_STAT and __ARCH_WANT_STAT64 from the base arch
so that the LFS-64 code gets included or excluded automatically.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: 2.6.9/arch/um/Makefile
===================================================================
--- 2.6.9.orig/arch/um/Makefile	2004-11-14 15:31:26.000000000 -0500
+++ 2.6.9/arch/um/Makefile	2004-11-14 15:31:35.000000000 -0500
@@ -129,6 +129,7 @@
 USER_CFLAGS := $(patsubst -Dsigprocmask=kernel_sigprocmask,,$(USER_CFLAGS))
 USER_CFLAGS := $(patsubst -D__KERNEL__,,$(USER_CFLAGS)) $(ARCH_INCLUDE) \
 	$(MODE_INCLUDE)
+USER_CFLAGS += $(ARCH_USER_CFLAGS)
 
 # To get a definition of F_SETSIG
 USER_CFLAGS += -D_GNU_SOURCE
Index: 2.6.9/arch/um/Makefile-i386
===================================================================
--- 2.6.9.orig/arch/um/Makefile-i386	2004-11-14 15:31:26.000000000 -0500
+++ 2.6.9/arch/um/Makefile-i386	2004-11-14 15:31:35.000000000 -0500
@@ -11,6 +11,7 @@
 endif
 
 CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH)
+ARCH_USER_CFLAGS :=
 
 ifneq ($(CONFIG_GPROF),y)
 ARCH_CFLAGS += -DUM_FASTCALL
Index: 2.6.9/arch/um/Makefile-x86_64
===================================================================
--- 2.6.9.orig/arch/um/Makefile-x86_64	2003-09-15 09:40:47.000000000 -0400
+++ 2.6.9/arch/um/Makefile-x86_64	2004-11-14 15:31:35.000000000 -0500
@@ -0,0 +1 @@
+ARCH_USER_CFLAGS := -D__x86_64__
Index: 2.6.9/include/asm-um/unistd.h
===================================================================
--- 2.6.9.orig/include/asm-um/unistd.h	2004-11-14 15:31:26.000000000 -0500
+++ 2.6.9/include/asm-um/unistd.h	2004-11-14 15:31:35.000000000 -0500
@@ -13,10 +13,9 @@
 extern int um_execve(const char *file, char *const argv[], char *const env[]);
 
 #ifdef __KERNEL__
+/* We get __ARCH_WANT_OLD_STAT and __ARCH_WANT_STAT64 from the base arch */
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR
-#define __ARCH_WANT_OLD_STAT
-#define __ARCH_WANT_STAT64
 #define __ARCH_WANT_SYS_ALARM
 #define __ARCH_WANT_SYS_GETHOSTNAME
 #define __ARCH_WANT_SYS_PAUSE


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-14 20:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-14 23:04 [PATCH] - UML - LFS 64-bit cleanups Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®