Skip to contentSkip to conversation

travis: reduce the matrix, add OSX, speed-up builds

PATCH In review Alex Bennée 4 participants 16 messages Mar 23, 2016 – Apr 4, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover travis: reduce the matrix, add OSX, speed-up builds

Here is v2. I've added two new patches, a tweak to configure to accept stems for target lists and then using that to cut the build time where it makes sense. There has been a little tweak to the OSX build and finally I've added r-b tags to the collapse and j3 patches.

Alex Bennée (5):
.travis.yml: collapse the test matrix .travis.yml: enable OSX builds
.travis.yml: make -j3
./configure: accept stems to match a range of targets .travis.yml: reduce target list on core configure tweaks

 .travis.yml | 82 ++++++++++++++++++-------------------------------------------
 configure   | 19 ++++++++++++--
 2 files changed, 41 insertions(+), 60 deletions(-)
Signature · 1 line
2.7.3
#1 lore raw

PATCH v2 1/5 .travis.yml: collapse the test matrix

Remove the concept of TARGETS and build the complete target list for each config combination. Now the matrix is just based on CONFIG stanzas and we use the additional stuff for:

- things that only work on one compiler (sparse, gcov, gprof)
- combos where "make check" fails

---
 .travis.yml | 75 +++++++++++++++----------------------------------------------
 1 file changed, 18 insertions(+), 57 deletions(-)
.travis.yml +18 -57
index 9e5873b..18c04af 100644
@@ -42,17 +42,13 @@ notifications:
 env:
   global:
     - TEST_CMD="make check"
-    - EXTRA_CONFIG=""
   matrix:
-    # Group major targets together with their linux-user counterparts
-    - TARGETS=alpha-softmmu,alpha-linux-user,cris-softmmu,cris-linux-user,m68k-softmmu,m68k-linux-user,microblaze-softmmu,microblazeel-softmmu,microblaze-linux-user,microblazeel-linux-user
-    - TARGETS=arm-softmmu,arm-linux-user,armeb-linux-user,aarch64-softmmu,aarch64-linux-user
-    - TARGETS=i386-softmmu,i386-linux-user,x86_64-softmmu,x86_64-linux-user
-    - TARGETS=mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,mipsn32-linux-user,mipsn32el-linux-user
-    - TARGETS=or32-softmmu,or32-linux-user,ppc-softmmu,ppc64-softmmu,ppcemb-softmmu,ppc-linux-user,ppc64-linux-user,ppc64abi32-linux-user,ppc64le-linux-user
-    - TARGETS=s390x-softmmu,s390x-linux-user,sh4-softmmu,sh4eb-softmmu,sh4-linux-user,sh4eb-linux-user,sparc-softmmu,sparc64-softmmu,sparc-linux-user,sparc32plus-linux-user,sparc64-linux-user,unicore32-softmmu,unicore32-linux-user
-    # Group remaining softmmu only targets into one build
-    - TARGETS=lm32-softmmu,moxie-softmmu,tricore-softmmu,xtensa-softmmu,xtensaeb-softmmu
+    - CONFIG=""
+    - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log"
+    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb"
+    - CONFIG="--enable-modules"
+    - CONFIG="--with-coroutine=ucontext"
+    - CONFIG="--with-coroutine=sigaltstack"
 git:
   # we want to do this ourselves
   submodules: false
@@ -60,65 +56,30 @@ before_install:
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
   - git submodule update --init --recursive
 before_script:
-  - ./configure --target-list=${TARGETS} --enable-debug-tcg ${EXTRA_CONFIG}
+  - ./configure ${CONFIG}
 script:
   - make -j2 && ${TEST_CMD}
 matrix:
-  # We manually include a number of additional build for non-standard bits
   include:
-    # Debug related options
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-debug"
+    # Sparse is GCC only
+    - env: CONFIG="--enable-sparse"
       compiler: gcc
-    # We currently disable "make check"
-    - env: TARGETS=alpha-softmmu
-           EXTRA_CONFIG="--enable-debug --enable-tcg-interpreter"
-           TEST_CMD=""
-      compiler: gcc
-    # Disable a few of the optional features
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb"
-      compiler: gcc
-    # Currently configure doesn't force --disable-pie
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-gprof --enable-gcov --disable-pie"
-      compiler: gcc
-    # Sparse
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-sparse"
+    # gprof/gcov are GCC features
+    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
       compiler: gcc
-    # Modules
-    - env: TARGETS=arm-softmmu,x86_64-softmmu
-           EXTRA_CONFIG="--enable-modules"
-      compiler: gcc
-    # All the trace backends (apart from dtrace)
-    - env: TARGETS=i386-softmmu
-           EXTRA_CONFIG="--enable-trace-backends=log"
-      compiler: gcc
-    # We currently disable "make check" (until 41fc57e44ed regression fixed)
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-trace-backends=simple"
+    # We manually include builds which we disable "make check" for
+    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
            TEST_CMD=""
       compiler: gcc
-    # We currently disable "make check"
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-trace-backends=ftrace"
+    - env: CONFIG="--enable-trace-backends=simple"
            TEST_CMD=""
       compiler: gcc
-    # We currently disable "make check"
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--enable-trace-backends=ust"
+    - env: CONFIG="--enable-trace-backends=ftrace"
            TEST_CMD=""
       compiler: gcc
-    # All the co-routine backends (apart from windows)
-    # We currently disable "make check"
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--with-coroutine=gthread"
+    - env: CONFIG="--enable-trace-backends=ust"
            TEST_CMD=""
       compiler: gcc
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--with-coroutine=ucontext"
-      compiler: gcc
-    - env: TARGETS=x86_64-softmmu
-           EXTRA_CONFIG="--with-coroutine=sigaltstack"
+    - env: CONFIG="--with-coroutine=gthread"
+           TEST_CMD=""
       compiler: gcc
Signature · 1 line
2.7.3
#2 lore raw

PATCH v2 2/5 .travis.yml: enable OSX builds

In reply to Alex Bennée

Travis has support for OSX builds. Making the setup work cleanly involves a little hacking about with the .travis.yml file but rather than make it too messy I've pushed all the "brew" install stuff into a support script called ./scripts/macosx-brew.sh.

Currently only the default ./configure ${CONFIG} is built as I'm not sure what extra coverage would come from the other build stanzas.

---
v2
- brew directly, use POSIX shell logic

---
 .travis.yml | 5 +++++
 1 file changed, 5 insertions(+)
.travis.yml +5 -0
index 18c04af..f02710d 100644
@@ -53,6 +53,8 @@ git:
   # we want to do this ourselves
   submodules: false
 before_install:
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
   - git submodule update --init --recursive
 before_script:
@@ -83,3 +85,6 @@ matrix:
     - env: CONFIG="--with-coroutine=gthread"
            TEST_CMD=""
       compiler: gcc
+    - env: CONFIG=""
+      os: osx
+      compiler: clang
Signature · 1 line
2.7.3
#3 lore raw

Re: [Qemu-devel] [PATCH v2 2/5] .travis.yml: enable OSX builds

Quoted 9 lines · Alex Bennée

Travis has support for OSX builds. Making the setup work cleanly involves a little hacking about with the .travis.yml file but rather than make it too messy I've pushed all the "brew" install stuff into a support script called ./scripts/macosx-brew.sh.

Currently only the default ./configure ${CONFIG} is built as I'm not sure what extra coverage would come from the other build stanzas.

Ping Peter. Does this look OK for you?

Quoted 22 lines

---
v2
- brew directly, use POSIX shell logic

---
 .travis.yml | 5 +++++
 1 file changed, 5 insertions(+)
.travis.yml +2 -0
index 18c04af..f02710d 100644
@@ -53,6 +53,8 @@ git:
   # we want to do this ourselves
   submodules: false
 before_install:
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
   - git submodule update --init --recursive
 before_script:

.travis.yml matrix: · line 90

Quoted 6 lines
.travis.yml +3 -0
@@ -83,3 +85,6 @@ matrix:
     - env: CONFIG="--with-coroutine=gthread"
            TEST_CMD=""
       compiler: gcc
+    - env: CONFIG=""
+      os: osx
+      compiler: clang

--
Alex Bennée

Acked-by
#4 lore raw

Re: [Qemu-devel] [PATCH v2 2/5] .travis.yml: enable OSX builds

Quoted 8 lines · Alex Bennée
Quoted 5 lines · Alex Bennée

Travis has support for OSX builds. Making the setup work cleanly involves a little hacking about with the .travis.yml file but rather than make it too messy I've pushed all the "brew" install stuff into a support script called ./scripts/macosx-brew.sh.

Quoted 6 lines
Quoted 4 lines

Currently only the default ./configure ${CONFIG} is built as I'm not sure what extra coverage would come from the other build stanzas.

Ping Peter. Does this look OK for you?

-- PMM

#5 lore raw

PATCH v2 3/5 .travis.yml: make -j3

In reply to Alex Bennée

The move from Travis VMs to Containers came with a upgrade from 1.5 cores to 2. The received wisdom is -j N+1 means a core can be doing work while other threads wait for IO to complete. This is hard to test on the Travis infrastructure but an initial before/after eyeballing seems to confirm it is an improvement.

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index f02710d..50ac17f 100644
@@ -60,7 +60,7 @@ before_install:
 before_script:
   - ./configure ${CONFIG}
 script:
-  - make -j2 && ${TEST_CMD}
+  - make -j3 && ${TEST_CMD}
 matrix:
   include:
     # Sparse is GCC only
Signature · 1 line
2.7.3
#6 lore raw

PATCH v2 4/5 ./configure: accept stems to match a range of targets

In reply to Alex Bennée

This is useful if you want to build all targets of a given architecture or type. A simple submatch to an real target will add it to the list.

---
 configure | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
configure +17 -2
index b88d0db..ebf8a42 100755
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]
@@ -1639,15 +1640,29 @@ fi
 
 # Check that we recognised the target name; this allows a more
 # friendly error message than if we let it fall through.
+final_target_list=""
 for target in $target_list; do
     case " $default_target_list " in
         *" $target "*)
+            final_target_list="$target $final_target_list"
             ;;
         *)
-            error_exit "Unknown target name '$target'"
+            # Maybe we can match to range of targets?
+            exp="no"
+            for match in $default_target_list; do
+                if test "${match#*$target}" != "$match" ; then
+                    final_target_list="$match $final_target_list"
+                    exp="yes"
+                fi
+            done
+            if test "$exp" = "no"; then
+                error_exit "Unknown target name '$target'"
+            fi
             ;;
     esac
 done
+target_list=$final_target_list
+
 
 # see if system emulation was really requested
 case " $target_list " in
Signature · 1 line
2.7.3
#7 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 5 lines · Alex Bennée
configure +0 -0
index b88d0db..ebf8a42 100755

configure Standard options: · line 1253

Quoted 9 lines
configure +2 -1
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Kind regards,
Sergey

#8 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 10 lines · Sergey Fedorov
Quoted 9 lines · Alex Bennée
configure +0 -1
index b88d0db..ebf8a42 100755
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
Quoted 8 lines

configure Standard options: · line 1253

Quoted 5 lines
configure +2 -0
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell and the like? For example if I do:

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

As the shell picks up file names from the src dir.

Quoted 3 lines

Kind regards,
Sergey

--
Alex Bennée

#9 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 22 lines · Alex Bennée
Quoted 17 lines · Sergey Fedorov
Quoted 5 lines · Alex Bennée
configure +0 -0
index b88d0db..ebf8a42 100755

configure Standard options: · line 1253

Quoted 9 lines
configure +2 -1
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell and the like? For example if I do:

Quoted 7 lines

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

As the shell picks up file names from the src dir.

Of course, it would be necessary to quote it like this:

    ./configure --target-list='arm*'

Kind regards,
Sergey

#10 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 26 lines · Sergey Fedorov
Quoted 25 lines · Alex Bennée
Quoted 17 lines · Sergey Fedorov
Quoted 5 lines · Alex Bennée
configure +0 -0
index b88d0db..ebf8a42 100755

configure Standard options: · line 1253

Quoted 9 lines
configure +2 -1
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell and the like? For example if I do:

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

Quoted 8 lines
Quoted 4 lines

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

As the shell picks up file names from the src dir.

Of course, it would be necessary to quote it like this:

    ./configure --target-list='arm*'

Hmm shell quoting is a black art it seems:

16:04 alex@zen/x86_64 [qemu.git/travis/add-trusty-gce] >./configure --target-list='ar*'

ERROR: Unknown target name 'arch_init.c'

Quoted 3 lines

Kind regards,
Sergey

--
Alex Bennée

#11 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 32 lines · Alex Bennée
Quoted 30 lines · Sergey Fedorov
Quoted 29 lines · Alex Bennée
Quoted 17 lines · Sergey Fedorov
Quoted 5 lines · Alex Bennée
configure +0 -0
index b88d0db..ebf8a42 100755

configure Standard options: · line 1253

Quoted 9 lines
configure +2 -1
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell and the like? For example if I do:

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

As the shell picks up file names from the src dir.

Quoted 8 lines
Quoted 3 lines

Of course, it would be necessary to quote it like this:

    ./configure --target-list='arm*'

Hmm shell quoting is a black art it seems:

16:04 alex@zen/x86_64 [qemu.git/travis/add-trusty-gce] >./configure --target-list='ar*'

ERROR: Unknown target name 'arch_init.c'

Right, it's inherent problem, I think :)

#12 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

Quoted 35 lines · Sergey Fedorov
Quoted 34 lines · Alex Bennée
Quoted 32 lines · Sergey Fedorov
Quoted 22 lines · Alex Bennée
Quoted 17 lines · Sergey Fedorov
Quoted 5 lines · Alex Bennée
configure +0 -0
index b88d0db..ebf8a42 100755

configure Standard options: · line 1253

Quoted 9 lines
configure +2 -1
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build everything)
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets of targets
+                           (e.g. softmmu will match all softmmu targets)
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell and the like? For example if I do:

Quoted 7 lines

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

As the shell picks up file names from the src dir.

Of course, it would be necessary to quote it like this:

Quoted 8 lines
Quoted 6 lines
Quoted 1 line
    ./configure --target-list='arm*'

Hmm shell quoting is a black art it seems:

16:04 alex@zen/x86_64 [qemu.git/travis/add-trusty-gce] >./configure --target-list='ar*'

ERROR: Unknown target name 'arch_init.c'

Right, it's inherent problem, I think :)

Hence my decision to stick with stems ;-)

--
Alex Bennée

#13 lore raw

Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets

24 марта 2016 г. 19:20 "Alex Bennée" <[email protected]>:

Quoted 7 lines
Quoted 6 lines · Sergey Fedorov
Quoted 5 lines · Alex Bennée
Quoted 3 lines · Sergey Fedorov
Quoted 2 lines · Alex Bennée

Sergey Fedorov <[email protected]> writes:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Alex Bennée

configure Standard options: · line 1246

Quoted 6 lines
configure +0 -0
index b88d0db..ebf8a42 100755
@@ -1246,7 +1246,8 @@ Standard options:
   --target-list=LIST       set target list (default: build

everything)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

configure Standard options: · line 1249

Quoted 4 lines
configure +1 -1
 $(echo Available targets: $default_target_list | \
   fold -s -w 53 | sed -e 's/^/                           /')
-
+                           LIST can contain stems to match sets

of targets

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

configure Standard options: · line 1250

Quoted 1 line
configure +1 -0
+                           (e.g. softmmu will match all softmmu

targets)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

configure Standard options: · line 1253

Quoted 3 lines
configure +0 -0
 Advanced options (experts only):
   --source-path=PATH       path of source code [$source_path]
   --cross-prefix=PREFIX    use PREFIX for compile tools

[$cross_prefix]

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Maybe we'd better require user to specify the exact glob patterns in '--target-list' to avoid possible misuse?

Don't you run into problems of escaping glob patterns from the shell

and

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

the like? For example if I do:

12:04 alex@zen/x86_64 [qemu.git/mttcg/base-patches-v2] >./configure --target-list=arm*

ERROR: Unknown target name 'arm-softmmu-config-devices.mak.d'

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

As the shell picks up file names from the src dir.

Of course, it would be necessary to quote it like this:

    ./configure --target-list='arm*'

Hmm shell quoting is a black art it seems:

16:04 alex@zen/x86_64 [qemu.git/travis/add-trusty-gce] >./configure

--target-list='ar*'

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

ERROR: Unknown target name 'arch_init.c'

Right, it's inherent problem, I think :)

Hence my decision to stick with stems ;-)

That is exactly the same problem as if you would like to do:

    find -name '*.[ch]'

It will do the wrong thing if you miss quotes.

Regards,
Sergey

#14 lore raw

PATCH v2 5/5 .travis.yml: reduce target list on core configure tweaks

In reply to Alex Bennée

A number of configure options only really affect the core code and any arch specific stuff should be flushed out by other builds:

- trace-backends, log build is all targets, others can be less
- --disable-build, ensuring disabling stuff doesn't break host
- co-routine, default already built with all, common API
- tcg interpreter is front end agnostic

I've used the ./configure --target-list stem support to do all of one arch type in each reduced build.

---
 .travis.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
.travis.yml +9 -9
index 50ac17f..d13bffc 100644
@@ -45,10 +45,10 @@ env:
   matrix:
     - CONFIG=""
     - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log"
-    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb"
-    - CONFIG="--enable-modules"
-    - CONFIG="--with-coroutine=ucontext"
-    - CONFIG="--with-coroutine=sigaltstack"
+    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --target-list=86"
+    - CONFIG="--enable-modules --target-list=86"
+    - CONFIG="--with-coroutine=ucontext --target-list=arm"
+    - CONFIG="--with-coroutine=sigaltstack --target-list=ppc"
 git:
   # we want to do this ourselves
   submodules: false
@@ -70,19 +70,19 @@ matrix:
     - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
       compiler: gcc
     # We manually include builds which we disable "make check" for
-    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
+    - env: CONFIG="--enable-debug --enable-tcg-interpreter --target-list=mips"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=simple"
+    - env: CONFIG="--enable-trace-backends=simple --target-list=alpha"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=ftrace"
+    - env: CONFIG="--enable-trace-backends=ftrace --target-list=s390"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=ust"
+    - env: CONFIG="--enable-trace-backends=ust --target-list=sparc"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--with-coroutine=gthread"
+    - env: CONFIG="--with-coroutine=gthread --target-list=sh4"
            TEST_CMD=""
       compiler: gcc
     - env: CONFIG=""
Signature · 1 line
2.7.3
Reviewed-by on v2 5/5
#15 lore raw

Re: [Qemu-devel] [PATCH v2 5/5] .travis.yml: reduce target list on core configure tweaks

Quoted 8 lines · Alex Bennée

A number of configure options only really affect the core code and any arch specific stuff should be flushed out by other builds:

- trace-backends, log build is all targets, others can be less
- --disable-build, ensuring disabling stuff doesn't break host
- co-routine, default already built with all, common API
- tcg interpreter is front end agnostic

Quoted 4 lines

I've used the ./configure --target-list stem support to do all of one arch type in each reduced build.

AFAICT compiling extra targets is very unlikely to detect extra problems with those config options.

Quoted 48 lines
---
 .travis.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
.travis.yml +9 -9
index 50ac17f..d13bffc 100644
@@ -45,10 +45,10 @@ env:
   matrix:
     - CONFIG=""
     - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log"
-    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb"
-    - CONFIG="--enable-modules"
-    - CONFIG="--with-coroutine=ucontext"
-    - CONFIG="--with-coroutine=sigaltstack"
+    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --target-list=86"
+    - CONFIG="--enable-modules --target-list=86"
+    - CONFIG="--with-coroutine=ucontext --target-list=arm"
+    - CONFIG="--with-coroutine=sigaltstack --target-list=ppc"
 git:
   # we want to do this ourselves
   submodules: false
@@ -70,19 +70,19 @@ matrix:
     - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
       compiler: gcc
     # We manually include builds which we disable "make check" for
-    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
+    - env: CONFIG="--enable-debug --enable-tcg-interpreter --target-list=mips"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=simple"
+    - env: CONFIG="--enable-trace-backends=simple --target-list=alpha"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=ftrace"
+    - env: CONFIG="--enable-trace-backends=ftrace --target-list=s390"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--enable-trace-backends=ust"
+    - env: CONFIG="--enable-trace-backends=ust --target-list=sparc"
            TEST_CMD=""
       compiler: gcc
-    - env: CONFIG="--with-coroutine=gthread"
+    - env: CONFIG="--with-coroutine=gthread --target-list=sh4"
            TEST_CMD=""
       compiler: gcc
     - env: CONFIG=""
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson