All of lore.kernel.org
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [kirkstone 09/39] linux-atm: Add knob to root prefix
Date: Sat, 30 Apr 2022 12:17:49 -0700	[thread overview]
Message-ID: <a39af1ef90834eeb9dc894c9b9b4d3241017447d.1651346200.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1651346200.git.akuster808@gmail.com>

From: Khem Raj <raj.khem@gmail.com>

Fixes build with usrmerge

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit d69c0da9d2ad86a5d57e7359eaba8fe26c1ed820)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 .../linux-atm/0001-make-Add-PREFIX-knob.patch | 31 +++++++++++++++++++
 .../linux-atm/linux-atm_2.5.2.bb              |  7 ++---
 2 files changed, 34 insertions(+), 4 deletions(-)
 create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-make-Add-PREFIX-knob.patch

diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0001-make-Add-PREFIX-knob.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0001-make-Add-PREFIX-knob.patch
new file mode 100644
index 0000000000..9c83ef0af4
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0001-make-Add-PREFIX-knob.patch
@@ -0,0 +1,31 @@
+From 94cb952207e44a5c29578c9c56912190a5422876 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 23 Apr 2022 09:41:51 -0700
+Subject: [PATCH] make: Add PREFIX knob
+
+This will be used to pass appropriate root prefix which is different
+when using usrmerge
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/extra/Makefile.am | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- a/src/extra/Makefile.am
++++ b/src/extra/Makefile.am
+@@ -8,10 +8,10 @@ BUILT_SOURCES = pca200e.bin pca200e_ecd.
+ CLEANFILES = pca200e.bin pca200e_ecd.bin2 sba200e_ecd.bin2
+ 
+ install-exec-hook:
+-	$(MKDIR_P) $(DESTDIR)/lib/firmware
+-	$(INSTALL_DATA) $(builddir)/pca200e.bin $(DESTDIR)/lib/firmware
+-	$(INSTALL_DATA) $(builddir)/pca200e_ecd.bin2 $(DESTDIR)/lib/firmware
+-	$(INSTALL_DATA) $(builddir)/sba200e_ecd.bin2 $(DESTDIR)/lib/firmware
++	$(MKDIR_P) $(DESTDIR)$(ROOTPREFIX)/lib/firmware
++	$(INSTALL_DATA) $(builddir)/pca200e.bin $(DESTDIR)$(ROOTPREFIX)/lib/firmware
++	$(INSTALL_DATA) $(builddir)/pca200e_ecd.bin2 $(DESTDIR)$(ROOTPREFIX)/lib/firmware
++	$(INSTALL_DATA) $(builddir)/sba200e_ecd.bin2 $(DESTDIR)$(ROOTPREFIX)/lib/firmware
+ 
+ %.bin %.bin2: %.data
+ 	objcopy -Iihex $< -Obinary $@.gz
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
index effd7502ff..bb79b78568 100644
--- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
+++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
@@ -13,11 +13,11 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P
            file://0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch \
            file://0001-IFNAMSIZ-is-defined-in-net-if.h.patch \
            file://0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch \
+           file://0001-make-Add-PREFIX-knob.patch \
 "
 
 SRC_URI:append:libc-musl = " file://musl-no-on_exit.patch"
 
-SRC_URI[md5sum] = "d49499368c3cf15f73a05d9bce8824a8"
 SRC_URI[sha256sum] = "9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a"
 
 LIC_FILES_CHKSUM = "\
@@ -27,7 +27,6 @@ file://COPYING.LGPL;md5=6e29c688d912da12b66b73e32b03d812"
 
 inherit autotools pkgconfig
 
-# The firmware is explicitly put under /lib when installed.
-#
+EXTRA_OEMAKE += "ROOTPREFIX=${root_prefix}"
 
-FILES:${PN} += "/lib/firmware"
+FILES:${PN} += "${nonarch_base_libdir}/firmware"
-- 
2.25.1



  parent reply	other threads:[~2022-04-30 19:18 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30 19:17 [kirkstone 00/39] Patch review Armin Kuster
2022-04-30 19:17 ` [kirkstone 01/39] crash: Upgrade to 8.0.0 Armin Kuster
2022-04-30 19:17 ` [kirkstone 02/39] crash: Fix build for mips target Armin Kuster
2022-04-30 19:17 ` [kirkstone 03/39] tcsh: Do not install symlinks into /bin with usrmerge Armin Kuster
2022-04-30 19:17 ` [kirkstone 04/39] arno-iptables-firewall: Do not use bitbake variable inside S Armin Kuster
2022-04-30 19:17 ` [kirkstone 05/39] fluentbit: Fix build with usrmerge distro feature Armin Kuster
2022-04-30 19:17 ` [kirkstone 06/39] tomoyo-tools: Define SBINDIR Armin Kuster
2022-04-30 19:17 ` [kirkstone 07/39] tomoyo-tools: Drop md5sum Armin Kuster
2022-04-30 19:17 ` [kirkstone 08/39] dietsplash: specify install rootdir Armin Kuster
2022-04-30 19:17 ` Armin Kuster [this message]
2022-04-30 19:17 ` [kirkstone 10/39] ufw: Fix build with usrmerge distro feature Armin Kuster
2022-04-30 19:17 ` [kirkstone 11/39] libldb: Fix installed-vs-shipped and rebuild error Armin Kuster
2022-04-30 19:17 ` [kirkstone 12/39] klibc: Recognise --dyld-prefix clang option Armin Kuster
2022-04-30 19:17 ` [kirkstone 13/39] mozjs: Use vendored icu on ppc/clang Armin Kuster
2022-04-30 19:17 ` [kirkstone 14/39] boinc-client: Do not overwrite same file when using usrmerge Armin Kuster
2022-04-30 19:17 ` [kirkstone 15/39] pam-ssh-agent-auth: Use specific versions of BSD licenses Armin Kuster
2022-04-30 19:17 ` [kirkstone 16/39] fwupd: Enable build with musl Armin Kuster
2022-04-30 19:17 ` [kirkstone 17/39] evince: upgrade 42.1 -> 42.2 Armin Kuster
2022-04-30 19:17 ` [kirkstone 18/39] gspell: upgrade 1.9.1 -> 1.10.0 Armin Kuster
2022-04-30 19:17 ` [kirkstone 19/39] gtksourceview5: upgrade 5.4.0 -> 5.4.1 Armin Kuster
2022-04-30 19:18 ` [kirkstone 20/39] libadwaita: upgrade 1.1.0 -> 1.1.1 Armin Kuster
2022-04-30 19:18 ` [kirkstone 21/39] nautilus: upgrade 42.0 -> 42.1.1 Armin Kuster
2022-04-30 19:18 ` [kirkstone 22/39] htpdate: upgrade 1.3.3 -> 1.3.4 Armin Kuster
2022-04-30 19:18 ` [kirkstone 23/39] hexedit: upgrade 1.5 -> 1.6 Armin Kuster
2022-04-30 19:18 ` [kirkstone 24/39] lsscsi: upgrade 0.31 -> 0.32 Armin Kuster
2022-04-30 19:18 ` [kirkstone 25/39] libencode-perl: upgrade 3.16 -> 3.17 Armin Kuster
2022-04-30 19:18 ` [kirkstone 26/39] libextutils-cppguess-perl: upgrade 0.23 -> 0.26 Armin Kuster
2022-04-30 19:18 ` [kirkstone 27/39] libtest-harness-perl: upgrade 3.42 -> 3.44 Armin Kuster
2022-04-30 19:18 ` [kirkstone 28/39] makedumpfile: Upgrade to 1.7.1 Armin Kuster
2022-04-30 19:18 ` [kirkstone 29/39] lirc: install systemd units only when using systemd distro feature Armin Kuster
2022-04-30 19:18 ` [kirkstone 30/39] fluentbit: Disable systemd support when systemd distro feature is disabled Armin Kuster
2022-04-30 19:18 ` [kirkstone 31/39] absil-cpp: Update SRC_URI to to the latest google internal sync Armin Kuster
2022-04-30 19:18 ` [kirkstone 35/39] lirc: Delete systemd unit files on non systemd distros Armin Kuster
2022-04-30 19:18 ` [kirkstone 38/39] pipewire: Upgrade to version 0.3.50 Armin Kuster
2022-04-30 19:18 ` [kirkstone 39/39] boinc-client: Make script install not depend on host install paths Armin Kuster
2022-04-30 20:58 ` [oe] [kirkstone 00/39] Patch review Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a39af1ef90834eeb9dc894c9b9b4d3241017447d.1651346200.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.