public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info
@ 2023-04-21  6:06 wangmy
  2023-04-21  6:06 ` [OE-core] [PATCH 2/2] binutils: " wangmy
  2023-04-21  6:19 ` [OE-core] [PATCH 1/2] gdb: " Khem Raj
  0 siblings, 2 replies; 3+ messages in thread
From: wangmy @ 2023-04-21  6:06 UTC (permalink / raw)
  To: openembedded-core; +Cc: Wang Mingyu

From: Wang Mingyu <wangmy@fujitsu.com>

binutils also uses the doc 'sframe-spec.info'.

binutils has a priority of 100.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 meta/recipes-devtools/gdb/gdb-common.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 925b0c2f80..338d1650d2 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -53,6 +53,12 @@ do_configure () {
 
 # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
 # right bits installed by binutils.  Same for bfd.info -- also from binutils.
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "50"
+ALTERNATIVE:${PN}-doc = "sframe-spec"
+ALTERNATIVE_LINK_NAME[sframe-spec] = "${infodir}/sframe-spec.info"
+
 do_install:append() {
 	rm -rf ${D}${libdir}
 	rm -rf ${D}${includedir}
-- 
2.34.1



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

end of thread, other threads:[~2023-04-21  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21  6:06 [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info wangmy
2023-04-21  6:06 ` [OE-core] [PATCH 2/2] binutils: " wangmy
2023-04-21  6:19 ` [OE-core] [PATCH 1/2] gdb: " Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox