forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Compile
OGAWA Hirofumi edited this page Nov 21, 2018
·
11 revisions
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
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
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
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