Skip to contentSkip to conversation

Add AArch64 support into util-linux

PATCH Marcin Juszkiewicz 2 participants 2 messages Oct 3, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Attached patch fixed build problem when util-linux is built for AArch64 architecture.

---
 fdisk/fdiskbsdlabel.h |    1 +
 1 file changed, 1 insertion(+)
fdisk/fdiskbsdlabel.h +1 -0
@@ -46,10 +46,11 @@
 
 #define BSD_LINUX_BOOTDIR "/usr/ucb/mdec"
 
 #if defined (__i386__) || defined (__sparc__) || defined (__arm__) || \
     defined (__mips__) || defined (__s390__) || defined (__sh__) || \
+    defined (__aarch64__) || \
     defined(__x86_64__) || defined (__avr32__) || defined(__cris__)
 #define BSD_LABELSECTOR   1
 #define BSD_LABELOFFSET   0
 #elif defined (__alpha__) || defined (__powerpc__) || defined (__ia64__) || defined (__hppa__)
 #define BSD_LABELSECTOR   0
#1 lore raw

+++ Marcin Juszkiewicz [2012-10-03 10:31 +0100]:

Quoted 2 lines

Attached patch fixed build problem when util-linux is built for AArch64 architecture.

Upstream also needs updated config.{sub,guess} from autotools-dev 20120210.1 or later, to make it aware of new arches, including aarch64. Preferably an autoreconf.

Wookey

Signature · 2 lines
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/