scripts/mod/modpost in a Linux kernel

Hi,

Depending on modules you’re trying to compile from outside of kernel dirs, maybe you can face the following erros:

Building modules, stage 2.
MODPOST 1 modules
/bin/sh: scripts/mod/modpost: not found
make[4]: *** [__modpost] Error 127
make[4]: Target `_modpost’ not remade because of errors.
make[3]: *** [modules] Error 2

The trouble can be fixed by doing the following sequence commands in the kernel source directory.

# cd /usr/src/linux
# make modules_prepare

That’s all,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s