Difference between
modified post f84c4b8d by Anonymous on Thu 10th Mar 2022 11:51
original post 1c4e8fe by Anonymous on Thu 10th Mar 2022 10:03
Download diff
Show
old version |
new version |
both versions
| 1 | - | mkdir try5 | |
| 1 | + | #!/usr/bin/ksh93 | |
| 3 | 2 | ||
| 4 | - | tar xf /usr/src/linux-source-5.10.tar.xz | |
| 3 | + | # | |
| 4 | + | # Build Debian RT kernel from source, | |
| 5 | 9 | ||
| 6 | - | unxz </usr/src/linux-patch-5.10-rt.patch.xz | less | |
| 10 | + | set -o xtrace | |
| 7 | - | cd linux-source-5.10/ | |
| 11 | + | set -o errexit | |
| 8 | 12 | ||
| 13 | + | integer num_cpus=$(getconf '_NPROCESSORS_CONF') | |
| 10 | 14 | ||
| 15 | + | # mkdir try5 && cd try5/ | |
| 13 | 16 | ||
| 14 | - | cp config.amd64_rt_amd64 .config | |
| 17 | + | tar xf /usr/src/linux-source-5.10.tar.xz | |
| 17 | 18 | ||
| 18 | - | time nice -n 19 make -j16 deb-pkg 2>&1 | tee -a buildlog.log | |
| 19 | + | cd linux-source-5.10 | |
| 19 | 20 | ||
| 20 | - | ||
| 21 | + | unxz </usr/src/linux-patch-5.10-rt.patch.xz | patch -p1 | |
| 21 | 22 | ||
| 22 | - | ||
| 23 | + | cp /usr/src/linux-config-5.10/config.amd64_rt_amd64.xz . | |
| 23 | - | ||
| 24 | + | unxz config.amd64_rt_amd64.xz | |
| 24 | 25 | ||
| 25 | - | ||
| 26 | + | # copy config and make kernel build accept it without | |
| 26 | - | ||
| 27 | + | # jumping to the $ make menu # menu | |
| 27 | - | ||
| 28 | + | cp config.amd64_rt_amd64 .config | |
| 28 | - | ||
| 29 | + | make oldconfig <'/dev/null' | |
| 29 | 30 | ||
| 30 | - | ||
| 31 | + | make clean | |
| 31 | 32 | ||
| 32 | - | ||
| 33 | + | time nice -n 19 make -j$((num_cpus*2)) deb-pkg 2>&1 | tee -a buildlog.log | |
| 33 | 34 | ||
| 34 | - | ||
| 35 | + | print '#### Finished!!' | |
| 35 | - | ||
| 36 | + | # EOF. | |
| 36 | 37 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
rovema.kpaste.net RSS