All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] wireless-regdb: make wireless-regdb architecture independent
@ 2018-08-28  7:15 Radek Dostál
  2018-08-28 16:48 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Radek Dostál @ 2018-08-28  7:15 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Radek Dostál

There is no compilation involved in wireless-regdb and package should
produce  the same results on all architectures => making it allarch saves
build time.

Additionally this fixes issue: "On machines where ${libdir} equals to
/usr/lib64/ regulatory.bin is not found by crda". Reason was that
crda-3.18/crda.c looks only in following paths:
  "/usr/local/lib/crda/regulatory.bin", /* Users/preloads can override */
  "/usr/lib/crda/regulatory.bin", /* General distribution package usage */
  "/lib/crda/regulatory.bin", /* alternative for distributions */

Signed-off-by: Radek Dostál <radek.dostal@streamunlimited.com>
---
 .../wireless-regdb/wireless-regdb_2018.05.31.bb                     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

4MartinJansa: dneska přestupuju v České Třebové :)

diff --git a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index d1c8d56..2b990db 100644
--- a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -8,12 +8,12 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz"
 SRC_URI[md5sum] = "0cbbdc21186c76cf58aba01b03f3dc5b"
 SRC_URI[sha256sum] = "e1dfbc3b97771373077f430c3c05082fae883145b37db5b2cfd12c56676fbe7b"
 
-inherit bin_package
+inherit bin_package allarch
 
 do_install() {
-    install -d -m0755 ${D}${libdir}/crda
+    install -d -m0755 ${D}${nonarch_libdir}/crda
     install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
-    install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
+    install -m 0644 regulatory.bin ${D}${nonarch_libdir}/crda/regulatory.bin
     install -m 0644 sforshee.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
 
     install -m 0644 -D regulatory.db ${D}${nonarch_base_libdir}/firmware/regulatory.db
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-networking][PATCH] wireless-regdb: make wireless-regdb architecture independent
  2018-08-28  7:15 [meta-networking][PATCH] wireless-regdb: make wireless-regdb architecture independent Radek Dostál
@ 2018-08-28 16:48 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2018-08-28 16:48 UTC (permalink / raw)
  To: radek.dostal; +Cc: openembeded-devel

On Tue, Aug 28, 2018 at 1:05 AM Radek Dostál
<radek.dostal@streamunlimited.com> wrote:
>
> There is no compilation involved in wireless-regdb and package should
> produce  the same results on all architectures => making it allarch saves
> build time.
>
> Additionally this fixes issue: "On machines where ${libdir} equals to
> /usr/lib64/ regulatory.bin is not found by crda". Reason was that
> crda-3.18/crda.c looks only in following paths:
>   "/usr/local/lib/crda/regulatory.bin", /* Users/preloads can override */
>   "/usr/lib/crda/regulatory.bin", /* General distribution package usage */
>   "/lib/crda/regulatory.bin", /* alternative for distributions */
>
> Signed-off-by: Radek Dostál <radek.dostal@streamunlimited.com>
> ---
>  .../wireless-regdb/wireless-regdb_2018.05.31.bb                     | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> 4MartinJansa: dneska přestupuju v České Třebové :)
>
seems like a private social media message got mixed

> diff --git a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
> index d1c8d56..2b990db 100644
> --- a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
> +++ b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
> @@ -8,12 +8,12 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz"
>  SRC_URI[md5sum] = "0cbbdc21186c76cf58aba01b03f3dc5b"
>  SRC_URI[sha256sum] = "e1dfbc3b97771373077f430c3c05082fae883145b37db5b2cfd12c56676fbe7b"
>
> -inherit bin_package
> +inherit bin_package allarch
>
>  do_install() {
> -    install -d -m0755 ${D}${libdir}/crda
> +    install -d -m0755 ${D}${nonarch_libdir}/crda
>      install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
> -    install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
> +    install -m 0644 regulatory.bin ${D}${nonarch_libdir}/crda/regulatory.bin
>      install -m 0644 sforshee.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
>
>      install -m 0644 -D regulatory.db ${D}${nonarch_base_libdir}/firmware/regulatory.db
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-28 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28  7:15 [meta-networking][PATCH] wireless-regdb: make wireless-regdb architecture independent Radek Dostál
2018-08-28 16:48 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.