-
Notifications
You must be signed in to change notification settings - Fork 87
Kernel
Michael Forney edited this page Dec 30, 2016
·
11 revisions
To build a linux kernel from an oasis system, you'll need make
and
python
as well as the core system. Normally, perl is required to build
linux, but we'll apply a patch to use python instead.
First, checkout the linux sources.
git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git /src/linux
cd /src/linux
git checkout $TAG
You'll need to apply some patches to remove the perl dependency, and fix the build with ksh and sbase.
git pull --no-edit https://github.com/michaelforney/linux
If your toolchain does not support running dynamic executables, you need to set
HOSTCC
in your make invocations.
export MAKEFLAGS='HOSTCC=cc\ -static'
Configure the kernel for your system. If you installed the ncurses library and
headers, you should be able to use make menuconfig
.
make
mount /boot
[ -f /boot/linux ] && cp /boot/linux /boot/linux.old
cp arch/x86/boot/bzImage /boot/linux
umount /boot