Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dkms.conf #2

Open
wants to merge 2 commits into
base: aur
Choose a base branch
from
Open

Add dkms.conf #2

wants to merge 2 commits into from

Conversation

marcosfad
Copy link

dkms makes it much easier to build and maintain.

Tested with mbp 16,1 and kernel 5.6.11

networkException added a commit to t2linux/wiki that referenced this pull request Mar 15, 2021
@peter-power-594
Copy link

@marcosfad @networkException 👋 Sorry to bother you, any idea on how to compile it with clang ?
OpenMandriva is switching to full clang for the next release, and I didn't succeed to make it work. ><

CC [M]  /usr/src/apple-bce-0.1/apple_bce.o
clang-15: error: unknown argument: '-mpreferred-stack-boundary=3'
clang-15: error: unknown argument: '-mindirect-branch-cs-prefix'
clang-15: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]

Thank you very much in advance for your help

@peter-power-594
Copy link

peter-power-594 commented May 26, 2023

To reply to my own thread, actually it's working with the following config :

PACKAGE_NAME=apple-bce
PACKAGE_VERSION=0.1
CLEAN="make clean"
MAKE[0]="make CC=clang CXX=clang++ LD=ld.lld AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJSIZE=llvm-size STRIP=llvm-strip"
BUILT_MODULE_NAME[0]="apple-bce"
DEST_MODULE_LOCATION[0]="/updates"
AUTOINSTALL="yes"
REMAKE_INITRD="yes"

Build passed on the distro OpenMandriva Lx release 23.03 (ROME) Rolling for x86_64
With kernel 6.2.6-desktop-1omv2390 on a Macbook Air Intel mid 2020.
And OpenMandriva 15.0.7-3 clang version 15.0.7 as the toolchain
Architecture x86_64-pc-linux-gnu

Here is the logs:

sudo dkms install apple-bce/0.1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=6.2.6-desktop-1omv2390 CC=clang CXX=clang++ LD=ld.lld AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJSIZE=llvm-size STRIP=llvm-strip....
/usr/sbin/dkms: ligne 1452: /var/lib/dkms/apple-bce/0.1///module/symvers.gz: Aucun fichier ou dossier de ce type
cleaning build area...


DKMS: build completed.

apple-bce.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.6-desktop-1omv2390/updates/

depmod...


Backing up initrd-6.2.6-desktop-1omv2390.img to /boot/initrd-6.2.6-desktop-1omv2390.img.old-dkms
Making new initrd-6.2.6-desktop-1omv2390.img
(If next boot fails, revert to initrd-6.2.6-desktop-1omv2390.img.old-dkms image)
dracut.......

DKMS: install completed.
  • Keyboard
  • Trackpad (Not working for me)
  • Audio

Using an external mouse so ok for now. If that can help someone.

References :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants