make[1]: *** [/linux_work/linux_latest_bootable/Makefile:801: include/config/auto.conf] Error 1

NobinPegasus

Member
Joined
Feb 4, 2022
Messages
44
Reaction score
0
Credits
401
I'm trying to direct the kselftest output from kselftest. But It works fine with

sudo make kselftest

but it gives error with O= option
and I had tried KBUILD_OUTPUT=/tmp/kselftest. It doesn't show any output report on /tmp/kselftest.
sudo make O=/tmp/kselftest kselftest-install gives the following error. How to resolve it?

Code:
pegasus@pegasusv:/linux_work/linux_latest_bootable$ sudo make oldconfig && sudo make prepare
#
# No change to .config
#
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  DESCEND bpf/resolve_btfids
  INSTALL libsubcmd_headers
pegasus@pegasusv:/linux_work/linux_latest_bootable$ sudo make O=/tmp/kselftest kselftest-install TARGETS="breakpoints timers"
make[1]: Entering directory '/tmp/kselftest'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

/linux_work/linux_latest_bootable/Makefile:736: include/config/auto.conf: No such file or directory
make[1]: *** [/linux_work/linux_latest_bootable/Makefile:801: include/config/auto.conf] Error 1
make[1]: Leaving directory '/tmp/kselftest'
make: *** [Makefile:226: __sub-make] Error 2
 

Members online


Top