Skip to contentSkip to conversation

v86d: Accept aarch64 as build host

PATCH In review Khem Raj 2 participants 4 messages Jul 9, 2016 – Jul 10, 2016 2 messages not in the archive

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 v86d: Accept aarch64 as build host

---
 meta/recipes-bsp/v86d/v86d/aarch64-host.patch | 18 ++++++++++++++++++
 meta/recipes-bsp/v86d/v86d_0.1.10.bb          |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-bsp/v86d/v86d/aarch64-host.patch
meta/recipes-bsp/v86d/v86d/aarch64-host.patch new file +18 -0
new file mode 100644
index 0000000..701fed7
@@ -0,0 +1,18 @@
+Accept aarch64 as valid build host
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: v86d-0.1.10/configure
+===================================================================
+--- v86d-0.1.10.orig/configure
++++ v86d-0.1.10/configure
+@@ -26,7 +26,7 @@ copt_x86emu_test()
+ 	local m=`uname -m`
+ 	if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" = "i386" ]; then
+ 		echo "n";
+-	elif [ "$m" = "x86_64" ]; then
++	elif [ "$m" = "x86_64" -o "$m" = "aarch64" ]; then
+ 		echo "y";
+ 	else
+ 		echo "It looks like your architecture '$m' isn't supported by this version of v86d." >&2
meta/recipes-bsp/v86d/v86d_0.1.10.bb +3 -1
index f502072..1046d63 100644
@@ -13,7 +13,9 @@ SRC_URI = "http://distfiles.gentoo.org/distfiles/${BP}.tar.bz2 \
            file://Update-x86emu-from-X.org.patch \
            file://fbsetup \
            file://uvesafb.conf \
-           file://ar-from-env.patch"
+           file://ar-from-env.patch \
+           file://aarch64-host.patch \
+"
 
 SRC_URI[md5sum] = "51c792ba7b874ad8c43f0d3da4cfabe0"
 SRC_URI[sha256sum] = "634964ae18ef68c8493add2ce150e3b4502badeb0d9194b4bd81241d25e6735c"
Signature · 1 line
2.9.0
#1 lore raw

meta/recipes-bsp/v86d/v86d/aarch64-host.patch line 17

Quoted 9 lines · Khem Raj
(quoted diff) +2 -0
+       local m=`uname -m`
+       if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" =

"i386" ]; then

meta/recipes-bsp/v86d/v86d/aarch64-host.patch new file +5 -0
+               echo "n";
+-      elif [ "$m" = "x86_64" ]; then
++      elif [ "$m" = "x86_64" -o "$m" = "aarch64" ]; then
+               echo "y";
+       else

Surely this entire block is wrong for cross-compilation - looking at uname to determine what to build for the target?

Ross

A message that is not in the archive (sent off-list or not yet received): CAMKF1spk0f9xpNUUaqpLvx4aAPZ0cAU9NgG8eYLPtC7ziBDU2g@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAMKF1sq1oH4c96XyTX1CK7pZgLYgjHEQKmjJ4ndS9GyV4A1zZg@mail.gmail.com

author
#4 lore raw
Quoted 6 lines · Ross

Review

Quoted 3 lines · Khem Raj
(quoted diff) +2 -0
+       local m=`uname -m`
+       if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" =

"i386" ]; then

Quoted 8 lines

meta/recipes-bsp/v86d/v86d/aarch64-host.patch line 17

Quoted 5 lines
meta/recipes-bsp/v86d/v86d/aarch64-host.patch new file +5 -0
+               echo "n";
+-      elif [ "$m" = "x86_64" ]; then
++      elif [ "$m" = "x86_64" -o "$m" = "aarch64" ]; then
+               echo "y";
+       else

Surely this entire block is wrong for cross-compilation - looking at

uname to determine what to build for the target?

Yes it is however the recipe is limited to x86 and now that we add a non x86 build host this is a compromise I came up with. Hopefully we wont have folks adding host architectures to Build oe on so regularly. Otherwise we wont need cross compiling ;)

Quoted 2 lines

Ross

#5 lore raw
Quoted 5 lines · Khem Raj

Yes it is however the recipe is limited to x86 and now that we add a non x86 build host this is a compromise I came up with. Hopefully we wont have folks adding host architectures to Build oe on so regularly. Otherwise we wont need cross compiling ;)

Actually looked at the recipe and I see we override this value anyway, so ignore me. :)

Ross