On 4/7/20 11:51 PM, Deepa B wrote:
Hello, I'm running kselftest on Ubuntu 16.04lts. Details: deepa@deepa-Inspiron-3576:/usr/src/linux-headers-4.15.0-88/Documentation$ uname -a Linux deepa-Inspiron-3576 4.15.0-91-generic #92~16.04.1-Ubuntu SMP Fri Feb 28 14:57:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Command: deepa@deepa-Inspiron-3576:/usr/src/linux-headers-4.15.0-91-generic$ make -C tools/testing/selftests
Error: make: Entering directory '/usr/src/linux-headers-4.15.0-91/tools/testing/selftests' make[1]: Entering directory '/usr/src/linux-headers-4.15.0-91/tools/testing/selftests/android' Makefile:7: ../lib.mk: No such file or directory make[1]: *** No rule to make target '../lib.mk'. Stop. make[1]: Leaving directory
Looks like you are trying to build in /usr/src/linux-headers-4.15.0-88 This doesn't contain any source files.
Go down into directorties below selftest or
/usr/src/linux-headers-4.15.0-88/kernel you will see that there are no .[ch] files in these directories.
You have to install Ubuntu 16.04lts source package for kernel or checkout kernel git repos to build kernel and selftests for that kernel from sources.
thanks, -- Shuah