Bug#985981: u-boot-sunxi: please embed crust-firmware on supported platforms

2021-05-08 Thread Vagrant Cascadian
On 2021-03-27, Nicolas Boulenguez wrote:
> Once crust-firmware is available, the attached suggestion should be
> sufficient to enable it in u-boot.

> --- a/debian/control
> +++ b/debian/control
> @@ -7,6 +7,7 @@ Build-Depends:
>   arm-trusted-firmware (>= 2.4+dfsg) [arm64],
>   bc,
>   bison,
> + crust-firmware:all [arm64],
>   debhelper-compat (= 13),
>   device-tree-compiler,
>   flex,

"crust-firmware:all" is not a valid value for Build-Depends.

With the crust-firmware packaging as it stands "crust-firmware:native"
would be needed.

I think a better option would be to set "Multi-Arch: foreign" in
the crust-firmware package, and then u-boot can:

 Build-Depends: ... crust-firmware [arm64], ...

I filed a bug against crust-firmware and marked it as blocking this bug,
though it is arguably a soft block (since :native would technically
work).


Thanks for the work on getting crust-firmware into Debian! Looking
forward to integrating it into the u-boot packages!


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#985981: u-boot-sunxi: please embed crust-firmware on supported platforms

2021-03-27 Thread Nicolas Boulenguez
Source: u-boot
Severity: wishlist
Tags: patch
Control: block -1 by 979326

Hello.
Once crust-firmware is available, the attached suggestion should be
sufficient to enable it in u-boot.
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
  arm-trusted-firmware (>= 2.4+dfsg) [arm64],
  bc,
  bison,
+ crust-firmware:all [arm64],
  debhelper-compat (= 13),
  device-tree-compiler,
  flex,
--- a/debian/targets.mk
+++ b/debian/targets.mk
@@ -118,7 +118,8 @@ ifeq (${DEB_HOST_ARCH},arm64)
 
 # u-boot-sunxi
 
-  u-boot-sunxi_assigns := SCP=/dev/null
+  u-boot-sunxi_assigns = \
+SCP=$(or $(wildcard /usr/lib/crust-firmware/$(platform).bin),/dev/null)
 
   dpkg-gencontrol_args += "-Vu-boot-sunxi:Built-Using=$(shell dpkg-query -Wf \
 '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"