mirror of
https://github.com/dynup/kpatch
synced 2025-01-28 15:52:43 +00:00
Merge pull request #320 from goldyfruit/master
readme.md: add support for Debian GNU/Linux Wheezy (7.x)
This commit is contained in:
commit
063668477c
49
README.md
49
README.md
@ -112,12 +112,14 @@ Install the dependencies for compiling kpatch:
|
|||||||
|
|
||||||
Install and prepare the kernel sources:
|
Install and prepare the kernel sources:
|
||||||
|
|
||||||
apt-get install linux-source-$(uname -r)
|
```bash
|
||||||
cd /usr/src && tar xvf linux-source-$(uname -r).tar.xz && ln -s linux-source-$(uname -r) linux && cd linux
|
apt-get install linux-source-$(uname -r)
|
||||||
cp /boot/config-$(uname -r) .config
|
cd /usr/src && tar xvf linux-source-$(uname -r).tar.xz && ln -s linux-source-$(uname -r) linux && cd linux
|
||||||
for OPTION in CONFIG_KALLSYMS_ALL CONFIG_FUNCTION_TRACER ; do sed -i "s/# $OPTION is not set/$OPTION=y/g" .config ; done
|
cp /boot/config-$(uname -r) .config
|
||||||
sed -i "s/^SUBLEVEL.*/SUBLEVEL =/" Makefile
|
for OPTION in CONFIG_KALLSYMS_ALL CONFIG_FUNCTION_TRACER ; do sed -i "s/# $OPTION is not set/$OPTION=y/g" .config ; done
|
||||||
make -j`getconf _NPROCESSORS_CONF` deb-pkg KDEB_PKGVERSION=$(uname -r).9-1
|
sed -i "s/^SUBLEVEL.*/SUBLEVEL =/" Makefile
|
||||||
|
make -j`getconf _NPROCESSORS_CONF` deb-pkg KDEB_PKGVERSION=$(uname -r).9-1
|
||||||
|
```
|
||||||
|
|
||||||
Install the kernel packages and reboot
|
Install the kernel packages and reboot
|
||||||
|
|
||||||
@ -133,6 +135,41 @@ Install the dependencies for the "kpatch-build" command:
|
|||||||
apt-get install ccache
|
apt-get install ccache
|
||||||
ccache --max-size=5G
|
ccache --max-size=5G
|
||||||
|
|
||||||
|
####Debian 7.x
|
||||||
|
|
||||||
|
*NOTE: You'll need about 15GB of free disk space for the kpatch-build cache in
|
||||||
|
`~/.kpatch` and for ccache.*
|
||||||
|
|
||||||
|
Add backports repositories:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/wheezy-backports.list
|
||||||
|
echo "deb http://packages.incloudus.com backports-incloudus main" > /etc/apt/sources.list.d/incloudus.list
|
||||||
|
wget http://packages.incloudus.com/incloudus/incloudus.pub -O- | apt-key add -
|
||||||
|
aptitude update
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the linux kernel, symbols and gcc 4.9:
|
||||||
|
|
||||||
|
aptitude install -t wheezy-backports -y initramfs-tools
|
||||||
|
aptitude install -y gcc gcc-4.9 linux-image-3.14 linux-image-3.14-dbg
|
||||||
|
|
||||||
|
Configure gcc 4.9 as the default gcc compiler:
|
||||||
|
|
||||||
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20
|
||||||
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
|
||||||
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20
|
||||||
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
|
||||||
|
|
||||||
|
Install kpatch and these dependencies:
|
||||||
|
|
||||||
|
aptitude install kpatch
|
||||||
|
|
||||||
|
Configure ccache (installed by kpatch package):
|
||||||
|
|
||||||
|
ccache --max-size=5G
|
||||||
|
|
||||||
|
|
||||||
###Build
|
###Build
|
||||||
|
|
||||||
Compile kpatch:
|
Compile kpatch:
|
||||||
|
Loading…
Reference in New Issue
Block a user