]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
xvisor: fix build on AArch64
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 20:30:55 +0000 (22:30 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 19 Jul 2017 22:02:29 +0000 (00:02 +0200)
commitf887589e3ecc92b73a991f5dd52e7bafab302e2c
tree3c545795b0e74c9db70fae6d9802d486a016ebeb
parent711a1eb61a7f71b28e0af15acaadf344cf119b2f
xvisor: fix build on AArch64

Xvisor was failing to build on AArch64 with:

package/xvisor/xvisor.mk:60: *** No Xvisor defconfig name specified, check your BR2_PACKAGE_XVISOR_DEFCONFIG setting.  Stop.

The first problem is that the Config.in file had a typo: it was using
BR2_AARCH64 instead of BR2_aarch64, and therefore the
BR2_PACKAGE_XVISOR_DEFCONFIG variable had no value.

Once this is fixed, another problem occurs: the ARCH variable needs to
be specified as "arm" for XVisor, for both ARM and AArch64. Therefore,
a XVISOR_ARCH variable is introduced, which is calculated according to
the Buildroot configuration options. Only x86-64, arm and aarch64 are
supported by Xvisor currently, so it remains simple.

Fixes:

  http://autobuild.buildroot.net/results/1719a63ff257f13634a06a14327abfb327984101/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit 117fd5dfbc756c4f2b4aef97fc2b568528c66df7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/xvisor/Config.in
package/xvisor/xvisor.mk