version 1.1, 2016/06/22 00:45:04
|
version 1.2, 2016/06/22 00:50:29
|
Line 43 Building the kernel module
|
Line 43 Building the kernel module
|
The kernel module can be compiled in two steps from within the source tree for the NetBSD base system, once the distribution has been built. Change to the `distrib/<arch>/ramdisks/ramdisk-cgdroot` and use `nbmake-<arch>` to build: |
The kernel module can be compiled in two steps from within the source tree for the NetBSD base system, once the distribution has been built. Change to the `distrib/<arch>/ramdisks/ramdisk-cgdroot` and use `nbmake-<arch>` to build: |
|
|
<pre> |
<pre> |
src/distrib/amd64/ramdisks/ramdisk-cgdroot$ nbmake-amd64 |
src/distrib/amd64/ramdisks/ramdisk-cgdroot$ /path/to/tooldir/bin/nbmake-amd64 |
[...] |
[...] |
create ramdisk-cgdroot/ramdisk-cgdroot.fs |
create ramdisk-cgdroot/ramdisk-cgdroot.fs |
Calculated size of `ramdisk-cgdroot.fs.tmp': 5120000 bytes, 85 inodes |
Calculated size of `ramdisk-cgdroot.fs.tmp': 5120000 bytes, 85 inodes |
Line 59 Image `ramdisk-cgdroot.fs.tmp' complete
|
Line 59 Image `ramdisk-cgdroot.fs.tmp' complete
|
Then the kernel module can be built: |
Then the kernel module can be built: |
|
|
<pre> |
<pre> |
src/distrib/amd64/kmod-cgdroot$ nmake-amd64 |
src/distrib/amd64/kmod-cgdroot$ /path/to/tooldir/bin/nbmake-amd64 |
</pre> |
</pre> |
|
|
Caveats |
Caveats |