diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-01-06 10:21:01 +1000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-02-20 21:17:04 -0500 |
| commit | 38e0bb26188c1e4c55de0bf322573ea8d4ea0cc2 (patch) | |
| tree | 361bfcf665e9b046a01d5111c359ff5f9b0462ea | |
| parent | 5363c1ea1dda1f144c292420b7979826ea811d5d (diff) | |
| download | meta-virtualization-38e0bb26188c1e4c55de0bf322573ea8d4ea0cc2.tar.gz | |
xen: Fix up architecture specific steps
* Remove version specific sed pattern
* Add 'xen' as an output product instead of just 'xen.gz' as some
architectures do not generate the 'xen.gz'
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
| -rw-r--r-- | recipes-extended/xen/xen.inc | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 54d6ffe9..c8fad6c5 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
| @@ -274,6 +274,8 @@ FILES_${PN}-libfsimage-dev = "${libdir}/libfsimage.so" | |||
| 274 | FILES_${PN}-fsimage = "${libdir}/fs/*/*fsimage.so" | 274 | FILES_${PN}-fsimage = "${libdir}/fs/*/*fsimage.so" |
| 275 | 275 | ||
| 276 | FILES_${PN}-hypervisor = "\ | 276 | FILES_${PN}-hypervisor = "\ |
| 277 | /boot/xen-* \ | ||
| 278 | /boot/xen \ | ||
| 277 | /boot/xen-*.gz \ | 279 | /boot/xen-*.gz \ |
| 278 | /boot/xen.gz \ | 280 | /boot/xen.gz \ |
| 279 | /boot/xen-syms-* \ | 281 | /boot/xen-syms-* \ |
| @@ -656,20 +658,18 @@ EXTRA_OECONF += " \ | |||
| 656 | 658 | ||
| 657 | do_configure() { | 659 | do_configure() { |
| 658 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu | 660 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu |
| 659 | test -d ${S}/tools/include/gnu || mkdir ${S}/tools/include/gnu | ||
| 660 | if ! test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-32.h ; then | 661 | if ! test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-32.h ; then |
| 661 | cat ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-64.h | grep -v stub_bdflush | grep -v stub_getmsg | grep -v stub_putmsg > ${S}/tools/include/gnu/stubs-32.h | 662 | if test -f ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-64.h ; then |
| 662 | echo \#define __stub___kernel_cosl >> ${S}/tools/include/gnu/stubs-32.h | 663 | test -d ${S}/tools/include/gnu || mkdir ${S}/tools/include/gnu |
| 663 | echo \#define __stub___kernel_sinl >> ${S}/tools/include/gnu/stubs-32.h | 664 | cat ${STAGING_DIR_TARGET}/usr/include/gnu/stubs-64.h | grep -v stub_bdflush | grep -v stub_getmsg | grep -v stub_putmsg > ${S}/tools/include/gnu/stubs-32.h |
| 664 | echo \#define __stub___kernel_tanl >> ${S}/tools/include/gnu/stubs-32.h | 665 | echo \#define __stub___kernel_cosl >> ${S}/tools/include/gnu/stubs-32.h |
| 666 | echo \#define __stub___kernel_sinl >> ${S}/tools/include/gnu/stubs-32.h | ||
| 667 | echo \#define __stub___kernel_tanl >> ${S}/tools/include/gnu/stubs-32.h | ||
| 668 | fi | ||
| 665 | fi | 669 | fi |
| 666 | 670 | ||
| 667 | # do configure | 671 | # do configure |
| 668 | oe_runconf | 672 | oe_runconf |
| 669 | |||
| 670 | # seabios needs a patch to specify correct compiler - pull and patch Makefile | ||
| 671 | make -C ${S}/tools/firmware seabios-dir | ||
| 672 | sed -i 's/export HOSTCC.*$(CC)/export HOSTCC ?= $(CC)/g' ${S}/tools/firmware/seabios-dir/Makefile | ||
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | do_compile() { | 675 | do_compile() { |
| @@ -720,5 +720,10 @@ sysroot_stage_all_append() { | |||
| 720 | sysroot_stage_dir ${D}/boot ${SYSROOT_DESTDIR}/kernel | 720 | sysroot_stage_dir ${D}/boot ${SYSROOT_DESTDIR}/kernel |
| 721 | 721 | ||
| 722 | install -d ${DEPLOY_DIR_IMAGE} | 722 | install -d ${DEPLOY_DIR_IMAGE} |
| 723 | install -m 0644 ${D}/boot/xen.gz ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz | 723 | if [ -f ${D}/boot/xen ]; then |
| 724 | install -m 0644 ${D}/boot/xen ${DEPLOY_DIR_IMAGE}/xen-${MACHINE} | ||
| 725 | fi | ||
| 726 | if [ -f ${D}/boot/xen.gz ]; then | ||
| 727 | install -m 0644 ${D}/boot/xen.gz ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz | ||
| 728 | fi | ||
| 724 | } | 729 | } |
