All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] tcf-agent: fix CDT target debugging
@ 2017-04-20 19:08 Gernot Hillier
  2017-04-20 19:08 ` [PATCH v3 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
  2017-04-20 19:08 ` [PATCH v3 2/2] tcf-agent: enable default target debugging features Gernot Hillier
  0 siblings, 2 replies; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 19:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: eugene.tarassov

Default recipe for tcf-agent disabled a number of features because of
historic build problems on ARM dating back to tcf-agent 0.0+svnr1855
(from 2011). We re-enable them for all archs besides mips. For arm64,
we additionally need to fix MACHINE setting to make those features
compile again.

Without those features, target debugging using Eclipse Neon and CDT
with TCF 1.4 plugin didn't work in our tests. This is the default
debugging mode in the Xilinx Vivado SDK.

Series history:
v1: enable default tcf-agent features on all archs, sent to Poky ML
v2: address build break on mips and arm64, thx to Richard Purdie for 
    pointing me to this!
v3: Sent using git-send-email to fix line wrapping (sorry!)

--
Gernot Hillier
Siemens AG, Corporate Competence Center Embedded Linux

Gernot Hillier (2):
  tcf-agent: fix machine setting for arm64 build
  tcf-agent: enable default target debugging features

 meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

-- 
2.12.0



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

* [PATCH v3 1/2] tcf-agent: fix machine setting for arm64 build
  2017-04-20 19:08 [PATCH v3 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
@ 2017-04-20 19:08 ` Gernot Hillier
  2017-04-20 19:08 ` [PATCH v3 2/2] tcf-agent: enable default target debugging features Gernot Hillier
  1 sibling, 0 replies; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 19:08 UTC (permalink / raw)
  To: openembedded-core

tcf-agent uses "a64", not "aarch64", see agent/Makefile.inc. This fix
allows to re-enable features like SERVICE_Breakpoints and SERVICE_
MemoryMap on arm64.

Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
---
 meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
index e5e41f148e..cd0081ac16 100644
--- a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
@@ -30,7 +30,7 @@ INITSCRIPT_NAME = "tcf-agent"
 INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ."
 
 # mangling needed for make
-MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686,`"
+MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686, | sed s,aarch64,a64,`"
 MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`"
 
 EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'"
-- 
2.12.0



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

* [PATCH v3 2/2] tcf-agent: enable default target debugging features
  2017-04-20 19:08 [PATCH v3 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
  2017-04-20 19:08 ` [PATCH v3 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
@ 2017-04-20 19:08 ` Gernot Hillier
  2017-04-21 16:39   ` Burton, Ross
  1 sibling, 1 reply; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 19:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Tim Offermann

A number of features were disabled in OE due to historic problems
on ARM. In tcf-agent 1.4, they compile cleanly on all architectures
besides mips. These features are required for target debugging with
Eclipse Neon, CDT and TCF plugins - for example used by Xilinx Vivado
SDK 2016.4.

For MIPS, at least re-enable SERVICE_Symbols and SERVICE_LineNumbers
which compile cleanly.

Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
Signed-off-by: Tim Offermann <tim.offermann@siemens.com>
---
 meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
index cd0081ac16..eb18a925d0 100644
--- a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
@@ -35,11 +35,13 @@ MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`"
 
 EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'"
 
-# They don't build on ARM and we don't need them actually.
-CFLAGS += "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
+# They don't build on mips
+CFLAGS_mips_append = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
     -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \
-    -DSERVICE_StackTrace=0 -DSERVICE_Symbols=0 -DSERVICE_LineNumbers=0 \
-    -DSERVICE_Expressions=0"
+    -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0"
+CFLAGS_mips64_append = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
+    -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \
+    -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0"
 
 do_install() {
 	oe_runmake install INSTALLROOT=${D}
-- 
2.12.0



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

* Re: [PATCH v3 2/2] tcf-agent: enable default target debugging features
  2017-04-20 19:08 ` [PATCH v3 2/2] tcf-agent: enable default target debugging features Gernot Hillier
@ 2017-04-21 16:39   ` Burton, Ross
  2017-04-25  6:13     ` Gernot Hillier
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-04-21 16:39 UTC (permalink / raw)
  To: Gernot Hillier; +Cc: Tim Offermann, OE-core

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

On 20 April 2017 at 20:08, Gernot Hillier <gernot.hillier@siemens.com>
wrote:

> A number of features were disabled in OE due to historic problems
> on ARM. In tcf-agent 1.4, they compile cleanly on all architectures
> besides mips. These features are required for target debugging with
> Eclipse Neon, CDT and TCF plugins - for example used by Xilinx Vivado
> SDK 2016.4.
>

Would this be responsible for this failure under musl on the autobuilder:

system/GNU/Linux/tcf/context-linux.c:490:10: error: variable 'cmd' has
initializer but incomplete type
     enum __ptrace_request cmd = PTRACE_SINGLESTEP;
          ^~~~~~~~~~~~~~~~

Ross

[-- Attachment #2: Type: text/html, Size: 1172 bytes --]

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

* Re: [PATCH v3 2/2] tcf-agent: enable default target debugging features
  2017-04-21 16:39   ` Burton, Ross
@ 2017-04-25  6:13     ` Gernot Hillier
  0 siblings, 0 replies; 5+ messages in thread
From: Gernot Hillier @ 2017-04-25  6:13 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Tim Offermann, OE-core

On 21.04.2017 18:39, Burton, Ross wrote:
> 
> On 20 April 2017 at 20:08, Gernot Hillier <gernot.hillier@siemens.com
> <mailto:gernot.hillier@siemens.com>> wrote:
> 
>     A number of features were disabled in OE due to historic problems
>     on ARM. In tcf-agent 1.4, they compile cleanly on all architectures
>     besides mips. These features are required for target debugging with
>     Eclipse Neon, CDT and TCF plugins - for example used by Xilinx Vivado
>     SDK 2016.4.
> 
> 
> Would this be responsible for this failure under musl on the autobuilder:
> 
> system/GNU/Linux/tcf/context-linux.c:490:10: error: variable 'cmd' has
> initializer but incomplete type
>      enum __ptrace_request cmd = PTRACE_SINGLESTEP;
>           ^~~~~~~~~~~~~~~~

Thanks to pointing me to this!

Looks like we need to disable the advanced tcf-agent features for musl
again as it seems to lack the necessary ptrace header.

I'll double-check other builders and post an updated patch series soon.

-- 
Gernot
Siemens AG, Corporate Competence Center Embedded Linux



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

end of thread, other threads:[~2017-04-25  6:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 19:08 [PATCH v3 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
2017-04-20 19:08 ` [PATCH v3 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
2017-04-20 19:08 ` [PATCH v3 2/2] tcf-agent: enable default target debugging features Gernot Hillier
2017-04-21 16:39   ` Burton, Ross
2017-04-25  6:13     ` Gernot Hillier

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.