diff options
author | Richard Weinberger <richard@nod.at> | 2015-05-31 19:50:57 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-05-31 22:05:32 +0200 |
commit | 298e20ba8c197e8d429a6c8671550c41c7919033 (patch) | |
tree | 58010c4512a36344c15defaeb6998d9344714810 /arch/um/Makefile | |
parent | d2313084e2c3488e254796617fcda45d69731b21 (diff) | |
download | linux-298e20ba8c197e8d429a6c8671550c41c7919033.tar.gz linux-298e20ba8c197e8d429a6c8671550c41c7919033.tar.bz2 linux-298e20ba8c197e8d429a6c8671550c41c7919033.zip |
um: Stop abusing __KERNEL__
Currently UML is abusing __KERNEL__ to distinguish between
kernel and host code (os-Linux). It is better to use a custom
define such that existing users of __KERNEL__ don't get confused.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 17d4460b1af3..098ab3333e7c 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -68,9 +68,10 @@ KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ \ KBUILD_AFLAGS += $(ARCH_INCLUDE) -USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ - $(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ - $(filter -I%,$(CFLAGS)) -D_FILE_OFFSET_BITS=64 -idirafter include +USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \ + $(ARCH_INCLUDE) $(MODE_INCLUDE) $(filter -I%,$(CFLAGS)) \ + -D_FILE_OFFSET_BITS=64 -idirafter include \ + -D__KERNEL__ -D__UM_HOST__ #This will adjust *FLAGS accordingly to the platform. include $(ARCH_DIR)/Makefile-os-$(OS) |