#Compiling a custom Linux kernel
# Install required tools
sudo apt-get install ncurses-dev
# Download Linux source
sudo apt-get install linux-source
cd /usr/src/
# Extract Linux source
tar xf linux-source-*.tar.xz
cd linux-source-*/
# Copy default config
cp /boot/config-* .config
This is where you should install any patches you want to add to the kernel
# Configure the kernel
# You can learn more about configuration at http://www.linux.org/threads/4274/
make menuconfig
# Build the kernel (This will take a LONG time)
make
# Build the kernel modules (This MIGHT take a long time)
make modules
# Install modules
make modules_install
# Install kernel
make install
Hi, im problem if compiling this code.
Old Problem Fixed
$ make
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
/bin/sh: ./scripts/pahole-flags.sh: Permission denied
CC scripts / mod / empty.o
cc1: error: code model kernel does not support PIC mode
make [1]: *** [scripts / Makefile.build: 287: scripts / mod / empty.o] Error 1
make: *** [Makefile: 1196: prepare0] Error 2
New Problem: