From c9ba42a4ed3e98bc7936e07e1653103bac611861 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 7 May 2026 10:10:59 +0200 Subject: gdb: enable python scripting --- scripts/0000-prepare-os.sh | 2 ++ scripts/0600-build-target-gdb.sh | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'scripts') diff --git a/scripts/0000-prepare-os.sh b/scripts/0000-prepare-os.sh index a2039ad..4af069e 100755 --- a/scripts/0000-prepare-os.sh +++ b/scripts/0000-prepare-os.sh @@ -15,6 +15,8 @@ apt-get install -y --no-install-recommends \ gawk \ libtool \ patch \ + python${PYTHON_VERSION} \ + python${PYTHON_VERSION}-dev \ texinfo \ wget \ xz-utils diff --git a/scripts/0600-build-target-gdb.sh b/scripts/0600-build-target-gdb.sh index 8e984d8..8bd5a68 100755 --- a/scripts/0600-build-target-gdb.sh +++ b/scripts/0600-build-target-gdb.sh @@ -10,16 +10,16 @@ tar xf /downloads/gdb-$GDB_VERSION.tar.xz cd .build -../gdb-$GDB_VERSION/configure \ - --prefix=/opt/toolchain \ - --target=$TARGET \ - --disable-nls \ - --disable-werror \ - --with-gmp=$STATIC_DEPS_PREFIX \ - --with-mpfr=$STATIC_DEPS_PREFIX \ - --with-python=no \ - --with-expat=yes \ - --with-zlib=yes \ +../gdb-$GDB_VERSION/configure \ + --prefix=/opt/toolchain \ + --target=$TARGET \ + --disable-nls \ + --disable-werror \ + --with-gmp=$STATIC_DEPS_PREFIX \ + --with-mpfr=$STATIC_DEPS_PREFIX \ + --with-python=/usr/bin/python${PYTHON_VERSION} \ + --with-expat=yes \ + --with-zlib=yes \ CPPFLAGS="-I$STATIC_DEPS_PREFIX/include -I$STATIC_DEPS_PREFIX/include/ncursesw" \ LDFLAGS="-L$STATIC_DEPS_PREFIX/lib" -- cgit v1.2.3