All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] arm-bsp/linux-yocto: Update N1SDP PCI quirk patch
@ 2023-03-29 15:48 adam.johnston
  2023-03-29 15:48 ` [PATCH 1/1] " adam.johnston
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: adam.johnston @ 2023-03-29 15:48 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Adam Johnston

From: Adam Johnston <adam.johnston@arm.com>

Poky commit 9ef8cbcdfc85c3ce2ca52d8bee2ab6929f589383 updates the kernel to
6.1.20 which breaks the PCI quirk patch for the N1SDP.

This change fixes it.

Adam Johnston (1):
  arm-bsp/linux-yocto: Update N1SDP PCI quirk patch

 ...002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.25.1



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

* [PATCH 1/1] arm-bsp/linux-yocto: Update N1SDP PCI quirk patch
  2023-03-29 15:48 [PATCH 0/1] arm-bsp/linux-yocto: Update N1SDP PCI quirk patch adam.johnston
@ 2023-03-29 15:48 ` adam.johnston
  2023-03-29 15:48 ` [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts adam.johnston
       [not found] ` <1750EE88BBCBA010.11091@lists.yoctoproject.org>
  2 siblings, 0 replies; 5+ messages in thread
From: adam.johnston @ 2023-03-29 15:48 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Adam Johnston

From: Adam Johnston <adam.johnston@arm.com>

Poky commit 9ef8cbcdfc85c3ce2ca52d8bee2ab6929f589383 updates
the kernel to 6.1.20 which breaks the PCI quirk patch for the N1SDP.

This change fixes it.

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
---
 ...002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-yocto-6.1/n1sdp/0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch b/meta-arm-bsp/recipes-kernel/linux/linux-yocto-6.1/n1sdp/0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch
index 7a5ab7a2..cb72ed0a 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-yocto-6.1/n1sdp/0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-yocto-6.1/n1sdp/0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch
@@ -150,9 +150,9 @@ index 285acc4aaccc..d6ebef1f30db 100644
   * Some NVIDIA GPU devices do not work with bus reset, SBR needs to be
   * prevented for those affected devices.
 @@ -4980,6 +5081,7 @@ static const struct pci_dev_acs_enabled {
- 	{ PCI_VENDOR_ID_NXP, 0x8d9b, pci_quirk_nxp_rp_acs },
- 	/* Zhaoxin Root/Downstream Ports */
  	{ PCI_VENDOR_ID_ZHAOXIN, PCI_ANY_ID, pci_quirk_zhaoxin_pcie_ports_acs },
+ 	/* Wangxun nics */
+ 	{ PCI_VENDOR_ID_WANGXUN, PCI_ANY_ID, pci_quirk_wangxun_nic_acs },
 +	{ PCI_ANY_ID, PCI_ANY_ID, pcie_acs_overrides },
  	{ 0 }
  };
-- 
2.25.1



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

* [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts
  2023-03-29 15:48 [PATCH 0/1] arm-bsp/linux-yocto: Update N1SDP PCI quirk patch adam.johnston
  2023-03-29 15:48 ` [PATCH 1/1] " adam.johnston
@ 2023-03-29 15:48 ` adam.johnston
       [not found] ` <1750EE88BBCBA010.11091@lists.yoctoproject.org>
  2 siblings, 0 replies; 5+ messages in thread
From: adam.johnston @ 2023-03-29 15:48 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Adam Johnston

From: Adam Johnston <adam.johnston@arm.com>

The libts recipe assumes generated cmake file will be suffixed with
'-noconfig'. This is only true when building with the default type
i.e. "".

Check which target cmake file has been generated before trying to
patch it. This fixes 'no such file' error when building with an
explicit type (Debug, Release, etc).

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
---
 meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-arm/recipes-security/trusted-services/libts_git.bb b/meta-arm/recipes-security/trusted-services/libts_git.bb
index 598b281b..aafe8516 100644
--- a/meta-arm/recipes-security/trusted-services/libts_git.bb
+++ b/meta-arm/recipes-security/trusted-services/libts_git.bb
@@ -24,11 +24,14 @@ do_install:append () {
     fi
 
     # Move the dynamic libraries into the standard place.
-    # Update a cmake file to use correct paths.
     install -d ${D}${libdir}
     mv ${D}${TS_INSTALL}/lib/libts* ${D}${libdir}
 
-    sed -i -e "s#/${TS_ENV}##g" ${D}${TS_INSTALL}/lib/cmake/libts/libtsTargets-noconfig.cmake
+    # Update generated cmake file to use correct paths.
+    target_cmake=$(find ${D}${TS_INSTALL}/lib/cmake/libts -type f -iname "libtsTargets-*.cmake")
+    if [ ! -z "$target_cmake" ]; then
+        sed -i -e "s#/${TS_ENV}##g" $target_cmake
+    fi
 }
 
 inherit ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', '', 'useradd', d)}
-- 
2.38.1



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

* RE: [meta-arm] [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts
       [not found] ` <1750EE88BBCBA010.11091@lists.yoctoproject.org>
@ 2023-03-29 15:53   ` Adam Johnston
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Johnston @ 2023-03-29 15:53 UTC (permalink / raw)
  To: meta-arm, Ross Burton

Please ignore this specific email (should have purged my outgoing folder).

Regards

Adam

-----Original Message-----
From: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org> On Behalf Of Adam Johnston via lists.yoctoproject.org
Sent: Wednesday, March 29, 2023 4:49 PM
To: meta-arm@lists.yoctoproject.org; Ross Burton <Ross.Burton@arm.com>
Cc: nd <nd@arm.com>; Adam Johnston <Adam.Johnston@arm.com>
Subject: [meta-arm] [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts

From: Adam Johnston <adam.johnston@arm.com>

The libts recipe assumes generated cmake file will be suffixed with '-noconfig'. This is only true when building with the default type i.e. "".

Check which target cmake file has been generated before trying to patch it. This fixes 'no such file' error when building with an explicit type (Debug, Release, etc).

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
---
 meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-arm/recipes-security/trusted-services/libts_git.bb b/meta-arm/recipes-security/trusted-services/libts_git.bb
index 598b281b..aafe8516 100644
--- a/meta-arm/recipes-security/trusted-services/libts_git.bb
+++ b/meta-arm/recipes-security/trusted-services/libts_git.bb
@@ -24,11 +24,14 @@ do_install:append () {
     fi
 
     # Move the dynamic libraries into the standard place.
-    # Update a cmake file to use correct paths.
     install -d ${D}${libdir}
     mv ${D}${TS_INSTALL}/lib/libts* ${D}${libdir}
 
-    sed -i -e "s#/${TS_ENV}##g" ${D}${TS_INSTALL}/lib/cmake/libts/libtsTargets-noconfig.cmake
+    # Update generated cmake file to use correct paths.
+    target_cmake=$(find ${D}${TS_INSTALL}/lib/cmake/libts -type f -iname "libtsTargets-*.cmake")
+    if [ ! -z "$target_cmake" ]; then
+        sed -i -e "s#/${TS_ENV}##g" $target_cmake
+    fi
 }
 
 inherit ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', '', 'useradd', d)}
--
2.38.1



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

* RE: [meta-arm] [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts
       [not found] ` <173157A89401C7C2.16729@lists.yoctoproject.org>
@ 2023-01-10 20:01   ` Adam Johnston
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Johnston @ 2023-01-10 20:01 UTC (permalink / raw)
  To: meta-arm, Ross Burton; +Cc: nd

Can we please backport this patch to langdale?

Thanks and Regards

Adam

-----Original Message-----
From: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org> On Behalf Of Adam Johnston via lists.yoctoproject.org
Sent: 16 December 2022 17:55
To: meta-arm@lists.yoctoproject.org; Ross Burton <Ross.Burton@arm.com>
Cc: nd <nd@arm.com>; Adam Johnston <Adam.Johnston@arm.com>
Subject: [meta-arm] [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts

From: Adam Johnston <adam.johnston@arm.com>

The libts recipe assumes generated cmake file will be suffixed with '-noconfig'. This is only true when building with the default type i.e. "".

Check which target cmake file has been generated before trying to patch it. This fixes 'no such file' error when building with an explicit type (Debug, Release, etc).

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
---
 meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-arm/recipes-security/trusted-services/libts_git.bb b/meta-arm/recipes-security/trusted-services/libts_git.bb
index 598b281b..aafe8516 100644
--- a/meta-arm/recipes-security/trusted-services/libts_git.bb
+++ b/meta-arm/recipes-security/trusted-services/libts_git.bb
@@ -24,11 +24,14 @@ do_install:append () {
     fi
 
     # Move the dynamic libraries into the standard place.
-    # Update a cmake file to use correct paths.
     install -d ${D}${libdir}
     mv ${D}${TS_INSTALL}/lib/libts* ${D}${libdir}
 
-    sed -i -e "s#/${TS_ENV}##g" ${D}${TS_INSTALL}/lib/cmake/libts/libtsTargets-noconfig.cmake
+    # Update generated cmake file to use correct paths.
+    target_cmake=$(find ${D}${TS_INSTALL}/lib/cmake/libts -type f -iname "libtsTargets-*.cmake")
+    if [ ! -z "$target_cmake" ]; then
+        sed -i -e "s#/${TS_ENV}##g" $target_cmake
+    fi
 }
 
 inherit ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', '', 'useradd', d)}
--
2.38.1



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

end of thread, other threads:[~2023-03-29 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 15:48 [PATCH 0/1] arm-bsp/linux-yocto: Update N1SDP PCI quirk patch adam.johnston
2023-03-29 15:48 ` [PATCH 1/1] " adam.johnston
2023-03-29 15:48 ` [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts adam.johnston
     [not found] ` <1750EE88BBCBA010.11091@lists.yoctoproject.org>
2023-03-29 15:53   ` [meta-arm] " Adam Johnston
  -- strict thread matches above, loose matches on Subject: below --
2022-12-16 17:55 [PATCH 0/1] " adam.johnston
     [not found] ` <173157A89401C7C2.16729@lists.yoctoproject.org>
2023-01-10 20:01   ` [meta-arm] [PATCH 1/1] " Adam Johnston

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.