mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
gnu: Add python-u-boot-pylib.
* gnu/packages/bootloaders.scm (python-u-boot-pylib): New variable. * gnu/packages/patches/u-boot-fix-u-boot-lib-build.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
This commit is contained in:
committed by
Vagrant Cascadian
parent
ed5dc3a25d
commit
ffbcc113df
@@ -655,7 +655,8 @@ tree binary files. These are board description files used by Linux and BSD.")
|
||||
%u-boot-allow-disabling-openssl-patch
|
||||
%u-boot-sifive-prevent-relocating-initrd-fdt
|
||||
%u-boot-rk3399-enable-emmc-phy-patch
|
||||
(search-patch "u-boot-fix-build-python-3.10.patch")))
|
||||
(search-patch "u-boot-fix-build-python-3.10.patch")
|
||||
(search-patch "u-boot-fix-u-boot-lib-build.patch")))
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://ftp.denx.de/pub/u-boot/"
|
||||
@@ -841,6 +842,26 @@ CONFIG_TOOLS_LIBCRYPTO=n")
|
||||
" This package provides board-independent tools "
|
||||
"of U-Boot."))))
|
||||
|
||||
(define-public python-u-boot-pylib
|
||||
(package
|
||||
(inherit u-boot)
|
||||
(name "python-u-boot-pylib")
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chdir
|
||||
(lambda _
|
||||
(chdir "tools/u_boot_pylib")))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "./u_boot_pylib")))))))
|
||||
(synopsis "U-Boot Python library")
|
||||
(description "This package provides common Python code used by some of the
|
||||
commands part of the U-Boot project, such as Patman.")))
|
||||
|
||||
;;; This is packaged separately, as it can be used in other contexts than for
|
||||
;;; U-Boot development.
|
||||
(define-public patman
|
||||
|
||||
Reference in New Issue
Block a user