OpenSDE Packages Database (without history before r20070)
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

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xen-tools/xen-tools.conf
  5. # Copyright (C) 2010 - 2015 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # Kill -Werror with deadly fire.
  16. hook_add preconf 7 "find . -name '*.mk' -o -name 'Make*' | xargs sed -i -e 's/-Werror//g'"
  17. hook_add preconf 9 'autoreconf -vfi'
  18. # Werror removal first part.
  19. var_append confopt ' ' '--disable-werror'
  20. # disable stuff we do not need
  21. var_append confopt ' ' '--disable-docs'
  22. var_append confopt ' ' '--disable-ocamltools'
  23. var_append confopt ' ' '--disable-qemu-traditional'
  24. # for now we only support system seabios build by us.
  25. pkginstalled seabios && var_append confopt ' ' '--with-system-seabios=$root/usr/share/seabios/bios.bin'
  26. # help a bit the cross compile
  27. if atstage cross; then
  28. export XEN_TARGET_ARCH=$arch_machine
  29. export CROSS_COMPILE=$arch_target-
  30. export EXTRA_CFLAGS_XEN_TOOLS="-I$root/usr/include -I $root/include"
  31. export APPEND_LDFLAGS="-L$root/usr/lib -L$root/lib"
  32. export CONFIG_TEST=n
  33. # we do not support crossbuild of stubdoms (yet?) 11/02/2015 karasz
  34. var_append confopt ' ' '--disable-stubdom'
  35. fi
  36. drop_flags() {
  37. unset CFLAGS
  38. unset LDFLAGS
  39. unset LANG
  40. unset LC_ALL
  41. }
  42. build_hypervisor() {
  43. drop_flags
  44. echo_warning "Building hypervisor..."
  45. make xen
  46. }
  47. build_tools() {
  48. drop_flags
  49. echo_warning "Building tools..."
  50. make tools V=1
  51. }
  52. build_stubdom() {
  53. drop_flags
  54. echo_warning "Building stub domains..."
  55. make stubdom
  56. }
  57. build() {
  58. build_hypervisor
  59. build_tools
  60. # we do not support crossbuild of stubdoms (yet?) 11/02/2015 karasz
  61. if ! atstage cross; then
  62. build_stubdom
  63. var_append makeinstopt ' ' 'install-stubdom'
  64. fi
  65. }
  66. hook_add premake 9 'build'
  67. makeopt=
  68. var_append makeinstopt ' ' 'install-xen install-tools'