* + selftests-add-and-export-a-kernel-uapi-headers-path.patch added to -mm tree
@ 2022-01-26 1:48 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2022-01-26 1:48 UTC (permalink / raw)
To: andrealmeid, apopple, chi.minghao, dave, davem, dvhart, kuba,
mathew.j.martineau, matthieu.baerts, mic, mingo, mm-commits,
pbonzini, peterz, shuah, tglx, usama.anjum
The patch titled
Subject: selftests: add and export a kernel uapi headers path
has been added to the -mm tree. Its filename is
selftests-add-and-export-a-kernel-uapi-headers-path.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/selftests-add-and-export-a-kernel-uapi-headers-path.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/selftests-add-and-export-a-kernel-uapi-headers-path.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
Subject: selftests: add and export a kernel uapi headers path
Kernel uapi headers can be present at different paths depending upon how
the build was invoked. It becomes impossible for the tests to include the
correct headers directory. Set and export KHDR_INCLUDES variable to make
it possible for sub make files to include the header files.
Link: https://lkml.kernel.org/r/20220119101531.2850400-3-usama.anjum@collabora.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Andr Almeida <andrealmeid@collabora.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: Matthieu Baerts <matthieu.baerts@tessares.net>
Cc: Mickal Salan <mic@digikod.net>
Cc: Minghao Chi <chi.minghao@zte.com.cn>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/selftests/Makefile | 4 ++++
1 file changed, 4 insertions(+)
--- a/tools/testing/selftests/Makefile~selftests-add-and-export-a-kernel-uapi-headers-path
+++ a/tools/testing/selftests/Makefile
@@ -129,8 +129,11 @@ ifneq ($(KBUILD_OUTPUT),)
# $(realpath ...) resolves symlinks
abs_objtree := $(realpath $(abs_objtree))
BUILD := $(abs_objtree)/kselftest
+ KHDR_INCLUDES := -I${abs_objtree}/usr/include
else
BUILD := $(CURDIR)
+ abs_srctree := $(shell cd $(top_srcdir) && pwd)
+ KHDR_INCLUDES := -I${abs_srctree}/usr/include
DEFAULT_INSTALL_HDR_PATH := 1
endif
@@ -139,6 +142,7 @@ include $(top_srcdir)/scripts/subarch.in
ARCH ?= $(SUBARCH)
export KSFT_KHDR_INSTALL_DONE := 1
export BUILD
+export KHDR_INCLUDES
# set default goal to all, so make without a target runs all, even when
# all isn't the first target in the file.
_
Patches currently in -mm which might be from usama.anjum@collabora.com are
selftests-set-the-build-variable-to-absolute-path.patch
selftests-add-and-export-a-kernel-uapi-headers-path.patch
selftests-correct-the-headers-install-path.patch
selftests-futex-add-the-uapi-headers-include-variable.patch
selftests-kvm-add-the-uapi-headers-include-variable.patch
selftests-landlock-add-the-uapi-headers-include-variable.patch
selftests-net-add-the-uapi-headers-include-variable.patch
selftests-mptcp-add-the-uapi-headers-include-variable.patch
selftests-vm-add-the-uapi-headers-include-variable.patch
selftests-vm-remove-dependecy-from-internal-kernel-macros.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-26 1:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 1:48 + selftests-add-and-export-a-kernel-uapi-headers-path.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).