gnu: dtc: Use pkg-config-for-target.

* gnu/packages/bootloaders.scm (dtc)[arguments]: Adjust custom
'patch-pkg-config phase to use pkg-config-for-target.
This commit is contained in:
Efraim Flashner 2022-03-07 22:46:01 +02:00
parent 54933a4047
commit 027ce78933
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -483,10 +483,7 @@ (define-public dtc
(substitute* '("Makefile"
"tests/run_tests.sh")
(("pkg-config")
(or (which "pkg-config")
(string-append ,(%current-target-system)
"-pkg-config"))))
#t))
,(pkg-config-for-target)))))
(delete 'configure)))) ; no configure script
(home-page "https://www.devicetree.org")
(synopsis "Compiles device tree source files")