Linux kernel: Difference between revisions
imported>Makefu No edit summary |
imported>Artturin m fix formatting |
||
Line 264: | Line 264: | ||
1. for kernel modules it is normally necessary to disable <code>pic</code> and sometimes <code>format</code> hardening | 1. for kernel modules it is normally necessary to disable <code>pic</code> and sometimes <code>format</code> hardening | ||
2. most of the time you will need to set the moduleBuildDependencies to build a module | 2. most of the time you will need to set the moduleBuildDependencies to build a module | ||
3. this kernel module requires the release to be set, it can be found in <code>${kernel.modDirVersion}</code> | 3. this kernel module requires the release to be set, it can be found in <code>${kernel.modDirVersion}</code> | ||
4. You need to find out how the build environment (Makefile in general) finds the kernel tree. This is sometimes <code>KDIR</code> and sometimes <code>KERNEL_DIR</code>. | 4. You need to find out how the build environment (Makefile in general) finds the kernel tree. This is sometimes <code>KDIR</code> and sometimes <code>KERNEL_DIR</code>. | ||
5. When you get the error <code>mkdir: cannot create directory '/lib': Permission denied</code> then it may be necessary to set <code>INSTALL_MOD_PATH</code>. This can be done by setting via <code>makeFlags</code> or by setting it directly in the derivation. | 5. When you get the error <code>mkdir: cannot create directory '/lib': Permission denied</code> then it may be necessary to set <code>INSTALL_MOD_PATH</code>. This can be done by setting via <code>makeFlags</code> or by setting it directly in the derivation. | ||