新增模組 - Linux

Andy avatar
By Andy
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 吧?

--
Tags: Linux

All Comments

Michael avatar
By Michael
at 2014-01-25T04:22
抱歉剛剛試了一下,會出現 y
Irma avatar
By Irma
at 2014-01-26T01:00
但是我接著編譯核心之後查詢出現 CONGIG_TEST is not s
et
怎麼回事阿
William avatar
By William
at 2014-01-29T12:06
config Test 還是 config TEST ?
Annie avatar
By Annie
at 2014-01-30T00:44
另外, 新目錄的 Kconfig 有誰去 source 它嗎?

shell script 變數問題

Zanna avatar
By Zanna
at 2014-01-22T22:20
當有變數存在時 TMP${q}=something只能被當作是一般字串 而非命令 你可以試著這樣操作 並檢驗它的執行過程 echo and#34;---- start ----and#34; x=123 foo${x}bar=foobar echo and#34;${foo123bar}and#34; e ...

關於Cloud Service的選擇

Oliver avatar
By Oliver
at 2014-01-22T22:20
大家好 Linux板首PO 請多多指教~ 不知道有沒有發錯板 有的話請指正 感謝 是這樣的 我目前有一個專案 是開發一個網上購物平台 我們用Wordpress + Woocommerce 實現這個功能 開發接近完成 現在已經上線進行內部測試 跟組員還有公司討論了未來會實現的網站結構 最終的結構應該 ...

用shellscript發信的問題

Ursula avatar
By Ursula
at 2014-01-22T21:44
各位好,我也是位linux的新手 本來有一個發送信件的函數寫這樣: function mail2op { scp -q ./checkresults/$MAILFILE $MAILSRVIP:/tmp/$MAILFILE ssh $MAILSRVIP and#34;mail $EMAIL -s \and#3 ...

shell script 變數問題

Erin avatar
By Erin
at 2014-01-22T20:03
想請教一下為何下列第二和第三種方法會顯示錯誤訊息 1. TMP1=/root/zh/pp/pg1.tmp TMP2=/root/zh/pp/pg2.tmp 2. q=1 while [ and#34;$qand#34; -le and#34;4and#34; ];do TMP${q}=/root/ ...

lf95 not found

Annie avatar
By Annie
at 2014-01-22T13:17
我要安裝一個叫talys的軟體 README裡面寫到 https://www.dropbox.com/s/k04n9m5y61c3i75/README talys.setup https://www.dropbox.com/s/ardxgrm4w1q30am/talys.setup #compiler ...