From 9b1ae2170a10eb98b33c28b8be5d30b60a0a32d9 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 20 Mar 2014 11:06:10 +1100 Subject: [PATCH] freebsd: Add support for FreeBSD 10.0. GDB did not build out of the box on FreeBSD 10.0 due to the iconv move to libc effecting the gettext port with Python. The patch provided is from the gdb port (devel/gdb) and add the LDFLAGS to the link command line when Python is used and this adds /usr/local/lib if needed. --- doc/source-builder.txt | 23 ++++++++++++++++++++++- rtems/config/tools/rtems-gdb-7.6.2-1.cfg | 3 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/source-builder.txt b/doc/source-builder.txt index 6cfa02d..9d7a2b3 100644 --- a/doc/source-builder.txt +++ b/doc/source-builder.txt @@ -2545,7 +2545,28 @@ $ sudo apt-get build-dep binutils gcc g++ gdb unzip git FreeBSD ~~~~~~~ -The RTEMS Source Builder has been tested on FreeBSD 9.1 64bit. +The RTEMS Source Builder has been tested on FreeBSD 9.1 and 10.0 64bit. You +need to install some ports. They are: + +------------------------------------------------------------- +# cd /usr/ports +# portinstall --batch lang/python27 +------------------------------------------------------------- + +If you wish to build Windows (mingw32) tools please install the following +ports: + +------------------------------------------------------------- +# cd /usr/ports +# portinstall --batch devel/mingw32-binutils devel/mingw32-gcc +# portinstall --batch devel/mingw32-zlib devel/mingw32-pthreads +------------------------------------------------------------- + +The +zlip+ and +pthreads+ ports for MinGW32 are used for builiding a Windows +QEMU. + +If you are on FreeBSD 10.0 and you have pkgng installed you can use 'pkg +install' rather than 'portinstall'. NetBSD ~~~~~~ diff --git a/rtems/config/tools/rtems-gdb-7.6.2-1.cfg b/rtems/config/tools/rtems-gdb-7.6.2-1.cfg index 15a7022..7932c19 100644 --- a/rtems/config/tools/rtems-gdb-7.6.2-1.cfg +++ b/rtems/config/tools/rtems-gdb-7.6.2-1.cfg @@ -12,6 +12,9 @@ # %include rtems-gdb-patches.cfg +%define patch5 %{rtems_gdb_patches}/patch-gdb-python-python-config.py +%define patch5_opts -p0 + # # The gdb build instructions. We use 7.xx Release 1. #