sarnold | newb_question: what happens if you copy it into place manually? | 01:23 |
---|---|---|
=== chris14_ is now known as chris14 | ||
newb_question | sarnold: when I copy the module into the right place manually, it loads (complains about tainting since it's not signed, but that's not important to me) and runs fine | 03:52 |
=== fling_ is now known as fling | ||
juergh | newb_question, You cannot use plain make with Ubuntu kernel trees. The Ubuntu build system fiddles with the compile options to set the kernel version (amongst other things). | 08:17 |
juergh | newb_question, Look at an official build (for example: https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+build/27926786). From the buildlog: | 08:20 |
juergh | make ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=x86_64-linux-gnu-gcc-12 CC=x86_64-linux-gnu-gcc-12 RUSTC=rustc-1.68 HOSTRUSTC=rustc-1.68 BINDGEN=bindgen-0.56 RUSTFMT=/usr/lib/rust-1.68/bin/rustfmt RUST_LIB_SRC=/usr/src/rustc-1.68.2/library CLANG_PATH=clang-15 LIBCLANG_PATH=/usr/lib/llvm-15/lib KERNELVERSION=6.5.0-27-generic CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_BUILD_VERSION="28~22.04.1-Ubuntu" LOCALVERSION= localver-extra= CFLAGS_MODULE="-DPKG | 08:21 |
juergh | _ABI=27" PYTHON=python3 O=/<<PKGBUILDDIR>>/debian/build/build-generic -j4 modules_install vdso_install \ | 08:21 |
juergh | INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/<<PKGBUILDDIR>>/debian/linux-modules-6.5.0-27-generic/ | 08:21 |
juergh | maybe it's sufficient to do: KERNELVERSION=6.5.0-27-generic LOCALVERSION= localver-extra= make ... | 08:22 |
juergh | to produce a modules with a matching kernel version | 08:22 |
newb_question | juergh: thanks for that insight, I will check out that link and change my build process. | 13:05 |
=== JanC is now known as Guest856 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!