diff options
| author | Maciej Pijanowski <maciej.pijanowski@3mdeb.com> | 2018-10-19 11:28:01 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-10-22 04:37:01 -0400 |
| commit | ce8f6fe10682d85f7e26ceb3e8ccbc6e01d2b869 (patch) | |
| tree | 43bd3675119217056e10a115f8af82c934c08b33 /recipes-extended/xen/xen.inc | |
| parent | 2672520983841a4e933774e58965f7d15a4d95ad (diff) | |
| download | meta-virtualization-ce8f6fe10682d85f7e26ceb3e8ccbc6e01d2b869.tar.gz | |
xen: fix building with BASELIB=lib64
Many "real" (other then genericx86-64) x86-64 target machine configurations
set BASELIB to lib64. For example the intel-corei7-64 or the AMD
machines.
In such case packaging xen-python fails because items are
installed to /usr/lib/, but FILES_xen-python points to package
/usr/lib64/ items. Exposing the DISTUTILS variables from OE build makes
the python installation somewhat similar to what happens in the distutils
class and python items are installed to the /usr/lib64 as expected.
Another issue was that the xen-efi package was picking up too much stuff
from the /usr/lib64 path on such machines. Being more explicit at least
allows to package things correctly.
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/xen.inc')
| -rw-r--r-- | recipes-extended/xen/xen.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 7efc8df1..26504138 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
| @@ -402,8 +402,7 @@ FILES_${PN}-hypervisor = "\ | |||
| 402 | FILES_${PN}-init-xenstore-dom = "${libdir}/xen/bin/init-xenstore-domain" | 402 | FILES_${PN}-init-xenstore-dom = "${libdir}/xen/bin/init-xenstore-domain" |
| 403 | 403 | ||
| 404 | FILES_${PN}-efi = "\ | 404 | FILES_${PN}-efi = "\ |
| 405 | ${exec_prefix}/lib64 \ | 405 | ${exec_prefix}/lib64/efi/xen* \ |
| 406 | ${exec_prefix}/lib64/xen* \ | ||
| 407 | " | 406 | " |
| 408 | 407 | ||
| 409 | FILES_${PN}-base = "\ | 408 | FILES_${PN}-base = "\ |
| @@ -826,6 +825,8 @@ export XEN_OS = "Linux" | |||
| 826 | # this is used for the header (#!${bindir}/python) of the install python scripts | 825 | # this is used for the header (#!${bindir}/python) of the install python scripts |
| 827 | export PYTHONPATH="${bindir}/python" | 826 | export PYTHONPATH="${bindir}/python" |
| 828 | export ac_cv_path_PYTHONPATH="${bindir}/python" | 827 | export ac_cv_path_PYTHONPATH="${bindir}/python" |
| 828 | export DISTUTILS_BUILD_ARGS | ||
| 829 | export DISTUTILS_INSTALL_ARGS | ||
| 829 | 830 | ||
| 830 | # xen and seabios require HOSTCC and HOSTCXX set to cross-compile | 831 | # xen and seabios require HOSTCC and HOSTCXX set to cross-compile |
| 831 | export HOSTCC="${BUILD_CC}" | 832 | export HOSTCC="${BUILD_CC}" |
| @@ -849,8 +850,8 @@ CPP_append = " ${CPPFLAGS}" | |||
| 849 | CXX_append = " ${CXXFLAGS}" | 850 | CXX_append = " ${CXXFLAGS}" |
| 850 | 851 | ||
| 851 | EXTRA_OECONF += " \ | 852 | EXTRA_OECONF += " \ |
| 852 | --exec-prefix=/usr \ | 853 | --exec-prefix=${prefix} \ |
| 853 | --prefix=/usr \ | 854 | --prefix=${prefix} \ |
| 854 | --host=${HOST_SYS} \ | 855 | --host=${HOST_SYS} \ |
| 855 | --with-systemd=${systemd_unitdir}/system \ | 856 | --with-systemd=${systemd_unitdir}/system \ |
| 856 | --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ | 857 | --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ |
