aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/Makefile15
-rw-r--r--arch/um/Makefile-os-Linux1
-rw-r--r--arch/um/drivers/Makefile1
-rw-r--r--arch/um/include/shared/os.h1
-rw-r--r--arch/um/os-Linux/include/file.h11
5 files changed, 4 insertions, 25 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 2606bdaefcb6..10894405ca75 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -18,12 +18,9 @@ core-y += $(ARCH_DIR)/kernel/ \
18 $(ARCH_DIR)/drivers/ \ 18 $(ARCH_DIR)/drivers/ \
19 $(ARCH_DIR)/os-$(OS)/ 19 $(ARCH_DIR)/os-$(OS)/
20 20
21# XXX: The "os" symlink is only used by arch/um/include/os.h, which includes
22# ../os/include/file.h
23#
24# These are cleaned up during mrproper. Please DO NOT fix it again, this is 21# These are cleaned up during mrproper. Please DO NOT fix it again, this is
25# the Correct Thing(tm) to do! 22# the Correct Thing(tm) to do!
26ARCH_SYMLINKS = $(ARCH_DIR)/os $(ARCH_DIR)/include/shared/uml-config.h 23ARCH_SYMLINKS = $(ARCH_DIR)/include/shared/uml-config.h
27 24
28MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas 25MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
29 26
@@ -143,14 +140,6 @@ $(objtree)/$(ARCH_DIR)/include/shared:
143 @echo ' MKDIR $@' 140 @echo ' MKDIR $@'
144 $(Q)mkdir -p $@ 141 $(Q)mkdir -p $@
145 142
146$(ARCH_DIR)/os:
147 @echo ' SYMLINK $@'
148ifneq ($(KBUILD_SRC),)
149 $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/os-$(OS) $@
150else
151 $(Q)ln -fsn os-$(OS) $@
152endif
153
154# Generated files 143# Generated files
155define filechk_umlconfig 144define filechk_umlconfig
156 sed 's/ CONFIG/ UML_CONFIG/' 145 sed 's/ CONFIG/ UML_CONFIG/'
@@ -182,4 +171,4 @@ $(ARCH_DIR)/include/shared/kern_constants.h: $(objtree)/$(ARCH_DIR)/include/shar
182 @echo ' SYMLINK $@' 171 @echo ' SYMLINK $@'
183 $(Q)ln -sf ../../../../include/asm/asm-offsets.h $@ 172 $(Q)ln -sf ../../../../include/asm/asm-offsets.h $@
184 173
185export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH 174export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH
diff --git a/arch/um/Makefile-os-Linux b/arch/um/Makefile-os-Linux
index 52859487c95d..2c8a598ec14b 100644
--- a/arch/um/Makefile-os-Linux
+++ b/arch/um/Makefile-os-Linux
@@ -6,3 +6,4 @@
6# To get a definition of F_SETSIG 6# To get a definition of F_SETSIG
7USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 7USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
8KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE 8KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE
9DEV_NULL_PATH = \"/dev/null\"
diff --git a/arch/um/drivers/Makefile b/arch/um/drivers/Makefile
index d283e7b022a0..1d9b6ae967b0 100644
--- a/arch/um/drivers/Makefile
+++ b/arch/um/drivers/Makefile
@@ -62,5 +62,6 @@ obj-$(CONFIG_UML_RANDOM) += random.o
62 62
63# pcap_user.o must be added explicitly. 63# pcap_user.o must be added explicitly.
64USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o 64USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
65CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH)
65 66
66include arch/um/scripts/Makefile.rules 67include arch/um/scripts/Makefile.rules
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h
index 2aaffa04fc8f..cd40fddcf99d 100644
--- a/arch/um/include/shared/os.h
+++ b/arch/um/include/shared/os.h
@@ -11,7 +11,6 @@
11#include "longjmp.h" 11#include "longjmp.h"
12#include "mm_id.h" 12#include "mm_id.h"
13#include "sysdep/tls.h" 13#include "sysdep/tls.h"
14#include "../../os/include/file.h"
15 14
16#define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR)) 15#define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
17 16
diff --git a/arch/um/os-Linux/include/file.h b/arch/um/os-Linux/include/file.h
deleted file mode 100644
index fe71be24bd59..000000000000
--- a/arch/um/os-Linux/include/file.h
+++ /dev/null
@@ -1,11 +0,0 @@
1/*
2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __OS_FILE_H__
7#define __OS_FILE_H__
8
9#define DEV_NULL "/dev/null"
10
11#endif