I am attempting to build a basic module outside of the Linux source tree (3.18.0-rc6). When I build it, I get an error saying it couldn't find scripts/...
My directory setup looks like this
mymodule/
src/
file.c
linux/
.git/
# rest of the source tree
I am running: make -C ../linux SUBDIRS=$(pwd)/src modules from mymodule.
Here's the actual error:
make: Entering directory '/home/me/linux'
Building modules, stage 2.
MODPOST 1 modules
/bin/sh: scripts/mod/modpost: No such file or directory
scripts/Makefile.modpost:90: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 127
Makefile:1384: recipe for target 'modules' failed
make: *** [modules] Error 2
make: Leaving directory '/home/me/linux'
Is there a setting to make Make look in linux/ for the scripts?
