Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/binutils Update for new binutils location, etc.
details: https://anonhg.NetBSD.org/src/rev/38626540263a
branches: trunk
changeset: 748866:38626540263a
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Nov 08 15:33:29 2009 +0000
description:
Update for new binutils location, etc.
diffstat:
tools/binutils/mknative-binutils | 59 ++++++++++++++++++++-------------------
1 files changed, 30 insertions(+), 29 deletions(-)
diffs (149 lines):
diff -r 380624000239 -r 38626540263a tools/binutils/mknative-binutils
--- a/tools/binutils/mknative-binutils Sun Nov 08 15:33:21 2009 +0000
+++ b/tools/binutils/mknative-binutils Sun Nov 08 15:33:29 2009 +0000
@@ -1,8 +1,8 @@
#!/bin/sh
-# $NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp $
+# $NetBSD: mknative-binutils,v 1.6 2009/11/08 15:33:29 skrll Exp $
#
# Shell script for generating all the constants needed for a native
-# platform build of src/gnu/dist/binutils.
+# platform build of src/external/gpl3/binutils
#
# initialise
@@ -14,59 +14,60 @@
. $_TOP/tools/gcc/mknative.common
-##### gnu/lib/libbfd #####
+##### external/gpl3/binutils/lib/libbfd #####
get_libbfd () {
- mkdir -p $_TOP/gnu/lib/libbfd/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH
{
getvars bfd/Makefile \
libbfd_la_DEPENDENCIES libbfd_la_OBJECTS DEFS \
INCLUDES TDEFAULTS
- } | write_mk gnu/lib/libbfd/arch/$MACHINE_ARCH/defs.mk
+ } | write_mk external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/defs.mk
- write_c gnu/lib/libbfd/arch/$MACHINE_ARCH/bfd.h <$_TMPDIR/bfd/bfd.h
- write_c gnu/lib/libbfd/arch/$MACHINE_ARCH/bfdver.h <$_TMPDIR/bfd/bfdver.h
+ write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfd.h <$_TMPDIR/bfd/bfd.h
+ write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfdver.h <$_TMPDIR/bfd/bfdver.h
+ write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfd_stdint.h <$_TMPDIR/bfd/bfd_stdint.h
{
cat $_TMPDIR/bfd/config.h
- } | write_c gnu/lib/libbfd/arch/$MACHINE_ARCH/config.h
+ } | write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/config.h
}
-##### gnu/lib/libopcodes #####
+##### external/gpl3/binutils/lib/libopcodes #####
get_libopcodes () {
- mkdir -p $_TOP/gnu/lib/libopcodes/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH
{
getvars opcodes/Makefile \
archdefs BFD_MACHINES libopcodes_la_SOURCES
- } | write_mk gnu/lib/libopcodes/arch/$MACHINE_ARCH/defs.mk
+ } | write_mk external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH/defs.mk
{
cat $_TMPDIR/opcodes/config.h
- } | write_c gnu/lib/libopcodes/arch/$MACHINE_ARCH/config.h
+ } | write_c external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH/config.h
}
-##### gnu/lib/libiberty #####
+##### external/gpl3/binutils/lib/libiberty #####
get_libiberty () {
- mkdir -p $_TOP/gnu/lib/libiberty/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH
getvars libiberty/Makefile \
ALLOCA EXTRA_OFILES LIBOBJS REQUIRED_OFILES \
- | write_mk gnu/lib/libiberty/arch/$MACHINE_ARCH/defs.mk
+ | write_mk external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH/defs.mk
- write_c gnu/lib/libiberty/arch/$MACHINE_ARCH/config.h \
+ write_c external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH/config.h \
<$_TMPDIR/libiberty/config.h
}
-##### gnu/usr.bin/binutils #####
+##### external/gpl3/binutils/usr.bin #####
get_binutils () {
### common
- mkdir -p $_TOP/gnu/usr.bin/binutils/common/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH
{
getvars binutils/Makefile \
@@ -77,46 +78,46 @@
for f in `getvars binutils/Makefile PROGRAMS | sed 'y,-,_,;s,^[^=]*=,,'`; do
getvars binutils/Makefile ${f}_OBJECTS ${f}_DEPENDENCIES
done
- } | write_mk gnu/usr.bin/binutils/common/arch/$MACHINE_ARCH/defs.mk
+ } | write_mk external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH/defs.mk
- write_c gnu/usr.bin/binutils/common/arch/$MACHINE_ARCH/config.h \
+ write_c external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH/config.h \
<$_TMPDIR/binutils/config.h
### gas
- mkdir -p $_TOP/gnu/usr.bin/binutils/gas/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH
getvars gas/Makefile \
DEFS INCLUDES OBJS \
- | write_mk gnu/usr.bin/binutils/gas/arch/$MACHINE_ARCH/defs.mk
+ | write_mk external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/defs.mk
for f in config itbl-cpu obj-format targ-cpu targ-env; do
- write_c gnu/usr.bin/binutils/gas/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gas/$f.h
+ write_c external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gas/$f.h
done
### gprof
- mkdir -p $_TOP/gnu/usr.bin/binutils/gprof/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH
getvars gprof/Makefile \
DEFS gprof_OBJECTS INCLUDES TEXINFOS \
- | write_mk gnu/usr.bin/binutils/gprof/arch/$MACHINE_ARCH/defs.mk
+ | write_mk external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH/defs.mk
- write_c gnu/usr.bin/binutils/gprof/arch/$MACHINE_ARCH/gconfig.h <$_TMPDIR/gprof/gconfig.h
+ write_c external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH/gconfig.h <$_TMPDIR/gprof/gconfig.h
### ld
- mkdir -p $_TOP/gnu/usr.bin/binutils/ld/arch/$MACHINE_ARCH
+ mkdir -p $_TOP/external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH
{
getvars ld/Makefile \
DEFS EMUL EMULATION_OFILES INCLUDES OFILES STRINGIFY TEXINFOS
getvars ld/Makefile \
target_alias | sed 's,[\._0-9A-Z]*$,,'
- } | write_mk gnu/usr.bin/binutils/ld/arch/$MACHINE_ARCH/defs.mk
+ } | write_mk external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH/defs.mk
for f in config ldemul-list; do
- write_c gnu/usr.bin/binutils/ld/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/ld/$f.h
+ write_c external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/ld/$f.h
done
}
Home |
Main Index |
Thread Index |
Old Index