make modpost – unrecognized command line option “-m”

我覺得這好像是BUG。

今天抓了2.6.18-8的kernel source要編譯 ralink的driver,到最後會說找不到modpost。
所以自己再編modpost,找到的方式為 在 kernel source下面打 make scripts/mod/modpost
然後就會看到標題的錯誤了~
unrecognized command line option “-m”

網路上找了好久都沒找到解答,而且我之前在CROSS_COMPILE的時候好像也有遇過,超爛的問題,一度要放棄的時候,試試 make scripts,客,這時候說sumversion.c 沒有 define PATH_MAX,幫他定義一下,make,OK~

driver 也就可以順利編譯出來了~

This entry was posted in 工作. Bookmark the permalink.

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