Skip to contentSkip to conversation

site/risc-v: Cache common variables to build libIDL

PATCH Superseded Khem Raj 2 participants 3 messages Mar 20, 2018 RISC-V

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 site/risc-v: Cache common variables to build libIDL

These variables force runtime tests during configure they are already cached for other architectures

---
Changes from v1 -> v2:
- Drop libIDL specific setting since they need to be in meta-gnome

 meta/site/riscv32-linux | 10 ++++++++++
 meta/site/riscv64-linux |  5 +++++
 2 files changed, 15 insertions(+)
meta/site/riscv32-linux +10 -0
index 138aeb0a11..fc5b99d147 100644
@@ -1,6 +1,16 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=4
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
+glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24}
+glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8}
+glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=4}
+glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=4}
+glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=4}
 
 # startup-notification
 lf_cv_sane_realloc=${lf_cv_sane_realloc=yes}
meta/site/riscv64-linux +5 -0
index 138aeb0a11..38bc5f044d 100644
@@ -1,3 +1,8 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=8
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
Signature · 1 line
2.16.2
#1 lore raw

Are the sizeof values actually needed, or are they copy/pasted from another site? autoconf hasn't need to run code to do sizeof for a *long* time.

Ross

Quoted 55 lines · Khem Raj

These variables force runtime tests during configure they are already cached for other architectures

---
Changes from v1 -> v2:
- Drop libIDL specific setting since they need to be in meta-gnome

 meta/site/riscv32-linux | 10 ++++++++++
 meta/site/riscv64-linux |  5 +++++
 2 files changed, 15 insertions(+)
meta/site/riscv32-linux +10 -0
index 138aeb0a11..fc5b99d147 100644
@@ -1,6 +1,16 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=4
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
+glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24}
+glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8}
+glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=4}
+glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=4}
+glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=4}
 
 # startup-notification
 lf_cv_sane_realloc=${lf_cv_sane_realloc=yes}
meta/site/riscv64-linux +5 -1
index 138aeb0a11..38bc5f044d 100644
@@ -1,3 +1,8 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=8
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
--

2.16.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#2 lore raw
Quoted 3 lines · Ross

Are the sizeof values actually needed, or are they copy/pasted from another site? autoconf hasn't need to run code to do sizeof for a *long* time.

actually let me delete it and we will readd them when we bring up rv32

Quoted 60 lines

Ross

Quoted 55 lines · Khem Raj

These variables force runtime tests during configure they are already cached for other architectures

---
Changes from v1 -> v2:
- Drop libIDL specific setting since they need to be in meta-gnome

 meta/site/riscv32-linux | 10 ++++++++++
 meta/site/riscv64-linux |  5 +++++
 2 files changed, 15 insertions(+)
meta/site/riscv32-linux +10 -0
index 138aeb0a11..fc5b99d147 100644
@@ -1,6 +1,16 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=4
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
+glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24}
+glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8}
+glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=4}
+glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=4}
+glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=4}
 
 # startup-notification
 lf_cv_sane_realloc=${lf_cv_sane_realloc=yes}
meta/site/riscv64-linux +5 -1
index 138aeb0a11..38bc5f044d 100644
@@ -1,3 +1,8 @@
+# general
+ac_cv_alignof_guint32=4
+ac_cv_alignof_guint64=8
+ac_cv_alignof_unsigned_long=8
+
 # glib-2.0
 glib_cv_stack_grows=${glib_cv_stack_grows=no}
 glib_cv_uscore=${glib_cv_uscore=no}
--

2.16.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core