From: Emil Velikov Date: Sat, 24 May 2025 16:22:27 +0000 (+0100) Subject: scripts/setup-modules.sh: remove autotools w/a X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b19ae8ef8a8e948aaee3d5b008944c9eedf3cb7;p=thirdparty%2Fkmod.git scripts/setup-modules.sh: remove autotools w/a With autotools one can do in and out of tree builds. Since we're meson only these days, we can drop the in-tree path. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/356 Signed-off-by: Lucas De Marchi --- diff --git a/scripts/setup-modules.sh b/scripts/setup-modules.sh index 62eee6f3..7713cfd4 100755 --- a/scripts/setup-modules.sh +++ b/scripts/setup-modules.sh @@ -3,14 +3,10 @@ set -euo pipefail SRCDIR=$1 -BUILDDIR=$2 -MODULE_PLAYGROUND=$3 +MODULE_PLAYGROUND=$2 -# TODO: meson allows only out of tree builds -if test "$SRCDIR" != "$BUILDDIR"; then - mkdir -p "$MODULE_PLAYGROUND" - cp --archive "$SRCDIR/$MODULE_PLAYGROUND/"* "$MODULE_PLAYGROUND/" -fi +mkdir -p "$MODULE_PLAYGROUND" +cp --archive "$SRCDIR/$MODULE_PLAYGROUND/"* "$MODULE_PLAYGROUND/" export MAKEFLAGS=${MAKEFLAGS-"-j$(nproc)"} "${MAKE-make}" -C "$PWD/$MODULE_PLAYGROUND" modules diff --git a/testsuite/meson.build b/testsuite/meson.build index 6bc9186f..b4810aed 100644 --- a/testsuite/meson.build +++ b/testsuite/meson.build @@ -7,7 +7,6 @@ build_module_playground = custom_target( command : [ setup_modules, meson.project_source_root(), - meson.project_build_root(), 'testsuite/module-playground', # do not prepend source/build root ], # The command ensures we don't do extra work, so the missing output token file