X86 64

x86_64 Target Specific Information

Status as of 24/11/2014

Kernel build works and runs - please test!

cd targets/x86_64_tiny
make kernel-build test

Prerequisites

  • Installed native GCC compiler in $PATH (usual kernel dependencies)

Using the llvmlinux project

If you have not already done so, clone the llvmlinux project:

git clone http://git.linuxfoundation.org/llvmlinux.git

Now make the x86_64_tiny target

cd llvmlinux/targets/x86_64_tiny
make kernel-build test

once this works, you can try out the bigger "x86_64" target

cd llvmlinux/targets/x86_64
make kernel-build

You can install and boot it.

The Makefile will build all the prerequisites (LLVM, Clang), download the kernel, apply the patch for LLVM compatibility, copy a tested config file and build the kernel.

To use a prebuilt version of Clang, call make with CLANG_TOOLCHAIN=prebuilt as argument.

The config file for x86_64 is in llvmlinux/targets/x86_64/config_x86_64.

Testing the built kernel

cd llvmlinux/target/x86_64/build/kernel-clang
sudo make modules_install
sudo make install

Boots on x86_64 with a defconfig.

Project Hosting

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More about the foundation...