diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-25 04:14:29 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:55:22 -0400 |
commit | ec82c32d45644998a28abad0a6a9ccdd721a054e (patch) | |
tree | 191b1828648cd3a6faf54438e9748e212211bc9b /arch/um/Makefile | |
parent | 887c57d480ee9dbfec53f2539359dd289f50acab (diff) |
x86, um: get rid of arch/um/os symlink
we can get DEV_NULL defined for arch/um/drivers/null.c in less
convoluted ways, TYVM...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 15 |
1 files changed, 2 insertions, 13 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! |
26 | ARCH_SYMLINKS = $(ARCH_DIR)/os $(ARCH_DIR)/include/shared/uml-config.h | 23 | ARCH_SYMLINKS = $(ARCH_DIR)/include/shared/uml-config.h |
27 | 24 | ||
28 | MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas | 25 | MODE_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 $@' | ||
148 | ifneq ($(KBUILD_SRC),) | ||
149 | $(Q)ln -fsn $(srctree)/$(ARCH_DIR)/os-$(OS) $@ | ||
150 | else | ||
151 | $(Q)ln -fsn os-$(OS) $@ | ||
152 | endif | ||
153 | |||
154 | # Generated files | 143 | # Generated files |
155 | define filechk_umlconfig | 144 | define 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 | ||
185 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH | 174 | export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH |