Petr Fedchenkov

  • Posts

  • Joined

  • Last visited

  1. Hi! Faced a similar problem. As a workaround, I made a small script (in the attachment) that repack the package with postinst patches. Please try it, if you need. /bin/bash YOURDEB Unfortunately, it doesn't work with acpi-call-dkms (I try to modify after apt install --download-only acpi-call-dkms), but it works for my modules.
  2. Thank you for answer. Unfortunately, it doesn`t work (and no desire to do this manually after installing the package). root@aml:/usr/src/linux-headers-5.3.0-rc6-aml-g12# make scripts arch/arm64/Makefile:56: CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built HOSTCC scripts/selinux/genheaders/genheaders scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No such file or directory #include "classmap.h" ^~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/ scripts/selinux/genheaders/genheaders] Error 1 make[2]: *** [scripts/ scripts/selinux/genheaders] Error 2 make[1]: *** [scripts/ scripts/selinux] Error 2 make: *** [Makefile:1097: scripts] Error 2 But in a cloned repo from git it works, and I have already compiled a number of modules using files from git (for Ceph storage). But, for me the main problem is the lack of automation (I want to use dkms for building modules after kernel update), i.e. linux-headers seem to be attached, but they do not work properly.
  3. Hi, @balbes150 I want to use dkms to build the kernel modules I need. However, there is a problem with the linux-headers-aml-g12 package (at least for Debian Buster), where for some reason the scripts are built for x86_64. root@aml:~# file /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/mod/modpost /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/mod/modpost: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/, BuildID[sha1]=37623a5bbaf64b5e167da1f3a2cf2e0e3aade20f, for GNU/Linux 3.2.0, not stripped Actually, there are 15 files in scripts directory with x86-64 arch (find /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/ -name '*'|xargs file|grep x86-64). Could you please compile the scripts for the aarch64 architecture and rebuild this package?