Skip to content

Commit

Permalink
Install gdb in the full build
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioc committed Feb 1, 2024
1 parent fcd268b commit ab9419a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
15 changes: 14 additions & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,18 @@ install_gawk() {
cd ..
}

install_gdb() {
rm -rf $GDB_SRC.obj &&
mkdir -p $GDB_SRC.obj &&
pushd $GDB_SRC.obj &&
$SOURCE/$GDB_SRC/configure --prefix=$SYS_ROOT \
--build=$HOST \
--host=$TARGET &&
make -j$PROCS &&
make install &&
popd
}

install_libpciaccess () {
rm -rf $LIBPCIACCESS_SRC.obj &&
mkdir -p $LIBPCIACCESS_SRC.obj &&
Expand Down Expand Up @@ -694,7 +706,8 @@ install_development_tools() {
install_mpc &&
install_gcc &&
install_make &&
install_flex
install_flex &&
install_gdb
}

install_editors() {
Expand Down
1 change: 1 addition & 0 deletions download-funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ LIBPCIACCESS_URL=https://www.x.org/pub/individual/lib/$LIBPCIACCESS_PKG
LIBXCRYPT_URL=https://github.com/besser82/libxcrypt/releases/download/v$LIBXCRYPT_VERSION/$LIBXCRYPT_PKG
PARTED_URL=https://ftp.gnu.org/gnu/parted/$PARTED_PKG
DMIDECODE_URL=http://download.savannah.gnu.org/releases/dmidecode/$DMIDECODE_PKG
GDB_URL=https://ftp.gnu.org/gnu/gdb/$GDB_PKG

unpack () {
if [ -d "$3" ]; then
Expand Down
3 changes: 3 additions & 0 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ unpack jxf $MPFR_PKG $MPFR_SRC &&
download $MPC_PKG $MPC_URL &&
unpack zxf $MPC_PKG $MPC_SRC &&

download $GDB_PKG $GDB_URL &&
unpack xf $GDB_PKG $GDB_SRC &&

download_libxcrypt &&

download_ncurses &&
Expand Down
1 change: 1 addition & 0 deletions package-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ LIBPCIACCESS_VERSION=0.17
LIBXCRYPT_VERSION=4.4.36
PARTED_VERSION=3.5
DMIDECODE_VERSION=3.5
GDB_VERSION=14.1
# Mach, Hurd and Glibc are all taken from the Git repository.

2 changes: 2 additions & 0 deletions vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ PARTED_SRC=parted-$PARTED_VERSION
PARTED_PKG=$PARTED_SRC.tar.xz
DMIDECODE_SRC=dmidecode-$DMIDECODE_VERSION
DMIDECODE_PKG=$DMIDECODE_SRC.tar.xz
GDB_SRC=gdb-$GDB_VERSION
GDB_PKG=$GDB_SRC.tar.xz

print_info ()
{
Expand Down

0 comments on commit ab9419a

Please sign in to comment.