You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.2 KiB
83 lines
2.2 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../xen-tools/xen-tools.conf |
|
# Copyright (C) 2010 - 2015 The OpenSDE Project |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# Kill -Werror with deadly fire. |
|
hook_add preconf 7 "find . -name '*.mk' -o -name 'Make*' | xargs sed -i -e 's/-Werror//g'" |
|
|
|
hook_add preconf 9 'autoreconf -vfi' |
|
|
|
# Werror removal first part. |
|
var_append confopt ' ' '--disable-werror' |
|
|
|
# disable stuff we do not need |
|
var_append confopt ' ' '--disable-docs' |
|
var_append confopt ' ' '--disable-ocamltools' |
|
var_append confopt ' ' '--disable-qemu-traditional' |
|
|
|
# for now we only support system seabios build by us. |
|
pkginstalled seabios && var_append confopt ' ' '--with-system-seabios=$root/usr/share/seabios/bios.bin' |
|
|
|
# help a bit the cross compile |
|
if atstage cross; then |
|
export XEN_TARGET_ARCH=$arch_machine |
|
export CROSS_COMPILE=$arch_target- |
|
export EXTRA_CFLAGS_XEN_TOOLS="-I$root/usr/include -I $root/include" |
|
export APPEND_LDFLAGS="-L$root/usr/lib -L$root/lib" |
|
export CONFIG_TEST=n |
|
# we do not support crossbuild of stubdoms (yet?) 11/02/2015 karasz |
|
var_append confopt ' ' '--disable-stubdom' |
|
fi |
|
|
|
drop_flags() { |
|
unset CFLAGS |
|
unset LDFLAGS |
|
unset LANG |
|
unset LC_ALL |
|
} |
|
|
|
build_hypervisor() { |
|
drop_flags |
|
echo_warning "Building hypervisor..." |
|
make xen |
|
} |
|
|
|
build_tools() { |
|
drop_flags |
|
echo_warning "Building tools..." |
|
make tools V=1 |
|
} |
|
|
|
build_stubdom() { |
|
drop_flags |
|
echo_warning "Building stub domains..." |
|
make stubdom |
|
} |
|
|
|
build() { |
|
build_hypervisor |
|
build_tools |
|
# we do not support crossbuild of stubdoms (yet?) 11/02/2015 karasz |
|
if ! atstage cross; then |
|
build_stubdom |
|
var_append makeinstopt ' ' 'install-stubdom' |
|
fi |
|
} |
|
|
|
hook_add premake 9 'build' |
|
|
|
makeopt= |
|
|
|
var_append makeinstopt ' ' 'install-xen install-tools' |
|
|
|
|