netoptimizer / prototype-kernel

Prototyping kernel development work outside mainline
GNU General Public License v2.0
300 stars 106 forks source link

Fail to compile #24

Closed cybernard closed 5 years ago

cybernard commented 6 years ago

ERROR: Need kernel source code to compile against and specifically tools/lib/bpf

In Opensuse the kernel source is located /usr/src/linux linux is a symlink to another folder linux with the version # after it.

Your make file does NOT find it.

netoptimizer commented 5 years ago

If the kernel source is in a non-standard place, then you need to specify it in the command line when running make, like:

make kbuilddir=~/git/kernel/net-next/

This should be clear from the Makefile comment.

It is also documented here: https://prototype-kernel.readthedocs.io/en/latest/prototype-kernel/build-process.html