Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/binutils Handle libctf new in binutils 2.34



details:   https://anonhg.NetBSD.org/src/rev/71acd015bd67
branches:  trunk
changeset: 1008811:71acd015bd67
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 04 00:47:52 2020 +0000

description:
Handle libctf new in binutils 2.34

diffstat:

 tools/binutils/mknative-binutils |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r accc1a79cb5b -r 71acd015bd67 tools/binutils/mknative-binutils
--- a/tools/binutils/mknative-binutils  Sat Apr 04 00:47:30 2020 +0000
+++ b/tools/binutils/mknative-binutils  Sat Apr 04 00:47:52 2020 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-binutils,v 1.11 2018/11/08 02:08:35 christos Exp $
+#      $NetBSD: mknative-binutils,v 1.12 2020/04/04 00:47:52 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/external/gpl3/binutils
@@ -49,6 +49,18 @@
        } | write_c external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH/config.h
 }
 
+get_libctf () {
+       mkdir -p $_TOP/external/gpl3/binutils/lib/libctf/arch/$MACHINE_ARCH
+
+       {
+               getvars libctf/Makefile libctf_la_SOURCES
+       } | write_mk external/gpl3/binutils/lib/libctf/arch/$MACHINE_ARCH/defs.mk
+
+       {
+               cat $_TMPDIR/libctf/config.h
+       } | write_c external/gpl3/binutils/lib/libctf/arch/$MACHINE_ARCH/config.h
+}
+
 ##### external/gpl3/binutils/lib/libiberty #####
 
 get_libiberty () {
@@ -138,6 +150,7 @@
 all|binutils)  # everything (uses "canadian cross" temp environment)
        get_binutils
        get_libbfd
+       get_libctf
        get_libopcodes
        get_libiberty
        exit 0



Home | Main Index | Thread Index | Old Index