diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-05-07 10:10:59 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-05-07 10:10:59 +0200 |
| commit | c9ba42a4ed3e98bc7936e07e1653103bac611861 (patch) | |
| tree | 16695ffec1ead81b226f411ac6ad22936d28aa43 /scripts | |
| parent | 3fff4803a38c9e3ae22844319d6392e96ee7042e (diff) | |
| download | toolchains-c9ba42a4ed3e98bc7936e07e1653103bac611861.tar.xz toolchains-c9ba42a4ed3e98bc7936e07e1653103bac611861.zip | |
gdb: enable python scripting
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/0000-prepare-os.sh | 2 | ||||
| -rwxr-xr-x | scripts/0600-build-target-gdb.sh | 20 |
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" |
