[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:33238] Re: How to build kernel module ?



ã‚€ã¤ã¿ã§ã™ã€‚

>>>>> In [debian-users : No.33237] 
>>>>>	Kenshi Muto <kmuto@xxxxxxxxxxxxxxx> wrote:
>> 武藤@Debianã·ã‚ã˜ã‡ãã¨ã§ã™ã€‚

>> > ã“ã¡ã‚‰ã®æ–¹æ³•ã§ã¯ï¼Œkernel-source を展開ã—ãŸå ´æ‰€ã§ä½œæ¥­ã§ãã‚‹ã®ã§ï¼Œã¾ã æ°—
>> > 楽ã§ã™ãŒï¼Œbuild 時㮠header files ãŒãã¡ã‚“ã¨å‚ç…§ã•ã‚Œã‚‹ã‹ãŒæ°—ã«ãªã‚Šã¾ã™ï¼Ž
>> > 例ãˆã°ï¼Œæ‰‹å…ƒã® kernel-source-2.2.20.tar.bz2 ã«ã¯ modversions.h ãŒå«ã¾
>> > ã‚Œã¦ã„ã¾ã›ã‚“ã§ã—ãŸã‹ã‚‰ï¼Œã“れをå‚ç…§ã™ã‚‹ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã¯ã‚³ãƒ³ãƒ‘イルã§ããªã„ã¯
>> > ãšã§ã™ï¼Ž

>> むむã€ãã†ã‹ã€‚
>> .configã‚’ç½®ã„ãŸã‚ã¨ã€make menuconfigã‚’ã—ã¦ã™ã終了ã€ãã‚Œã‹ã‚‰make depã‚’
>> 実行ã—ãŸã‚‰ã€modversions.hãŒã§ãã¾ã—ãŸã€‚
>> ã“ã‚Œã§ã„ã„ã®ã‹ã—ら?

 make-kpkg modules_image ã®ã¿ã®æ™‚ã§ã‚‚ (make-kpkg clean ã—ã¨ã‘ã°)

 make oldconfig
 make dep

ãŒèµ°ã‚‹ã®ã§ã€.config ã•ãˆ kernel-source-* ã®ä¸‹ã«ç”¨æ„ã—ã¨ã‘ã°
ã ã„ã˜ã‚‡ã†ã¶ ã ã¨æ€ã†ã‚“ã™ã‘ã©ã€ãƒ€ãƒ¡ã™ã‹?

-- 
ã„ã—ã‹ã‚ ã‚€ã¤ã¿
 <ishikawa@xxxxxxxxxxxxxxxx>, <ishikawa@xxxxxxxxxxx>, <ishikawa@debian.org>