support out-of-tree module builds in vmlinux derivation

run "make modules_prepare" to create scripts/modules.lds
This commit is contained in:
Daniel Barlow 2022-10-09 09:55:30 +01:00
parent 2276c548ba
commit 70fa328574
2 changed files with 4 additions and 1 deletions

View file

@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
KBUILD_BUILD_HOST = "liminix.builder";
buildPhase = ''
make -C ${tree} vmlinux
make -C ${tree} vmlinux modules_prepare
'';
installPhase = ''

View file

@ -53,6 +53,9 @@ in {
IKCONFIG = "y";
IKCONFIG_PROC = "y";
PROC_FS = "y";
MODULES = "y";
# s6-linux-init mounts this on /dev
DEVTMPFS = "y";
# some or all of these may be fix for "tmpfs: Unknown parameter 'mode'" error