summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-07 10:10:59 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-07 10:10:59 +0200
commitc9ba42a4ed3e98bc7936e07e1653103bac611861 (patch)
tree16695ffec1ead81b226f411ac6ad22936d28aa43 /scripts
parent3fff4803a38c9e3ae22844319d6392e96ee7042e (diff)
downloadtoolchains-c9ba42a4ed3e98bc7936e07e1653103bac611861.tar.xz
toolchains-c9ba42a4ed3e98bc7936e07e1653103bac611861.zip
gdb: enable python scripting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/0000-prepare-os.sh2
-rwxr-xr-xscripts/0600-build-target-gdb.sh20
2 files changed, 12 insertions, 10 deletions
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"