-->

2011-10-18

カーネルのコンパイルのオプション

メモ: カーネルのコンパイルのオプション。

make ARCH=i386 KCFLAGS="-march=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=prescott -fomit-frame-pointer -Os" -j4 vmlinux \
&& \
make ARCH=i386 KCFLAGS="-march=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=prescott -fomit-frame-pointer -Os" -j4 modules \
&& \
make ARCH=i386 KCFLAGS="-march=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=prescott -fomit-frame-pointer -Os" -j4 modules_install

$ uname -a
Linux cogentoo-1 2.6.33.7-co-0.7.9 #3 PREEMPT Tue Oct 18 03:19:22 JST 2011 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

$ cat /proc/cpuinfo | grep "^model name"
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz

$ ll -h /usr/src/linux/vmlinux
-rwxr-xr-x 1 root root 3.8M 2011-10-18 03:19:34 /usr/src/linux/vmlinux*

$ diff -u /usr/src/linux/.config.old /usr/src/linux/.config
--- /usr/src/linux/.config.old  2011-05-15 22:59:26.996442011 +0900
+++ /usr/src/linux/.config      2011-10-17 21:49:42.115264950 +0900
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # Linux kernel version: 2.6.33.7
-# Sun May 15 22:59:26 2011
+# Mon Oct 17 21:49:42 2011
 #
 # CONFIG_64BIT is not set
 CONFIG_X86_32=y
@@ -169,7 +169,7 @@
 # CONFIG_MODULE_SRCVERSION_ALL is not set
 CONFIG_BLOCK=y
 CONFIG_LBDAF=y
-# CONFIG_BLK_DEV_BSG is not set
+CONFIG_BLK_DEV_BSG=y
 # CONFIG_BLK_DEV_INTEGRITY is not set

 #
@@ -692,6 +692,7 @@
 # CONFIG_SCSI_SPI_ATTRS is not set
 # CONFIG_SCSI_FC_ATTRS is not set
 CONFIG_SCSI_ISCSI_ATTRS=m
+# CONFIG_SCSI_SAS_ATTRS is not set
 # CONFIG_SCSI_SAS_LIBSAS is not set
 # CONFIG_SCSI_SRP_ATTRS is not set
 CONFIG_SCSI_LOWLEVEL=y

0 件のコメント: