All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][honister 1/3] arm/lib/oeqa: fix module lookup
@ 2021-10-20 15:25 Ross Burton
  2021-10-20 15:25 ` [PATCH][honister 2/3] arm/trusted-firmware-m: enabling PACKAGECONFIG when using CMake Ross Burton
  2021-10-20 15:25 ` [PATCH][honister 3/3] arm/trusted-firmware-m: setting the toolchain file path in PACKAGECONFIG Ross Burton
  0 siblings, 2 replies; 3+ messages in thread
From: Ross Burton @ 2021-10-20 15:25 UTC (permalink / raw)
  To: meta-arm

As multiple paths can and do provide modules under oeqa.controllers, all
of these paths need to call pkgutil.extend_path() so the lookup works
correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-arm/lib/oeqa/controllers/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-arm/lib/oeqa/controllers/__init__.py b/meta-arm/lib/oeqa/controllers/__init__.py
index e69de29b..df3c142a 100644
--- a/meta-arm/lib/oeqa/controllers/__init__.py
+++ b/meta-arm/lib/oeqa/controllers/__init__.py
@@ -0,0 +1,3 @@
+# This is needed so that multiple locations can provide the same package
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
-- 
2.25.1



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

* [PATCH][honister 2/3] arm/trusted-firmware-m: enabling PACKAGECONFIG when using CMake
  2021-10-20 15:25 [PATCH][honister 1/3] arm/lib/oeqa: fix module lookup Ross Burton
@ 2021-10-20 15:25 ` Ross Burton
  2021-10-20 15:25 ` [PATCH][honister 3/3] arm/trusted-firmware-m: setting the toolchain file path in PACKAGECONFIG Ross Burton
  1 sibling, 0 replies; 3+ messages in thread
From: Ross Burton @ 2021-10-20 15:25 UTC (permalink / raw)
  To: meta-arm

From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>

In case of CMake, PACKAGECONFIG configs take effect when passing
PACKAGECONFIG_CONFARGS to the configure task.

Change-Id: I126ba089c9a5db8e895b8a9545e96ef9fa98ce0d
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
---
 .../recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
index 7c850b01..de007c10 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
+++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
@@ -101,7 +101,7 @@ do_patch[postfuncs] += "apply_local_patches"
 
 do_configure[cleandirs] = "${B}"
 do_configure() {
-    cmake -G"Unix Makefiles" -S ${S} -B ${B} ${EXTRA_OECMAKE}
+    cmake -G"Unix Makefiles" -S ${S} -B ${B} ${EXTRA_OECMAKE} ${PACKAGECONFIG_CONFARGS}
 }
 
 # Invoke install here as there's no point in splitting compile from install: the
-- 
2.25.1



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

* [PATCH][honister 3/3] arm/trusted-firmware-m: setting the toolchain file path in PACKAGECONFIG
  2021-10-20 15:25 [PATCH][honister 1/3] arm/lib/oeqa: fix module lookup Ross Burton
  2021-10-20 15:25 ` [PATCH][honister 2/3] arm/trusted-firmware-m: enabling PACKAGECONFIG when using CMake Ross Burton
@ 2021-10-20 15:25 ` Ross Burton
  1 sibling, 0 replies; 3+ messages in thread
From: Ross Burton @ 2021-10-20 15:25 UTC (permalink / raw)
  To: meta-arm

From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>

Toolchain files toolchain_GNUARM.cmake and toolchain_ARMCLANG.cmake are
located at trusted-firmware-m source directory.

This commit sets that.

Change-Id: If9c26f65b0c8111a6ff1f1a7d56610563efd501b
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
---
 .../trusted-firmware-m/trusted-firmware-m_1.3.0.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
index de007c10..fa23191f 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
+++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.3.0.bb
@@ -69,8 +69,8 @@ python() {
 
 PACKAGECONFIG ??= "cc-gnuarm"
 # What compiler to use
-PACKAGECONFIG[cc-gnuarm] = "-DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake,,gcc-arm-none-eabi-native"
-PACKAGECONFIG[cc-armclang] = "-DTFM_TOOLCHAIN_FILE=toolchain_ARMCLANG.cmake,,armcompiler-native"
+PACKAGECONFIG[cc-gnuarm] = "-DTFM_TOOLCHAIN_FILE=${S}/toolchain_GNUARM.cmake,,gcc-arm-none-eabi-native"
+PACKAGECONFIG[cc-armclang] = "-DTFM_TOOLCHAIN_FILE=${S}/toolchain_ARMCLANG.cmake,,armcompiler-native"
 # Whether to integrate the test suite
 PACKAGECONFIG[test-secure] = "-DTEST_S=ON,-DTEST_S=OFF"
 PACKAGECONFIG[test-nonsecure] = "-DTEST_NS=ON,-DTEST_NS=OFF"
-- 
2.25.1



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

end of thread, other threads:[~2021-10-20 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 15:25 [PATCH][honister 1/3] arm/lib/oeqa: fix module lookup Ross Burton
2021-10-20 15:25 ` [PATCH][honister 2/3] arm/trusted-firmware-m: enabling PACKAGECONFIG when using CMake Ross Burton
2021-10-20 15:25 ` [PATCH][honister 3/3] arm/trusted-firmware-m: setting the toolchain file path in PACKAGECONFIG Ross Burton

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.