Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel module e ebuild
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Jan 22, 2022 6:52 am    Post subject: kernel module e ebuild Reply with quote

Ciao,

compilo un modulo del kernel (non presente nel kernel) e poi lo copio in (lib/modules/......) e uso /etc/modules.load per montarlo all'avvio.

La domanda é posso fare la copia del modulo tramite una ebuild?
il modulo dovrebbe essere copiato in tutti i kernel presenti in /lib/modules

con un kernel solo penso non sia difficile usando insinto o into nella ebuild e tramite una variabile uname -r
ma con piú kernel con versioni e nomi diversi?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Sat Jan 22, 2022 7:31 am    Post subject: Reply with quote

Esiste l'eclass linux-mod per compilare e installare moduli al di fuori del kernel e penso sia il punto di partenza per fare quello che vorresti.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Jan 22, 2022 9:16 am    Post subject: Reply with quote

presumo che compila il modulo per il kernel "Attivo" e che implica la presenza dei sorgenti vero?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Sat Jan 22, 2022 9:55 am    Post subject: Reply with quote

antonellocaroli wrote:
presumo che compila il modulo per il kernel "Attivo" e che implica la presenza dei sorgenti vero?

Si ma funzionano tutti così i moduli esterni.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Jan 22, 2022 10:03 am    Post subject: Reply with quote

probabilmente se riuscissi a compilare il kernel in modo che build non fosse un link simbolico (non so come si fa con genkernel) potrei usare dkms....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum