[問題] kernel default config

看板LinuxDev作者 (非常念舊)時間10年前 (2014/12/05 16:06), 編輯推噓4(4012)
留言16則, 4人參與, 最新討論串1/2 (看更多)
板友好。 我的 kernel 缺少了 CONFIG_PPP_FILTER 這個,後來我重新選擇 built-in之後 重編譯 kernel ,但我想要 commit 這筆記錄(就是我選擇了 CONFIG_PPP_FILTER)這 動作。 我在 ti_XX_defconfig 自己加了 CONFIG_PPP_FILTER=y,最後生成 .config 可是我看 .config 他的 CONFIG_PPP_FILTER 還是 not set.... 要怎樣修改才能讓我在 ti_XX_ defconfig 增加 CONFIG_PPP_FILTER之後進而改變 .config 呢? 這樣也會有修改記錄讓我能夠 commit。 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.220.235 ※ 文章網址: http://www.ptt.cc/bbs/LinuxDev/M.1417766805.A.602.html

12/05 16:15, , 1F
修改.config 加入CONFIG_PPP_FILTER之後覆蓋ti_XX_defco
12/05 16:15, 1F

12/05 16:16, , 2F
再commit ti_XX_defconfig~但為何不直接commit .config?
12/05 16:16, 2F

12/05 16:17, , 3F
你可以直接修改TI BSP的makefile,不要讓他build kernel
12/05 16:17, 3F

12/05 16:18, , 4F
的時候都要去參考本來的ti_XX_defconfig,這個檔顧名思義
12/05 16:18, 4F

12/05 16:18, , 5F
就是他預設的配置,你的.config 第一版是從這個而來,
12/05 16:18, 5F

12/05 16:19, , 6F
但之後的變動應該直接commit .config即可,都有版控系統
12/05 16:19, 6F

12/05 16:20, , 7F
commit .config 保留ti_XX_defconfig會比較直覺~
12/05 16:20, 7F

12/05 23:58, , 8F
make savedefconfig
12/05 23:58, 8F

12/06 11:08, , 9F
哈,某W說盡量不要用 savedefconfig
12/06 11:08, 9F

12/06 13:44, , 10F
自己比對 menuconfig 前後的差異打回 defconfig:
12/06 13:44, 10F

12/06 13:44, , 11F
12/06 13:44, 11F

12/06 17:17, , 12F
感謝各位大大的指教
12/06 17:17, 12F

12/08 18:07, , 13F
基本上ti_XX_defconfig只是個備份,我都dup一份變成
12/08 18:07, 13F

12/08 18:08, , 14F
ti_XX_my_defconfig,然後修改makefile去build我的,
12/08 18:08, 14F

12/08 18:08, , 15F
日後出問題要跟原廠設定比對才有依據
12/08 18:08, 15F

12/09 21:01, , 16F
恩,瞭解
12/09 21:01, 16F
文章代碼(AID): #1KWMULO2 (LinuxDev)
討論串 (同標題文章)
文章代碼(AID): #1KWMULO2 (LinuxDev)