Re: [RFC kvm-unit-tests PATCH 1/8] configure: make it run-able from outside source tree

2017-04-07 Thread Peter Maydell
On 7 April 2017 at 12:40, Andrew Jones wrote: > On Thu, Apr 06, 2017 at 08:07:20PM +0100, Alex Bennée wrote: >> diff --git a/configure b/configure >> index 8821f37..223809c 100755 >> --- a/configure >> +++ b/configure >> @@ -1,5 +1,6 @@ >> #!/bin/bash >> >> +srcdir=$(cd "$(dirname "$0")"; pwd) >

Re: [RFC kvm-unit-tests PATCH 1/8] configure: make it run-able from outside source tree

2017-04-07 Thread Andrew Jones
On Thu, Apr 06, 2017 at 08:07:20PM +0100, Alex Bennée wrote: > This is a first step to enabling out-of-tree builds for > kvm-unit-tests. When you invoke configure like this: > > ../tree.git/configure [args] > > It will detect we the case and: > > - link ../tree.git/Makefile to the build-dir

[RFC kvm-unit-tests PATCH 1/8] configure: make it run-able from outside source tree

2017-04-06 Thread Alex Bennée
This is a first step to enabling out-of-tree builds for kvm-unit-tests. When you invoke configure like this: ../tree.git/configure [args] It will detect we the case and: - link ../tree.git/Makefile to the build-dir - ensure lib is created with a correct lib/asm - set SRCDIR in the config