* [PATCH v2 0/2] tcf-agent: fix CDT target debugging
@ 2017-04-20 8:06 Gernot Hillier
2017-04-20 8:15 ` [PATCH 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 8:06 UTC (permalink / raw)
To: openembedded-core
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.
This series contains updated version of patch to address mips and arm64
issues, thx to Richard Purdie for pointing me to this! Patch v1 was
sent to poky ML in error.
--
Gernot Hillier
Siemens AG, Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] tcf-agent: fix machine setting for arm64 build
2017-04-20 8:06 [PATCH v2 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
@ 2017-04-20 8:15 ` Gernot Hillier
2017-04-20 15:52 ` Burton, Ross
2017-04-20 8:16 ` [PATCH 2/2] tcf-agent: enable default target debugging features Gernot Hillier
2017-04-20 9:01 ` ✗ patchtest: failure for tcf-agent: fix CDT target debugging Patchwork
2 siblings, 1 reply; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 8:15 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 2/2] tcf-agent: enable default target debugging features
2017-04-20 8:06 [PATCH v2 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
2017-04-20 8:15 ` [PATCH 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
@ 2017-04-20 8:16 ` Gernot Hillier
2017-04-20 9:01 ` ✗ patchtest: failure for tcf-agent: fix CDT target debugging Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Gernot Hillier @ 2017-04-20 8:16 UTC (permalink / raw)
To: openembedded-core
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
* ✗ patchtest: failure for tcf-agent: fix CDT target debugging
2017-04-20 8:06 [PATCH v2 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
2017-04-20 8:15 ` [PATCH 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
2017-04-20 8:16 ` [PATCH 2/2] tcf-agent: enable default target debugging features Gernot Hillier
@ 2017-04-20 9:01 ` Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-04-20 9:01 UTC (permalink / raw)
To: Gernot Hillier; +Cc: openembedded-core
== Series Details ==
Series: tcf-agent: fix CDT target debugging
Revision: 1
URL : https://patchwork.openembedded.org/series/6436/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 0126fe8934)
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] tcf-agent: fix machine setting for arm64 build
2017-04-20 8:15 ` [PATCH 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
@ 2017-04-20 15:52 ` Burton, Ross
0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2017-04-20 15:52 UTC (permalink / raw)
To: Gernot Hillier; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
On 20 April 2017 at 09:15, Gernot Hillier <gernot.hillier@siemens.com>
wrote:
> EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}'
> 'AR=${AR}'"
>
Please use git-send-email to submit patches, because this line arrived
wrapped when it shouldn't be which meant the patch had to be applied
manually.
Ross
[-- Attachment #2: Type: text/html, Size: 761 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-20 15:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-20 8:06 [PATCH v2 0/2] tcf-agent: fix CDT target debugging Gernot Hillier
2017-04-20 8:15 ` [PATCH 1/2] tcf-agent: fix machine setting for arm64 build Gernot Hillier
2017-04-20 15:52 ` Burton, Ross
2017-04-20 8:16 ` [PATCH 2/2] tcf-agent: enable default target debugging features Gernot Hillier
2017-04-20 9:01 ` ✗ patchtest: failure for tcf-agent: fix CDT target debugging Patchwork
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.