新增模組 - Linux

By Andy
at 2014-01-23T13:11
at 2014-01-23T13:11
Table of Contents
抱歉想問個問題
我想自己新增模組到核心內,首先我先到目標目錄新增一個A.c檔
之後在此目錄的 Kconfig 新增
config TEST
tristate "C test"
然後到此目錄的 makefile 打上
obj-$(CONFIG_TEST) +=A.o
之後回到 kernel 目錄打上 make menuconfig 指令有出現 C test 選項,我選
編進核心,之後查詢 .config ,我新增的出現 "CONFIG_TEST is not set"
我不是把他選擇編譯進核心了嗎?應該會出現 CONFIG_TEST = y 吧?
--
我想自己新增模組到核心內,首先我先到目標目錄新增一個A.c檔
之後在此目錄的 Kconfig 新增
config TEST
tristate "C test"
然後到此目錄的 makefile 打上
obj-$(CONFIG_TEST) +=A.o
之後回到 kernel 目錄打上 make menuconfig 指令有出現 C test 選項,我選
編進核心,之後查詢 .config ,我新增的出現 "CONFIG_TEST is not set"
我不是把他選擇編譯進核心了嗎?應該會出現 CONFIG_TEST = y 吧?
--
Tags:
Linux
All Comments

By Michael
at 2014-01-25T04:22
at 2014-01-25T04:22

By Irma
at 2014-01-26T01:00
at 2014-01-26T01:00

By William
at 2014-01-29T12:06
at 2014-01-29T12:06

By Annie
at 2014-01-30T00:44
at 2014-01-30T00:44
Related Posts
shell script 變數問題

By Zanna
at 2014-01-22T22:20
at 2014-01-22T22:20
關於Cloud Service的選擇

By Oliver
at 2014-01-22T22:20
at 2014-01-22T22:20
用shellscript發信的問題

By Ursula
at 2014-01-22T21:44
at 2014-01-22T21:44
shell script 變數問題

By Erin
at 2014-01-22T20:03
at 2014-01-22T20:03
lf95 not found

By Annie
at 2014-01-22T13:17
at 2014-01-22T13:17