最終更新:2017-07-03 (月) 18:13:41 (2489d)  

Linux/usr/src
Top / 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

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 dep? → 依存情報とシンボル情報の生成
  • make clean → 古いオブジェクトの削除
  • make bzImage? → カーネルのコンパイル
  • make modules→ モジュールのコンパイル
  • make modules_install → モジュールのインストール

関連