diff mbox

[kvm-unit-tests] build: fix out of tree make standalone

Message ID 20180326113804.13979-1-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones March 26, 2018, 11:38 a.m. UTC
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

Comments

Radim Krčmář March 28, 2018, 8:11 p.m. UTC | #1
2018-03-26 13:38+0200, Andrew Jones:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---

Wow, have you had an actual use for that?

Applied, thanks.
Andrew Jones March 29, 2018, 9:14 a.m. UTC | #2
On Wed, Mar 28, 2018 at 10:11:02PM +0200, Radim Krčmář wrote:
> 2018-03-26 13:38+0200, Andrew Jones:
> > Signed-off-by: Andrew Jones <drjones@redhat.com>
> > ---
> 
> Wow, have you had an actual use for that?

 mkdir -p build/arm build/aarch64 tests
 cd build
 for a in arm aarch64; do
   cd $a
   /path/to/kvm-unit-tests/configure --arch=$a --cross-prefix=$a-linux-gnu-
   make standalone
   mv tests ../../tests/$a
   cd ..
 done

Of course I just made that up since I usually don't do out of
tree builds, nor standalone builds, nor build arm at all, but
it seems reasonable for someone to do :-)

> 
> Applied, thanks.

Thanks,
drew
diff mbox

Patch

diff --git a/configure b/configure
index dd9d36199194..df8581e3a906 100755
--- a/configure
+++ b/configure
@@ -157,6 +157,9 @@  if test ! -e Makefile; then
 
     echo "linking scripts..."
     ln -sf "$srcdir/scripts"
+
+    echo "linking errata.txt..."
+    ln -sf "$srcdir/errata.txt"
 fi
 
 # link lib/asm for the architecture