From: Konrad Rzeszutek Wilk Date: Tue, 7 Feb 2017 16:30:35 +0000 (-0500) Subject: Makefile: Build livepatch test-cases. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cd706643e3aa8e88d44e7db94112ae5df335b1bf;p=xentesttools%2Fbootstrap.git Makefile: Build livepatch test-cases. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/Makefile b/Makefile index e9788e1..d57762e 100644 --- a/Makefile +++ b/Makefile @@ -179,6 +179,9 @@ ifeq ($(ARCH),i386) touch xen/xen/xen.gz else $(MAKE) -C xen $(XEN_OPTS) xen -j$$(($(NCPUS) * 2)) + if [ $(XEN_MINOR) -gt 6 ]; then \ + $(MAKE) -C xen/xen $(XEN_OPTS) tests -j$$(($(NCPUS) * 2)); \ + fi endif $(INSTALL_DIR) dist/common/ diff --git a/root_image/Makefile b/root_image/Makefile index d41f128..3f7dcfe 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -945,7 +945,14 @@ xend-install: yajl-depend xen-4.2-depend xen-python-bytecode # prune usr/include after copy rm -rf userspace/usr/include if [ -d userspace/usr/lib/debug ]; then \ - rm -rf userspace/usr/lib/debug/xen*; \ + rm -rf userspace/usr/lib/debug/xen-syms; \ + fi + if [ $(XEN_VERSION) -gt 6 ]; then \ + if [ $(XEN_VERSION) -gt 8 ]; then \ + cp -rdf $(XEN_SRC)/xen/test/livepatch/*.livepatch userspace/usr/lib/debug/; \ + else \ + cp -rdf $(XEN_SRC)/xen/arch/x86/test/*.livepatch userspace/usr/lib/debug/; \ + fi; \ fi ifeq ($(RPM_ARCH), x86_64) if ! test -f userspace/usr/lib64/xen; then \