Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b5aedfe authored by Richard Weinberger's avatar Richard Weinberger
Browse files

um: Fix out-of-tree build



Commit 30b11ee9 (um: Remove copy&paste code from init.h)
uncovered an issue wrt. out-of-tree builds.
For out-of-tree builds, we must not rely on relative paths.
Before 30b11ee9 it worked by chance as no host code included
generated header files.

Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7379047d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -70,8 +70,8 @@ KBUILD_AFLAGS += $(ARCH_INCLUDE)


USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \
USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \
		$(ARCH_INCLUDE) $(MODE_INCLUDE) $(filter -I%,$(CFLAGS)) \
		$(ARCH_INCLUDE) $(MODE_INCLUDE) $(filter -I%,$(CFLAGS)) \
		-D_FILE_OFFSET_BITS=64 -idirafter include \
		-D_FILE_OFFSET_BITS=64 -idirafter $(srctree)/include \
		-D__KERNEL__ -D__UM_HOST__
		-idirafter $(obj)/include -D__KERNEL__ -D__UM_HOST__


#This will adjust *FLAGS accordingly to the platform.
#This will adjust *FLAGS accordingly to the platform.
include $(ARCH_DIR)/Makefile-os-$(OS)
include $(ARCH_DIR)/Makefile-os-$(OS)