diff options
| author | Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2017-08-07 17:42:42 -0400 |
|---|---|---|
| committer | Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2017-08-07 17:42:42 -0400 |
| commit | 5d42729fe393fc11b20730b86aac7f4f861ca68e (patch) | |
| tree | 7679023e94049ff89d023e85758160908825d3d3 | |
| parent | ea54c7675ffc8f9d435206db8798a3428c15734f (diff) | |
| download | efi-boot-shim-5d42729fe393fc11b20730b86aac7f4f861ca68e.tar.gz efi-boot-shim-5d42729fe393fc11b20730b86aac7f4f861ca68e.zip | |
Define an EFI_ARCH variable, and use that for paths to shim. This makes it possible to build a shim for other architectures than amd64.
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rwxr-xr-x | debian/rules | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index e54306d1..147cdbc3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ shim (12+1501864225.b586175-0) UNRELEASED; urgency=medium - Update dh_auto_build/dh_auto_clean for new upstream options: set MAKELEVEL. - Set DEFAULT_LOADER; this makes second-stage-path unnecessary. + - Define an EFI_ARCH variable, and use that for paths to shim. This + makes it possible to build a shim for other architectures than amd64. * debian/patches/second-stage-path: dropped. * debian/patches/sbsigntool-no-pesign: refreshed. diff --git a/debian/rules b/debian/rules index e51de0b7..7edcae3b 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,10 @@ else cert=debian/debian-uefi-ca.der endif +ifeq ($(DEB_HOST_ARCH),amd64) +export EFI_ARCH := x64 +endif + %: dh $@ --parallel @@ -19,9 +23,9 @@ override_dh_auto_build: dh_auto_build -- \ MAKELEVEL=0 \ EFI_PATH=/usr/lib \ - DEFAULT_LOADER=\\\grubx64.efi \ + DEFAULT_LOADER=\\\grub$(EFI_ARCH).efi \ VENDOR_CERT_FILE=$(cert) override_dh_fixperms: dh_fixperms - chmod a-x debian/shim/usr/lib/shim/shimx64.efi + chmod a-x debian/shim/usr/lib/shim/shim$(EFI_ARCH).efi |
