- UML - LFS 64-bit cleanups
PATCH 1/1 - UML - LFS 64-bit cleanups
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 <[email protected]>
arch/um/Makefile +1 -0
@@ -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
arch/um/Makefile-i386 +1 -0
@@ -11,6 +11,7 @@ endif CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH) +ARCH_USER_CFLAGS := ifneq ($(CONFIG_GPROF),y) ARCH_CFLAGS += -DUM_FASTCALL
arch/um/Makefile-x86_64 +1 -0
@@ -0,0 +1 @@ +ARCH_USER_CFLAGS := -D__x86_64__
include/asm-um/unistd.h +1 -2
@@ -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