[Tomoyo-dev 764] Ubuntu 6.06 用カーネル

Back to archive index

from-****@i-lov***** from-****@i-lov*****
2008年 2月 4日 (月) 18:22:01 JST


 熊猫です。

 Ubuntu 6.06 での /lib/firmware/ を含む TOMOYO Linux 1.5.3 カーネルパッケージの作成に成功したのでメモを残しておきます。
686 をベースにしているので flavour として 686-ccs という指定していますが、 server 等でも同様にできると思います。
debian/control への追加が強引です。もう少しきれいな方法があると思います。

cd /usr/src/
apt-get install linux-kernel-devel fakeroot build-essential
apt-get build-dep linux-image-2.6.15-51-686
apt-get source linux-image-2.6.15-51-686
cd linux-source-2.6.15-2.6.15/
wget http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.3-20080131.tar.gz
tar -zxf ccs-patch-1.5.3-20080131.tar.gz
wget -O patches/ccs-patch-2.6.15.7-ubuntu1.diff 'http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/trunk/1.5.x/ccs-patch/patches/ccs-patch-2.6.15.7-ubuntu1.diff?root=tomoyo'
patch -p1 < patches/ccs-patch-2.6.15.7-ubuntu1.diff
cat debian/config/i386/config.686 config.ccs > debian/config/i386/config.686-ccs
awk ' BEGIN { flag = 0; print ""; } { if ( $1 == "Package:") { if ( index($2, "-686") > 0) { flag = 1; $2 = $2 "-ccs"; } else flag = 0; }; if (flag) print $0; } ' debian/control.stub > debian/control.stub.tmp
cat debian/control.stub.tmp >> debian/control.stub
chmod +x debian/post-install
chmod -R +x debian/bin/
export CONCURRENCY_LEVEL=`grep -c '^processor' /proc/cpuinfo`
debian/rules binary-debs flavours=686-ccs || /bin/true
cat debian/control.stub.tmp >> debian/build/install-686-ccs/debian/control
debian/rules binary-debs flavours=686-ccs
cd debian/build/
cp -p linux-headers-2.6.15-51_2.6.15-51.64_i386.deb linux-headers-2.6.15-51-686-ccs_2.6.15-51.64_i386.deb linux-image-2.6.15-51-686-ccs_2.6.15-51.64_i386.deb /usr/src/




tomoyo-dev メーリングリストの案内
Back to archive index