Commit 2f5dda5c authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Juerg Haefliger

UBUNTU: [Packaging] buildinfo -- add firmware information to the flavour ABI

In getabis we extract the firmware information from each of the .kos.
As we will not have those when only using buildinfo ABI information we
need to collect the firmware information during the build.

BugLink: http://bugs.launchpad.net/bugs/1806380Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent bfde3f18
No related merge requests found
......@@ -406,6 +406,12 @@ endif
find $(pkgdir_bin) $(pkgdir) $(pkgdir_ex) -name \*.ko | \
sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > $(abidir)/$*.modules
# Build the final ABI firmware information.
find $(pkgdir_bin) $(pkgdir) $(pkgdir_ex) -name \*.ko | \
while read ko; do \
/sbin/modinfo $$ko | grep ^firmware || true; \
done | sort -u >$(abidir)/$*.fwinfo
# Build the final ABI retpoline information.
if grep -q CONFIG_RETPOLINE=y $(builddir)/build-$*/.config; then \
echo "# retpoline v1.0" >$(abidir)/$*.retpoline; \
......@@ -423,6 +429,8 @@ endif
$(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/abi
install -m644 $(abidir)/$*.modules \
$(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/modules
install -m644 $(abidir)/$*.fwinfo \
$(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/fwinfo
install -m644 $(abidir)/$*.retpoline \
$(pkgdir_bldinfo)/usr/lib/linux/$(abi_release)-$*/retpoline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment