diff options
| -rw-r--r-- | recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch | 63 | ||||
| -rw-r--r-- | recipes-extended/xen/xen.inc | 9 | ||||
| -rw-r--r-- | recipes-extended/xen/xen_4.11.0.bb | 1 | ||||
| -rw-r--r-- | recipes-extended/xen/xen_git.bb | 1 |
4 files changed, 70 insertions, 4 deletions
diff --git a/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch new file mode 100644 index 00000000..03c39fe7 --- /dev/null +++ b/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | From d79dcc2002008c58683de82f06c168d6eea57991 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> | ||
| 3 | Date: Fri, 19 Oct 2018 11:01:37 +0200 | ||
| 4 | Subject: [PATCH] python,pygrub: pass DISTUTILS env vars as setup.py args | ||
| 5 | |||
| 6 | Allow to respect the target install dir (PYTHON_SITEPACKAGES_DIR) | ||
| 7 | as well as other parameters set by the OpenEmbedded build system. | ||
| 8 | This is especially useful when the target libdir is not the default one | ||
| 9 | (/usr/lib), but for example /usr/lib64. | ||
| 10 | |||
| 11 | Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> | ||
| 12 | --- | ||
| 13 | tools/pygrub/Makefile | 5 +++-- | ||
| 14 | tools/python/Makefile | 4 ++-- | ||
| 15 | 2 files changed, 5 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile | ||
| 18 | index 536af07932b4..e1c773101412 100644 | ||
| 19 | --- a/tools/pygrub/Makefile | ||
| 20 | +++ b/tools/pygrub/Makefile | ||
| 21 | @@ -10,14 +10,15 @@ INSTALL_LOG = build/installed_files.txt | ||
| 22 | all: build | ||
| 23 | .PHONY: build | ||
| 24 | build: | ||
| 25 | - CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build | ||
| 26 | + CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS) | ||
| 27 | |||
| 28 | .PHONY: install | ||
| 29 | install: all | ||
| 30 | $(INSTALL_DIR) $(DESTDIR)/$(bindir) | ||
| 31 | CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \ | ||
| 32 | setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ | ||
| 33 | - --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force | ||
| 34 | + --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force \ | ||
| 35 | + $(DISTUTILS_INSTALL_ARGS) | ||
| 36 | set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \ | ||
| 37 | "`readlink -f $(DESTDIR)/$(bindir)`" != \ | ||
| 38 | "`readlink -f $(LIBEXEC_BIN)`" ]; then \ | ||
| 39 | diff --git a/tools/python/Makefile b/tools/python/Makefile | ||
| 40 | index 541858e2f886..4d4a344f1d33 100644 | ||
| 41 | --- a/tools/python/Makefile | ||
| 42 | +++ b/tools/python/Makefile | ||
| 43 | @@ -10,7 +10,7 @@ INSTALL_LOG = build/installed_files.txt | ||
| 44 | |||
| 45 | .PHONY: build | ||
| 46 | build: | ||
| 47 | - CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build | ||
| 48 | + CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build $(DISTUTILS_BUILD_ARGS) | ||
| 49 | |||
| 50 | .PHONY: install | ||
| 51 | install: | ||
| 52 | @@ -18,7 +18,7 @@ install: | ||
| 53 | |||
| 54 | CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \ | ||
| 55 | setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ | ||
| 56 | - --root="$(DESTDIR)" --force | ||
| 57 | + --root="$(DESTDIR)" --force $(DISTUTILS_INSTALL_ARGS) | ||
| 58 | |||
| 59 | $(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(LIBEXEC_BIN) | ||
| 60 | $(INSTALL_PROG) scripts/verify-stream-v2 $(DESTDIR)$(LIBEXEC_BIN) | ||
| 61 | -- | ||
| 62 | 2.7.4 | ||
| 63 | |||
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 \ |
diff --git a/recipes-extended/xen/xen_4.11.0.bb b/recipes-extended/xen/xen_4.11.0.bb index b2750667..870caa72 100644 --- a/recipes-extended/xen/xen_4.11.0.bb +++ b/recipes-extended/xen/xen_4.11.0.bb | |||
| @@ -7,6 +7,7 @@ SRC_URI = " \ | |||
| 7 | file://xen-4.11-arm-acpi-fix-string-lengths.patch \ | 7 | file://xen-4.11-arm-acpi-fix-string-lengths.patch \ |
| 8 | file://xen-tools-xenpmd-snprintf.patch \ | 8 | file://xen-tools-xenpmd-snprintf.patch \ |
| 9 | file://xen-disable-sse-before-inlines.patch \ | 9 | file://xen-disable-sse-before-inlines.patch \ |
| 10 | file://0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch \ | ||
| 10 | " | 11 | " |
| 11 | 12 | ||
| 12 | SRC_URI[md5sum] = "cbec0600284921744bc14119f4ed3fff" | 13 | SRC_URI[md5sum] = "cbec0600284921744bc14119f4ed3fff" |
diff --git a/recipes-extended/xen/xen_git.bb b/recipes-extended/xen/xen_git.bb index 81ee1002..0ebd81ce 100644 --- a/recipes-extended/xen/xen_git.bb +++ b/recipes-extended/xen/xen_git.bb | |||
| @@ -13,6 +13,7 @@ S = "${WORKDIR}/git" | |||
| 13 | SRC_URI = " \ | 13 | SRC_URI = " \ |
| 14 | git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ | 14 | git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ |
| 15 | file://xen-disable-sse-before-inlines.patch \ | 15 | file://xen-disable-sse-before-inlines.patch \ |
| 16 | file://0001-python-pygrub-pass-DISTUTILS-env-vars-as-setup.py-ar.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | DEFAULT_PREFERENCE = "-1" | 19 | DEFAULT_PREFERENCE = "-1" |
