]> xenbits.xensource.com Git - people/larsk/xen.git/commit
tools/libs: Fix build following c/s 56dccee3f
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Sep 2019 17:39:14 +0000 (18:39 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Sep 2019 18:00:24 +0000 (19:00 +0100)
commit01ba8f62b618098a8880673e97e73af62c7f51bc
tree462752f0c17c3de44d47d46c29e8bac7f8990c4f
parentc6007be066ed6e954c9694af128367c5b2cd16c8
tools/libs: Fix build following c/s 56dccee3f

Travis reports:

  make subdirs-install
  make[2]: Entering directory `/home/travis/build/andyhhp/xen/tools'
  make[3]: Entering directory `/home/travis/build/andyhhp/xen/tools'
  make -C libs install
  make[4]: Entering directory `/home/travis/build/andyhhp/xen/tools/libs'
  make[5]: Entering directory `/home/travis/build/andyhhp/xen/tools/libs'
  make -C toolcore install
  make[6]: Entering directory `/home/travis/build/andyhhp/xen/tools/libs/toolcore'
  make libs
  make[7]: Entering directory`/home/travis/build/andyhhp/xen/tools/libs/toolcore'
  for i in include/xentoolcore.h include/xentoolcore_internal.h; do \
          gcc -x c -ansi -Wall -Werror -I<snip>/xen/tools/libs/toolcore/../../../tools/include \
                    -S -o /dev/null $i || exit 1; \
                        echo $i; \
                        done >headers.chk.new
  include/xentoolcore_internal.h:30:31: fatal error: _xentoolcore_list.h: No such file or directory
   #include "_xentoolcore_list.h"
                                 ^
  compilation terminated.
  make[7]: *** [headers.chk] Error 1

The problem is that xentoolcore_internal.h includes _xentoolcore_list.h which
hasn't been generated yet.

The toolcore headers.chk rule (unlike the other libraries) had an additional
dependency against $(AUTOINCS), which forced the headers to be generated
first.  Replicate this in the common libs.mk

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libs/libs.mk