Module Name: src Committed By: christos Date: Sat Apr 4 00:47:52 UTC 2020
Modified Files: src/tools/binutils: mknative-binutils Log Message: Handle libctf new in binutils 2.34 To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/tools/binutils/mknative-binutils Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/binutils/mknative-binutils diff -u src/tools/binutils/mknative-binutils:1.11 src/tools/binutils/mknative-binutils:1.12 --- src/tools/binutils/mknative-binutils:1.11 Wed Nov 7 21:08:35 2018 +++ src/tools/binutils/mknative-binutils Fri Apr 3 20:47:52 2020 @@ -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 @@ get_libopcodes () { } | 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 @@ case $1 in all|binutils) # everything (uses "canadian cross" temp environment) get_binutils get_libbfd + get_libctf get_libopcodes get_libiberty exit 0