Skip to content

Commit d32df10

Browse files
masahir0yrichardweinberger
authored andcommitted
um: Hard-code the result of 'uname -s'
We rely on 'uname -s' returning 'Linux' because there are os-Linux/ directories, but no other os-*/. Supporting a non-Linux host is unlikely to happen. Let's hard-code 'Linux'. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent ff3f786 commit d32df10

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

arch/um/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ else
1818
endif
1919

2020
ARCH_DIR := arch/um
21-
OS := $(shell uname -s)
2221
# We require bash because the vmlinux link and loader script cpp use bash
2322
# features.
2423
SHELL := /bin/bash
2524

2625
core-y += $(ARCH_DIR)/kernel/ \
2726
$(ARCH_DIR)/drivers/ \
28-
$(ARCH_DIR)/os-$(OS)/
27+
$(ARCH_DIR)/os-Linux/
2928

3029
MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
3130

@@ -78,7 +77,7 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \
7877
-idirafter $(objtree)/include -D__KERNEL__ -D__UM_HOST__
7978

8079
#This will adjust *FLAGS accordingly to the platform.
81-
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
80+
include $(srctree)/$(ARCH_DIR)/Makefile-os-Linux
8281

8382
KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \
8483
-I$(srctree)/$(HOST_DIR)/include/uapi \
@@ -155,4 +154,4 @@ archclean:
155154
@find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
156155
-o -name '*.gcov' \) -type f -print | xargs rm -f
157156

158-
export HEADER_ARCH SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH
157+
export HEADER_ARCH SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING DEV_NULL_PATH

arch/x86/um/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
1313
ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
1414
stub_$(BITS).o stub_segv.o \
1515
sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
16-
mem_$(BITS).o subarch.o os-$(OS)/
16+
mem_$(BITS).o subarch.o os-Linux/
1717

1818
ifeq ($(CONFIG_X86_32),y)
1919

0 commit comments

Comments
 (0)