On 30 November 2015 at 11:31, Tianon Gravi <tia...@debian.org> wrote:
> Oh nice; since it's working in QEMU, I'm personally all for arch-enablement! 
> :D

Hmm, I tried compiling on an arm64 porterbox, and got the following:

make[3]: Entering directory '/home/tianon/refind/libeg'
/usr/bin/gcc -I. -I./../include -I/usr/include/efi
-I/usr/include/efi/aarch64 -I/usr/include/efi/protocol -I../include
-I../refind -I../libeg -DCONFIG_aarch64 -D__MAKEWITH_GNUEFI   -O2
-fno-strict-aliasing -fno-stack-protector -fpic -fshort-wchar
-mno-red-zone -Wall -c screen.c -o screen.o
gcc: error: unrecognized command line option '-mno-red-zone'
../Make.common:89: recipe for target 'screen.o' failed

The only changes I've applied over what's in master right now are:

diff --git a/debian/control b/debian/control
index 3c130f3..7ca3fa4 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Vcs-Browser:
https://anonscm.debian.org/cgit/collab-maint/refind.git
 Vcs-Git: git://anonscm.debian.org/collab-maint/refind.git

 Package: refind
-Architecture: amd64 i386
+Architecture: amd64 arm64 i386
 Depends: efibootmgr, openssl, parted, ${misc:Depends}
 Description: boot manager for EFI-based computers
  A graphical boot manager for EFI- and UEFI-based computers, such as all
diff --git a/debian/rules b/debian/rules
index 6f9c7f2..e18c5c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,10 +9,14 @@ else
 ifeq (i386, $(DEB_HOST_ARCH_CPU))
  EFI_ARCH := ia32
 else
+ifeq (arm64, $(DEB_HOST_ARCH_CPU))
+ EFI_ARCH := aa64
+else
  $(warning EFI architecture for $(DEB_HOST_ARCH_CPU) is unknown)
  EFI_ARCH := $(DEB_HOST_ARCH_CPU)
 endif
 endif
+endif

 %:
  dh $@

So maybe we should hold off on that bit until we're sure it's working
more generically? (unless there's something obvious I missed O:) )

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4

Reply via email to