mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libcpuid: Build on more architectures.
* gnu/packages/hardware.scm (libcpuid)[arguments]: When building for armhf-linux or aarch64-linux adjust the 'absoultize phase to adjust the dkms installation directory. [inputs]: When building for armhf-linux or aarch64-linux add linux-libre-headers. [supported-systems]: Also allow armhf and aarch64 systems. Change-Id: Idd24651da77129782461074caae9a3cc3dcaf351
This commit is contained in:
parent
3adadd3051
commit
d2e03bf414
1 changed files with 17 additions and 5 deletions
|
@ -1476,14 +1476,26 @@ management, attestation, encryption, and signing.")
|
||||||
(substitute* '("libcpuid/rdmsr.c"
|
(substitute* '("libcpuid/rdmsr.c"
|
||||||
"libcpuid/rdcpuid.c")
|
"libcpuid/rdcpuid.c")
|
||||||
(("modprobe")
|
(("modprobe")
|
||||||
(search-input-file inputs "/bin/modprobe")))))))))
|
(search-input-file inputs "/bin/modprobe"))))
|
||||||
|
;; TODO: Build kernel module.
|
||||||
|
(when (and #$(target-linux?)
|
||||||
|
#$(target-arm?))
|
||||||
|
(substitute* "drivers/arm/linux/CMakeLists.txt"
|
||||||
|
(("/usr/src/") (string-append #$output "/src/")))))))))
|
||||||
(inputs
|
(inputs
|
||||||
(if (target-linux?)
|
(append
|
||||||
(list kmod)
|
(if (target-linux?)
|
||||||
'()))
|
(list kmod)
|
||||||
|
'())
|
||||||
|
(if (and (target-arm?)
|
||||||
|
(target-linux?))
|
||||||
|
(list linux-libre-headers)
|
||||||
|
'())
|
||||||
|
'()))
|
||||||
(native-inputs (list python-3)) ;required by tests
|
(native-inputs (list python-3)) ;required by tests
|
||||||
(supported-systems
|
(supported-systems
|
||||||
(filter (lambda (t) (or (target-x86-64? t) (target-x86-32? t)))
|
(filter (lambda (t) (or (target-x86-64? t) (target-x86-32? t)
|
||||||
|
(target-aarch64? t) (target-arm32? t)))
|
||||||
%supported-systems))
|
%supported-systems))
|
||||||
(home-page "https://libcpuid.sourceforge.net/")
|
(home-page "https://libcpuid.sourceforge.net/")
|
||||||
(synopsis "Small library for x86 CPU detection and feature extraction")
|
(synopsis "Small library for x86 CPU detection and feature extraction")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue