Skip to contentSkip to conversation

xen: Only generate long-double-32.h if absent

PATCH In review [email protected] 2 participants 2 messages Aug 26, 2017 – Aug 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Only generate long-double-32.h if absent

From: Christopher Clark <[email protected]>

Only copy long-double-64.h to create long-double-32.h if it is not already present.

Compile tested with both ARM 32-bit build and x86 64-bit build.

---

In fixing the 64-bit clean build, long-double-32.h was populated from the available long-double-64.h . Unfortunately this broke the 32-bit build where long-double-32.h is already present and long-double-64.h is not.

 recipes-extended/xen/xen.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +3 -1
index b429c81..ab69987 100644
@@ -912,7 +912,9 @@ do_configure() {
 
     # do configure
     oe_runconf
-    cp ${STAGING_INCDIR}/bits/long-double-64.h ${STAGING_INCDIR}/bits/long-double-32.h
+    if [ ! -e ${STAGING_INCDIR}/bits/long-double-32.h ]; then
+        cp ${STAGING_INCDIR}/bits/long-double-64.h ${STAGING_INCDIR}/bits/long-double-32.h
+    fi
 }
 
 do_compile() {
Signature · 1 line
2.7.4
#1 lore raw

merged.

Bruce

Quoted 44 lines · On Fri, Aug 25, 2017 at 9:44 PM, <[email protected]> wrote:

From: Christopher Clark <[email protected]>

Only copy long-double-64.h to create long-double-32.h if it is not already present.

Compile tested with both ARM 32-bit build and x86 64-bit build.

---

In fixing the 64-bit clean build, long-double-32.h was populated from the available long-double-64.h . Unfortunately this broke the 32-bit build where long-double-32.h is already present and long-double-64.h is not.

 recipes-extended/xen/xen.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +0 -1
index b429c81..ab69987 100644
@@ -912,7 +912,9 @@ do_configure() {
 
     # do configure
     oe_runconf
-    cp ${STAGING_INCDIR}/bits/long-double-64.h

${STAGING_INCDIR}/bits/long-double-32.h

recipes-extended/xen/xen.inc +2 -0
+    if [ ! -e ${STAGING_INCDIR}/bits/long-double-32.h ]; then
+        cp ${STAGING_INCDIR}/bits/long-double-64.h

${STAGING_INCDIR}/bits/long-double-32.h
+ fi
}

do_compile() {
--
2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"