Skip to content
OGAWA Hirofumi edited this page Nov 21, 2018 · 11 revisions

Source

Latest tux3 source can get from git://github.com/OGAWAHirofumi/linux-tux3.git

So, you can get the source from,

$ git clone git://github.com/OGAWAHirofumi/linux-tux3.git

Userland build

With following commands, you can compile and test.

$ git checkout user
$ cd fs/tux3/user
$ make
$ make tests

For static check by "sparse", you can use the following

$ make clean
$ make CHECK=1

For coverage by "lcov", you can use the following

$ make clean
$ make GCOV=1
$ make tests
$ make coverage
$ firefox gcov/index.html

Kernel build

Compile kernel for tux3

You can compile kernel as usual, like following

$ cd linux-tux3
$ git checkout master
$ make oldconfig
$ make

Or compile and output to separated directory

$ cd linux-tux3
$ git checkout master
$ cd ..
$ mkdir linux-tux3-build
$ cd linux-tux3-build
$ make -C ../linux-tux3 O=`pwd` oldconfig
$ make

Compile tux3 as kernel module

To compile tux3 as kernel module, you need kernel tree parepared for module ("make modules_prepare" or compile kernel)

$ cd linux-tux3-build
$ make CONFIG_TUX3=m M=fs/tux3
Clone this wiki locally