Source: u-boot
Severity: wishlist
Tags: patch
Hello.
You may be interested in the dh-builtusing debhelper tool, which
generates the Built-Using field instead of explicit shell subcommands.
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
bc,
bison,
debhelper-compat (= 13),
+ dh-sequence-builtusing,
flex,
libpython3-dev:native [linux-any],
libssl-dev,
@@ -167,7 +168,8 @@ Description: A boot loader for omap systems
Package: u-boot-sunxi
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-sunxi:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64],
+ ${dh-builtusing:crust-firmware} [arm64],
Depends: ${misc:Depends}
Recommends: u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -221,7 +223,7 @@ Description: A boot loader for marvell systems
Package: u-boot-rockchip
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-rockchip:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64]
Depends: ${misc:Depends}
Recommends: python3, u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -275,7 +277,7 @@ Package: u-boot-sifive
Architecture: riscv64
Multi-Arch: same
Depends: ${misc:Depends}
-Built-Using: ${u-boot-sifive:Built-Using}
+Built-Using: ${dh-builtusing:opensbi}
Description: A boot loader for SiFive systems
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
--- a/debian/rules
+++ b/debian/rules
@@ -155,6 +155,6 @@ override_dh_clean:
find . -type d -name __pycache__ -delete
override_dh_gencontrol:
- dh_gencontrol -- $(dpkg-gencontrol_args) $(foreach package,\
+ dh_gencontrol -- $(foreach package,\
u-boot-qemu $(subarchs),\
'-V$(package):platforms=$(subst $()
,$${Newline},$($(package)_platforms))')
--- a/debian/targets.mk
+++ b/debian/targets.mk
@@ -45,9 +45,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
# u-boot-rockchip
- dpkg-gencontrol_args += "-Vu-boot-rockchip:Built-Using=$(shell dpkg-query
-Wf \
- '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"
-
# Vagrant Cascadian <[email protected]>
u-boot-rockchip_platforms += firefly-rk3399
firefly-rk3399_assigns := BL31=/usr/lib/arm-trusted-firmware/rk3399/bl31.elf
@@ -139,9 +136,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
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)"
-
u-boot-sunxi_platforms += a64-olinuxino
a64-olinuxino_assigns :=
BL31=/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin
a64-olinuxino_targets := arch/arm/dts/sun50i-a64-olinuxino.dtb \
@@ -376,9 +370,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-rockchip
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-rockchip:Built-Using=
-
# Vagrant Cascadian <[email protected]>, 2GB and 4GB variants
u-boot-rockchip_platforms += firefly-rk3288
firefly-rk3288_targets := idbloader.img spl/u-boot-spl.bin u-boot.bin \
@@ -413,9 +404,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-sunxi
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-sunxi:Built-Using=
-
# Christian Kastner <[email protected]>
u-boot-sunxi_platforms += A10-OLinuXino-Lime
A10-OLinuXino-Lime_targets := u-boot-sunxi-with-spl.bin uboot.elf
@@ -541,9 +529,6 @@ else ifeq (${DEB_HOST_ARCH},riscv64)
# u-boot-sifive
- dpkg-gencontrol_args += "-Vu-boot-sifive:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' opensbi)"
-
# Hector Oron <[email protected]>
u-boot-sifive_platforms += sifive_unleashed
sifive_unleashed_targets := u-boot.bin uboot.elf spl/u-boot-spl.bin
u-boot.itb