最終更新:2017-07-03 (月) 18:13:41 (2489d)
Linux/usr/src
FHS
- For systems based on glibc, there are no specific guidelines for this directory. For systems based on Linux libc revisions prior to glibc, the following guidelines and rationale apply:
- The only source code that should be placed in a specific location is the Linux kernel source code. It is located in
中身
Ubuntu
- Linux/usr/src/linux-headers-{version} (linux-headers-{version})
- Linux/usr/src/linux-headers-`uname -r` (linux-headers-`uname -r`) - linux-headers-*-generic?とか
- Linux/usr/src/linux-source-`uname -r`? (linux-source)
- Linux/usr/src/linux-source-`uname -r`.tar.bz2? (linux-source)
CentOS
Linux/usr/src/linux (シンボリックリンク)
Ubuntu
cd /usr/src ln -s linux-source-2.6.xx linux
CentOS
cd /usr/src ln -s kernel/{バージョン} linux
- のようにシンボリックリンクを貼って作業することが多い。
Linuxカーネル/ビルド
cd linux
- make mrproper → パラメータや設定ファイルの初期化
- make config → コンフィグファイルの作成&修正
- make xconfig
- make menuconfig
- make oldconfig
- make defconfig
- make gconfig?
- make dep? → 依存情報とシンボル情報の生成
- make clean → 古いオブジェクトの削除
- make bzImage? → カーネルのコンパイル
- make modules→ モジュールのコンパイル
- make modules_install → モジュールのインストール