| 160 | === ядро |
| 161 | для использования scst рекомендуется добавить патчи в ядро. это необязательно, но с ними производительность выше. |
| 162 | {{{ |
| 163 | #!bash |
| 164 | kernel="2.6.32-504.12.2.el6" |
| 165 | svn co https://svn.code.sf.net/p/scst/svn/branches/2.2.x scst |
| 166 | wget http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-${kernel}.src.rpm |
| 167 | yum install -y yum-utils rpmdevtools |
| 168 | yum-builddep -y --nogpgcheck kernel-${kernel}.src.rpm |
| 169 | rpm -Uvh kernel-${kernel}.src.rpm |
| 170 | cp scst/iscsi-scst/kernel/patches/rhel/put_page_callback-2.6.32-504.patch rpmbuild/SOURCES/ |
| 171 | cp scst/scst/kernel/rhel/scst_exec_req_fifo-2.6.32.patch rpmbuild/SOURCES/ |
| 172 | }}} |
| 173 | в `kernel.spec` после `Source86: config-s390x-debug-rhel` добавляю |
| 174 | {{{ |
| 175 | #!text |
| 176 | Patch111: put_page_callback-2.6.32-504.patch |
| 177 | Patch112: scst_exec_req_fifo-2.6.32.patch |
| 178 | }}} |
| 179 | а после `ApplyOptionalPatch linux-kernel-test.patch` соответственно |
| 180 | {{{ |
| 181 | #!text |
| 182 | ApplyPatch put_page_callback-2.6.32-504.patch |
| 183 | ApplyPatch scst_exec_req_fifo-2.6.32.patch |
| 184 | }}} |
| 185 | |
| 186 | {{{ |
| 187 | #!bash |
| 188 | rpmbuild -ba \ |
| 189 | --without kabichk \ |
| 190 | --with baseonly \ |
| 191 | --with firmware \ |
| 192 | --without debuginfo \ |
| 193 | --target=`uname -m` rpmbuild/SPECS/kernel.spec |
| 194 | }}} |
| 195 | |