support out-of-tree module builds in vmlinux derivation
run "make modules_prepare" to create scripts/modules.lds
This commit is contained in:
parent
2276c548ba
commit
70fa328574
2 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
KBUILD_BUILD_HOST = "liminix.builder";
|
KBUILD_BUILD_HOST = "liminix.builder";
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make -C ${tree} vmlinux
|
make -C ${tree} vmlinux modules_prepare
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -53,6 +53,9 @@ in {
|
||||||
IKCONFIG = "y";
|
IKCONFIG = "y";
|
||||||
IKCONFIG_PROC = "y";
|
IKCONFIG_PROC = "y";
|
||||||
PROC_FS = "y";
|
PROC_FS = "y";
|
||||||
|
|
||||||
|
MODULES = "y";
|
||||||
|
|
||||||
# s6-linux-init mounts this on /dev
|
# s6-linux-init mounts this on /dev
|
||||||
DEVTMPFS = "y";
|
DEVTMPFS = "y";
|
||||||
# some or all of these may be fix for "tmpfs: Unknown parameter 'mode'" error
|
# some or all of these may be fix for "tmpfs: Unknown parameter 'mode'" error
|
||||||
|
|
Loading…
Reference in a new issue