diff options
| author | Joao Marcos Costa <joaomarcos.costa@bootlin.com> | 2026-04-20 13:17:12 +0200 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-20 07:35:38 -0700 |
| commit | 335045d3fb440cbb6de0716ffd7dd043bbd3f6ad (patch) | |
| tree | 82881794406430b3a90897a437bb8a7c31f0792e | |
| parent | 06ddb535dffc0a024c02e6e6f2fb032610b3416f (diff) | |
| download | meta-openembedded-335045d3fb440cbb6de0716ffd7dd043bbd3f6ad.tar.gz | |
kernel-selftest: add missing sources if mm is enabled
Some headers come from 'mm' (in the top source directory, i.e. the root of
Linux's sources), as in the exampels below:
Makefile:LOCAL_HDRS += $(selfdir)/mm/local_config.h $(top_srcdir)/mm/gup_test.h
cow.c:#include "../../../../mm/gup_test.h"
gup_longterm.c:#include "../../../../mm/gup_test.h"
gup_test.c:#include <mm/gup_test.h>
hmm-tests.c:#include <mm/gup_test.h>
uffd-unit-tests.c:#include "../../../../mm/gup_test.h"
Add this directory to KERNEL_SELFTEST_SRC if 'mm' PACKAGECONFIG is enabled.
Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
| -rw-r--r-- | meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 1e18caedda..5c001696d0 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | |||
| @@ -80,6 +80,7 @@ KERNEL_SELFTEST_SRC ?= "Makefile \ | |||
| 80 | tools \ | 80 | tools \ |
| 81 | scripts \ | 81 | scripts \ |
| 82 | arch \ | 82 | arch \ |
| 83 | ${@bb.utils.filter('PACKAGECONFIG', 'mm', d)} \ | ||
| 83 | LICENSES \ | 84 | LICENSES \ |
| 84 | " | 85 | " |
| 85 | do_compile() { | 86 | do_compile() { |
