diff options
Diffstat (limited to 'recipes-extended/xen/xen.inc')
-rw-r--r-- | recipes-extended/xen/xen.inc | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 789fd343..86508ff4 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -731,7 +731,21 @@ python () { | |||
731 | d.setVar('XSM_ENABLED', '0') | 731 | d.setVar('XSM_ENABLED', '0') |
732 | } | 732 | } |
733 | 733 | ||
734 | do_configure() { | 734 | do_post_patch() { |
735 | # fixup AS/CC/CCP/etc variable within StdGNU.mk | ||
736 | for i in LD CC CPP CXX; do | ||
737 | sed -i "s/^\($i\s\s*\).*=/\1?=/" ${S}/config/StdGNU.mk | ||
738 | done | ||
739 | # fixup environment passing in some makefiles | ||
740 | sed -i 's#\(\w*\)=\(\$.\w*.\)#\1="\2"#' ${S}/tools/firmware/Makefile | ||
741 | |||
742 | # libsystemd-daemon -> libsystemd for newer systemd versions | ||
743 | sed -i 's#libsystemd-daemon#libsystemd#' ${S}/tools/configure | ||
744 | } | ||
745 | |||
746 | addtask post_patch after do_patch before do_configure | ||
747 | |||
748 | do_stubs() { | ||
735 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu | 749 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu |
736 | if ! test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-32.h ; then | 750 | if ! test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-32.h ; then |
737 | if test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-64.h ; then | 751 | if test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-64.h ; then |
@@ -742,6 +756,11 @@ do_configure() { | |||
742 | echo \#define __stub___kernel_tanl >> ${S}/tools/include/gnu/stubs-32.h | 756 | echo \#define __stub___kernel_tanl >> ${S}/tools/include/gnu/stubs-32.h |
743 | fi | 757 | fi |
744 | fi | 758 | fi |
759 | } | ||
760 | |||
761 | addtask stubs after do_patch before do_configure | ||
762 | |||
763 | do_configure() { | ||
745 | 764 | ||
746 | #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually | 765 | #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually |
747 | if [ "${XSM_ENABLED}" = "1" ]; then | 766 | if [ "${XSM_ENABLED}" = "1" ]; then |