Skip to contentSkip to conversation

rp-pppoe: Add configure cached variable via recipe

PATCH In review Khem Raj 2 participants 5 messages Sep 21, 2021 RISC-V

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 rp-pppoe: Add configure cached variable via recipe

These site files are only there for single recipe, move the data to recipe and use SITEINFO_ENDIANNESS to choose right option and pass it to configure

---
 meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.13.bb | 2 ++
 meta-networking/site/endian-big                             | 2 --
 meta-networking/site/endian-little                          | 2 --
 3 files changed, 2 insertions(+), 4 deletions(-)
 delete mode 100644 meta-networking/site/endian-big
 delete mode 100644 meta-networking/site/endian-little
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.13.bb +2 -0
index 344aa33dec..61e90225de 100644
@@ -26,6 +26,8 @@ SRC_URI[sha256sum] = "8cd6bc71ba46bd5f6eb4daf60220ccdcd991a8525111dee466501b1b97
 
 inherit autotools-brokensep update-rc.d systemd
 
+EXTRA_OECONF:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=normal}', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev}', d)}"
+
 do_install:append() {
     install -d ${D}${systemd_unitdir}/system
     install -m 0644 ${WORKDIR}/pppoe-server.service ${D}${systemd_unitdir}/system
meta-networking/site/endian-big deleted +0 -2
deleted file mode 100644
index 3a968e3267..0000000000
@@ -1,2 +0,0 @@
-# rp-pppoe
-rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=normal}
meta-networking/site/endian-little deleted +0 -2
deleted file mode 100644
index 0bcd966ea8..0000000000
@@ -1,2 +0,0 @@
-# rp-pppoe
-rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev}
Signature · 1 line
2.33.0
author
#1 lore raw

PATCH 2/2 site: Remove local site files

These entries are either in core or redundant

---
 meta-gnome/site/arm-64        | 13 -------------
 meta-gnome/site/riscv64-linux | 16 ----------------
 meta-gnome/site/x86_64-linux  | 17 -----------------
 3 files changed, 46 deletions(-)
 delete mode 100644 meta-gnome/site/arm-64
 delete mode 100644 meta-gnome/site/riscv64-linux
 delete mode 100644 meta-gnome/site/x86_64-linux
meta-gnome/site/arm-64 deleted +0 -13
deleted file mode 100644
index f474d2cc40..0000000000
@@ -1,13 +0,0 @@
-# ORBit2
-ac_cv_alignof_CORBA_boolean=1
-ac_cv_alignof_CORBA_char=1
-ac_cv_alignof_CORBA_double=8
-ac_cv_alignof_CORBA_float=4
-ac_cv_alignof_CORBA_long=4
-ac_cv_alignof_CORBA_long_double=8
-ac_cv_alignof_CORBA_long_long=8
-ac_cv_alignof_CORBA_octet=1
-ac_cv_alignof_CORBA_pointer=4
-ac_cv_alignof_CORBA_short=2
-ac_cv_alignof_CORBA_struct=1
-ac_cv_alignof_CORBA_wchar=2
meta-gnome/site/riscv64-linux deleted +0 -16
deleted file mode 100644
index e3a41ea0e1..0000000000
@@ -1,16 +0,0 @@
-# libidl
-libIDL_cv_long_long_format=${libIDL_cv_long_long_format=ll}
-
-# ORBit2
-ac_cv_alignof_CORBA_boolean=1
-ac_cv_alignof_CORBA_char=1
-ac_cv_alignof_CORBA_double=8
-ac_cv_alignof_CORBA_float=4
-ac_cv_alignof_CORBA_long=4
-ac_cv_alignof_CORBA_long_double=8
-ac_cv_alignof_CORBA_long_long=8
-ac_cv_alignof_CORBA_octet=1
-ac_cv_alignof_CORBA_pointer=4
-ac_cv_alignof_CORBA_short=2
-ac_cv_alignof_CORBA_struct=1
-ac_cv_alignof_CORBA_wchar=2
meta-gnome/site/x86_64-linux deleted +0 -17
deleted file mode 100644
index eba1fee2bb..0000000000
@@ -1,17 +0,0 @@
-# ORBit2
-ac_cv_alignof_CORBA_boolean=1
-ac_cv_alignof_CORBA_char=1
-ac_cv_alignof_CORBA_double=8
-ac_cv_alignof_CORBA_float=4
-ac_cv_alignof_CORBA_long=4
-ac_cv_alignof_CORBA_long_double=8
-ac_cv_alignof_CORBA_long_long=8
-ac_cv_alignof_CORBA_octet=1
-ac_cv_alignof_CORBA_pointer=8
-ac_cv_alignof_CORBA_short=2
-ac_cv_alignof_CORBA_struct=1
-ac_cv_alignof_CORBA_wchar=2
-
-lf_cv_sane_realloc=yes
-as_cv_unaligned_access=${as_cv_unaligned_access=yes}
-
Signature · 1 line
2.33.0
#2 lore raw
In reply to Khem Raj
Quoted 1 line · Khem Raj

+EXTRA_OECONF:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=normal}', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev}', d)}"

I think CACHED_CONFIGUREVARS was intended to be used for this, for what it's worth.

Ross

author
#3 lore raw
Quoted 7 lines · Ross Burton
Quoted 1 line · Khem Raj

+EXTRA_OECONF:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS',

'be', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=normal}', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev}', d)}"

I think CACHED_CONFIGUREVARS was intended to be used for this, for what it's worth.

yeah although it will work in both cases I don’t remember why I introduced that variable but I guess it was that in sone cases it needed to be embedded in shell environment

Quoted 4 lines

Ross

author
#4 lore raw
In reply to Ross Burton
Quoted 6 lines · Ross Burton
Quoted 1 line · Khem Raj

+EXTRA_OECONF:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=normal}', 'rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev}', d)}"

I think CACHED_CONFIGUREVARS was intended to be used for this, for what it's worth.

I have changed to use CACHED_CONFIGUREVARS in staged patch on master-next

Quoted 2 lines

Ross