intel / XenGT-Preview-xen

20 stars 7 forks source link

building xen and qemu error #11

Open gejun330 opened 9 years ago

gejun330 commented 9 years ago

hi, thanks very much for your work and update. after the latest update, there isn't any connection error. But now still has some errors below, can someone tell me how to solve this?

正克隆到 'seabios-dir-remote.tmp'... remote: Counting objects: 11458, done. remote: Compressing objects: 100% (2714/2714), done. remote: Total 11458 (delta 9226), reused 10940 (delta 8737) 接收对象中: 100% (11458/11458), 2.68 MiB | 12.00 KiB/s, done. 处理 delta 中: 100% (9226/9226), done. 检查连接... 完成。 切换到一个新分支 'dummy' patch -p1 < /root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware/../../tools/firmware/xengt_seabios.patch patching file seabios-dir/src/optionroms.c Hunk #1 succeeded at 428 with fuzz 1 (offset -50 lines). cp seabios-config seabios-dir/.config; make PYTHON=python subdirs-all make[4]: 正在进入目录 /root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware' make[5]: 正在进入目录/root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware' make -C seabios-dir all Working around non-functional -combine make[6]: 正在进入目录 /root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware/seabios-dir-remote' Compiling IASL out/acpi-dsdt.hex Compiling IASL out/ssdt-proc.hex make[7]: warning: jobserver unavailable: using -j1. Add+' to parent make rule. Compiling IASL out/ssdt-pcihp.hex ASL Input: out/ssdt-proc.dsl.i - 35 lines, 765 bytes, 8 keywords AML Output: out/ssdt-proc.aml - 120 bytes, 6 named objects, 2 executable opcodes Listing File: out/ssdt-proc.lst - 2619 bytes Hex Dump: out/ssdt-proc.hex - 1452 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations out/ssdt-pcihp.dsl.i 12: Method (_EJ0, 1) { Return(PCEJ(0x01)) } Name (_SUN, 0x01) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 17: Method (_EJ0, 1) { Return(PCEJ(0x02)) } Name (_SUN, 0x02) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 22: Method (_EJ0, 1) { Return(PCEJ(0x03)) } Name (_SUN, 0x03) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 27: Method (_EJ0, 1) { Return(PCEJ(0x04)) } Name (_SUN, 0x04) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 32: Method (_EJ0, 1) { Return(PCEJ(0x05)) } Name (_SUN, 0x05) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 37: Method (_EJ0, 1) { Return(PCEJ(0x06)) } Name (_SUN, 0x06) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 42: Method (_EJ0, 1) { Return(PCEJ(0x07)) } Name (_SUN, 0x07) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 47: Method (_EJ0, 1) { Return(PCEJ(0x08)) } Name (_SUN, 0x08) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 52: Method (_EJ0, 1) { Return(PCEJ(0x09)) } Name (_SUN, 0x09) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 57: Method (_EJ0, 1) { Return(PCEJ(0x0a)) } Name (_SUN, 0x0a) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 62: Method (_EJ0, 1) { Return(PCEJ(0x0b)) } Name (_SUN, 0x0b) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 67: Method (_EJ0, 1) { Return(PCEJ(0x0c)) } Name (_SUN, 0x0c) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 72: Method (_EJ0, 1) { Return(PCEJ(0x0d)) } Name (_SUN, 0x0d) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 77: Method (_EJ0, 1) { Return(PCEJ(0x0e)) } Name (_SUN, 0x0e) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 82: Method (_EJ0, 1) { Return(PCEJ(0x0f)) } Name (_SUN, 0x0f) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 87: Method (_EJ0, 1) { Return(PCEJ(0x10)) } Name (_SUN, 0x10) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 92: Method (_EJ0, 1) { Return(PCEJ(0x11)) } Name (_SUN, 0x11) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 97: Method (_EJ0, 1) { Return(PCEJ(0x12)) } Name (_SUN, 0x12) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 102: Method (_EJ0, 1) { Return(PCEJ(0x13)) } Name (_SUN, 0x13) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 107: Method (_EJ0, 1) { Return(PCEJ(0x14)) } Name (_SUN, 0x14) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 112: Method (_EJ0, 1) { Return(PCEJ(0x15)) } Name (_SUN, 0x15) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 117: Method (_EJ0, 1) { Return(PCEJ(0x16)) } Name (_SUN, 0x16) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 122: Method (_EJ0, 1) { Return(PCEJ(0x17)) } Name (_SUN, 0x17) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 127: Method (_EJ0, 1) { Return(PCEJ(0x18)) } Name (_SUN, 0x18) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 132: Method (_EJ0, 1) { Return(PCEJ(0x19)) } Name (_SUN, 0x19) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 137: Method (_EJ0, 1) { Return(PCEJ(0x1a)) } Name (_SUN, 0x1a) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 142: Method (_EJ0, 1) { Return(PCEJ(0x1b)) } Name (_SUN, 0x1b) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 147: Method (_EJ0, 1) { Return(PCEJ(0x1c)) } Name (_SUN, 0x1c) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 152: Method (_EJ0, 1) { Return(PCEJ(0x1d)) } Name (_SUN, 0x1d) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 157: Method (_EJ0, 1) { Return(PCEJ(0x1e)) } Name (_SUN, 0x1e) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

out/ssdt-pcihp.dsl.i 162: Method (_EJ0, 1) { Return(PCEJ(0x1f)) } Name (_SUN, 0x1f) } Warning 3104 - Reserved method should not return a value ^ (_EJ0)

ASL Input: out/ssdt-pcihp.dsl.i - 231 lines, 8975 bytes, 254 keywords AML Output: out/ssdt-pcihp.aml - 1646 bytes, 130 named objects, 124 executable opcodes Listing File: out/ssdt-pcihp.lst - 38613 bytes Hex Dump: out/ssdt-pcihp.hex - 15779 bytes

Compilation complete. 0 Errors, 31 Warnings, 0 Remarks, 3 Optimizations out/acpi-dsdt.dsl.i 135: Method (_CRS, 0) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 264: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 293: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 309: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 337: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 364: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 391: Method (_CRS, 0, NotSerialized) Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

out/acpi-dsdt.dsl.i 453: Method (IQCR, 1, NotSerialized) { Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

ASL Input: out/acpi-dsdt.dsl.i - 612 lines, 22546 bytes, 326 keywords AML Output: out/acpi-dsdt.aml - 4648 bytes, 163 named objects, 163 executable opcodes Listing File: out/acpi-dsdt.lst - 147194 bytes Hex Dump: out/acpi-dsdt.hex - 43904 bytes

Compilation complete. 0 Errors, 0 Warnings, 8 Remarks, 243 Optimizations Build Kconfig config file Compiling whole program out/ccode32flat.o Compiling whole program out/code32seg.o Compiling whole program out/ccode16.o Compiling to assembler out/asm-offsets.s Generating offset file out/asm-offsets.h Compiling (16bit) out/romlayout.o Building ld scripts Version: rel-1.7.1-3-g3a28511-dirty-20141222_153940-rj-B85N-PHOENIX Traceback (most recent call last): File "./tools/layoutrom.py", line 630, in main() File "./tools/layoutrom.py", line 607, in main info16 = parseObjDump(infile16, '16') File "./tools/layoutrom.py", line 538, in parseObjDump relocsection = sectionmap[sectionname] KeyError: '.text.asm.out/../src/smp.c.77' make[6]: * [out/romlayout16.lds] 错误 1 make[6]:正在离开目录 `/root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware/seabios-dir-remote' make[5]: * [subdir-all-seabios-dir] 错误 2 make[5]:正在离开目录/root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware' make[4]: **\* [subdirs-all] 错误 2 make[4]:正在离开目录/root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware' make[3]: [all] 错误 2 make[3]:正在离开目录`/root/test1/XenGT-Preview-xen/xen-vgt/tools/firmware' make[2]: \ [subdir-install-firmware] 错误 2 make[2]:正在离开目录 /root/test1/XenGT-Preview-xen/xen-vgt/tools' make[1]: *** [subdirs-install] 错误 2 make[1]:正在离开目录/root/test1/XenGT-Preview-xen/xen-vgt/tools' make: *\ [install-tools] 错误 2

vmmqa commented 9 years ago

which command invokes these error? have you done any clean up? is it fine to try this 3.3 Building Xen and Qemu again after re-installing the repos? if it still does NOT work, please provide the output of env command and Config.mk file at your side.

gejun330 commented 9 years ago

"make -j8 xen tools" invokes these error.

I just tried all this 3.3 Building Xen and Qemu after re-installing the repos, and invokes these error.

here is the output of env: root@rj-B85N-PHOENIX:~# env XDG_VTNR=7 SSH_AGENT_PID=1865 XDG_SESSION_ID=c1 CLUTTER_IM_MODULE=xim SELINUX_INIT=YES XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/root SESSION=ubuntu GPG_AGENT_INFO=/run/user/0/keyring-Ei0DCP/gpg:0:1 XDG_MENU_PREFIX=gnome- SHELL=/bin/bash VTE_VERSION=3409 TERM=xterm SSH_AGENT_LAUNCHER=upstart WINDOWID=69206027 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/0/1554 GNOME_KEYRING_CONTROL=/run/user/0/keyring-Ei0DCP GTK_MODULES=overlay-scrollbar:unity-gtk-module USER=root LSCOLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.axa=00;36:.oga=00;36:.spx=00;36:_.xspf=00;36: XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 SSH_AUTH_SOCK=/run/user/0/keyring-Ei0DCP/ssh DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path SESSION_MANAGER=local/rj-B85N-PHOENIX:@/tmp/.ICE-unix/1935,unix/rj-B85N-PHOENIX:/tmp/.ICE-unix/1935 XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games DESKTOP_SESSION=ubuntu QT_IM_MODULE=xim QT_QPA_PLATFORMTHEME=appmenu-qt5 JOB=dbus PWD=/root XMODIFIERS=@im=fcitx LANG=zh_CN.UTF-8 MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path UBUNTU_MENUPROXY=1 IM_CONFIG_PHASE=1 COMPIZ_CONFIG_PROFILE=ubuntu GDMSESSION=ubuntu SESSIONTYPE=gnome-session SHLVL=1 XDG_SEAT=seat0 HOME=/root LANGUAGE=zh_CN:zh GNOME_DESKTOP_SESSION_ID=this-is-deprecated LOGNAME=root COMPIZ_BIN_PATH=/usr/bin/ QT4_IM_MODULE=fcitx XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-j3iuTG6GMN LESSOPEN=| /usr/bin/lesspipe %s INSTANCE= TEXTDOMAIN=im-config XDG_RUNTIME_DIR=/run/user/0 DISPLAY=:0 XDG_CURRENT_DESKTOP=Unity GTK_IM_MODULE=fcitx LESSCLOSE=/usr/bin/lesspipe %s %s TEXTDOMAINDIR=/usr/share/locale/ COLORTERM=gnome-terminal XAUTHORITY=/root/.Xauthority

_=/usr/bin/env

here is Config.mk file:

-- mode: Makefile; --

ifeq ($(filter /%,$(XEN_ROOT)),) $(error XEN_ROOT must be absolute) endif

fallback for older make

realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))

-include $(XEN_ROOT)/.config

A debug build of Xen and tools?

debug ?= n debug_symbols ?= $(debug)

Test coverage support

coverage ?= n

XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \ -e s/i86pc/x86_32/ -e s/amd64/x8664/ \ -e s/armv7./arm32/ -e s/armv8._/arm64/)

XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH) XEN_OS ?= $(shell uname -s)

CONFIG_$(XEN_OS) := y

SHELL ?= /bin/sh

Tools to run on system hosting the build

HOSTCC = gcc HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing

DISTDIR ?= $(XEN_ROOT)/dist DESTDIR ?= /

Allow phony attribute to be listed as dependency rather than fake target

.PHONY: .phony

Use Clang/LLVM instead of GCC?

clang ?= n ifeq ($(clang),n) gcc := y else gcc := n endif

include $(XEN_ROOT)/config/$(XEN_OS).mk include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk

SHAREDIR ?= $(PREFIX)/share DOCDIR ?= $(SHAREDIR)/doc/xen MANDIR ?= $(SHAREDIR)/man BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d

arguments: variable, common path part, path to test, if yes, if no

define setvar_dir ifndef $(1) ifneq (,$(wildcard $(2)$(3))) $(1) ?= $(2)$(4) else $(1) ?= $(2)$(5) endif endif endef

See distro_mapping.txt for other options

$(eval $(call setvar_dir,CONFIG_LEAF_DIR,,/etc/sysconfig,sysconfig,default)) $(eval $(call setvar_dir,SUBSYS_DIR,/var/run,/subsys,/subsys,)) $(eval $(call setvar_dir,INITD_DIR,/etc,/rc.d/init.d,/rc.d/init.d,/init.d))

ifneq ($(EXTRA_PREFIX),) EXTRA_INCLUDES += $(EXTRA_PREFIX)/include EXTRA_LIB += $(EXTRA_PREFIX)/lib endif

PYTHON ?= python PYTHON_PREFIX_ARG ?= --prefix="$(PREFIX)"

The above requires that PREFIX contains no spaces. This variable is here

to permit the user to set PYTHON_PREFIX_ARG to '' to workaround this bug:

https://bugs.launchpad.net/ubuntu/+bug/362570

cc-option: Check if compiler supports first option, else fall back to second.

#

This is complicated by the fact that unrecognised -Wno-* options:

(a) are ignored unless the compilation emits a warning; and

(b) even then produce a warning rather than an error

To handle this we do a test compile, passing the option-under-test, on a code

fragment that will always produce a warning (integer assigned to pointer).

We then grep for the option-under-test in the compiler's output, the presence

of which would indicate an "unrecognized command-line option" warning/error.

#

Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)

cc-option = $(shell if test -z "echo 'void*p=1;' | \ $(1) $(2) -S -o /dev/null -xc - 2>&1 | grep -- $(2) -"; \ then echo "$(2)"; else echo "$(3)"; fi ;)

cc-option-add: Add an option to compilation flags, but only if supported.

Usage: $(call cc-option-add CFLAGS,CC,-march=winchip-c6)

cc-option-add = $(eval $(call cc-option-add-closure,$(1),$(2),$(3))) define cc-option-add-closure ifneq ($$(call cc-option,$$($(2)),$(3),n),n) $(1) += $(3) endif endef

cc-options-add = $(foreach o,$(3),$(call cc-option-add,$(1),$(2),$(o)))

cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'.

Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)

cc-ver = $(shell if [ $$(($(1) -dumpversion | awk -F. \ '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}')) -ge $$(($(2))) ]; \ then echo y; else echo n; fi ;)

cc-ver-check: Check compiler is at least specified version, else fail.

Usage: $(call cc-ver-check,CC,0x030400,"Require at least gcc-3.4")

cc-ver-check = $(eval $(call cc-ver-check-closure,$(1),$(2),$(3))) define cc-ver-check-closure ifeq ($$(call cc-ver,$$($(1)),$(2)),n) override $(1) = echo "*\ FATAL BUILD ERROR: "$(3) >&2; exit 1; cc-option := n endif endef

Require GCC v4.1+

check-$(gcc) = $(call cc-ver-check,CC,0x040100,"Xen requires at least gcc-4.1") $(eval $(check-y))

define buildmakevars2shellvars export PREFIX="$(PREFIX)"; \ export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)"; \ export XEN_ROOT="$(XEN_ROOT)" endef

#

Compare $(1) and $(2) and replace $(2) with $(1) if they differ

#

Typically $(1) is a newly generated file and $(2) is the target file

being regenerated. This prevents changing the timestamp of $(2) only

due to being auto regenereated with the same contents.

define move-if-changed if ! cmp -s $(1) $(2); then mv -f $(1) $(2); else rm -f $(1); fi endef

buildmakevars2file = $(eval $(call buildmakevars2file-closure,$(1))) define buildmakevars2file-closure .PHONY: genpath genpath: rm -f $(1).tmp; \ $(foreach var, \ SBINDIR BINDIR LIBEXEC LIBDIR SHAREDIR PRIVATE_BINDIR \ XENFIRMWAREDIR XEN_CONFIG_DIR XEN_SCRIPT_DIR XEN_LOCK_DIR \ XEN_RUN_DIR XEN_PAGING_DIR, \ echo "$(var)=\"$($(var))\"" >>$(1).tmp;) \ $(call move-if-changed,$(1).tmp,$(1)) endef

ifeq ($(debug_symbols),y) CFLAGS += -g endif

CFLAGS += -fno-strict-aliasing

CFLAGS += -std=gnu99

CFLAGS += -Wall -Wstrict-prototypes

Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'

and is over-zealous with the printf format lint

and is a bit too fierce about unused return values

CFLAGS-$(clang) += -Wno-parentheses -Wno-format -Wno-unused-value

$(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement) $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement) $(call cc-option-add,CFLAGS,CC,-Wno-unused-but-set-variable) $(call cc-option-add,CFLAGS,CC,-Wno-unused-local-typedefs)

LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i)) LDFLAGS += $(foreach i, $(PREPEND_LIB), -L$(i)) CFLAGS += $(foreach i, $(PREPEND_INCLUDES), -I$(i)) APPEND_LDFLAGS += $(foreach i, $(APPEND_LIB), -L$(i)) APPEND_CFLAGS += $(foreach i, $(APPEND_INCLUDES), -I$(i))

EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all EMBEDDED_EXTRA_CFLAGS += -fno-exceptions

Enable XSM security module (by default, Flask).

XSM_ENABLE ?= n FLASK_ENABLE ?= $(XSM_ENABLE)

XEN_EXTFILES_URL=http://xenbits.xen.org/xen-extfiles

All the files at that location were downloaded from elsewhere on

the internet. The original download URL is preserved as a comment

near the place in the Xen Makefiles where the file is used.

ifeq ($(GIT_HTTP),y) QEMU_REMOTE=http://xenbits.xen.org/git-http/qemu-xen-4.3-testing.git else QEMU_REMOTE=git://xenbits.xen.org/qemu-xen-4.3-testing.git endif

ifeq ($(GIT_HTTP),y) OVMF_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/ovmf.git QEMU_UPSTREAM_URL ?= $(XEN_ROOT)/tools/qemu-xen SEABIOS_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/seabios.git else OVMF_UPSTREAM_URL ?= git://xenbits.xen.org/ovmf.git QEMU_UPSTREAM_URL ?= $(XEN_ROOT)/tools/qemu-xen SEABIOS_UPSTREAM_URL ?= git://xenbits.xen.org/seabios.git endif OVMF_UPSTREAM_REVISION ?= b0855f925c6e2e0b21fbb03fab4b5fb5b6876871

QEMU_UPSTREAM_REVISION ?= qemu-xen-4.3.0

QEMU_UPSTREAM_REVISION ?= 0280685a1a2f769b45946e44162e6ceacb7da3da SEABIOS_UPSTREAM_TAG ?= 3a28511b46f0c2af5fae1b6ed2b0c19d7913cee3

Wed Jun 26 16:30:45 2013 +0100

xen: Don't perform SMP setup.

ETHERBOOT_NICS ?= rtl8139 8086100e

Specify which qemu-dm to use. This may be `ioemu' to use the old

Mercurial in-tree version, or a local directory, or a git URL.

CONFIG_QEMU ?= pwd/$(XEN_ROOT)/../qemu-xen.git

CONFIG_QEMU ?= $(QEMU_REMOTE)

QEMU_TAG ?= xen-4.3.1

Thu Jul 25 08:11:55 2013 +0000

passthrough: Correctly expose PCH ISA bridge for IGD passthrough

Short answer -- do not enable this unless you know what you are

doing and are prepared for some pain.

CONFIG_TESTS ?= y