From ea7601418278f6a0f7fc688498468f250317e910 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Sep 01 2019 14:16:36 +0000 Subject: vars/build.vars:native_toolchain: adds gdb v7.12. vars/build.vars:{host,native}_toolchain: adds gdb{_host,} v7.12. --- diff --git a/vars/build.vars b/vars/build.vars index b2bd013..f407125 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -251,7 +251,7 @@ HOST_TOOLCHAIN_BUILD_TYPE="host"; HOST_TOOLCHAIN_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --prefix= --target=${DEFAULT_TARGET}"; HOST_TOOLCHAIN_PACKAGES=" binutils_host gcc_stage1_host psxstub_host musl_no_complex_host gcc_runtime_host -musl_full_host ldso_host gcc_libstdcpp_v3_host gcc_full_host nasm_host"; +musl_full_host ldso_host gcc_libstdcpp_v3_host gcc_full_host gdb_host nasm_host"; HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}"; : ${PKG_BINUTILS_HOST_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa}; : ${PKG_BINUTILS_HOST_VERSION:=2.24.51}; @@ -318,6 +318,15 @@ HOST_TOOLCHAIN_PREFIX="${PREFIX_CROSS}"; : ${PKG_GCC_FULL_HOST_GITROOT:=${DEFAULT_GITROOT}}; : ${PKG_GCC_FULL_HOST_NO_CLEAN_BASE_DIR:=1}; : ${PKG_GCC_FULL_HOST_PREFIX:=${PREFIX}}; +: ${PKG_GDB_HOST_SHA256SUM:=149abac4add030a5713f15964bd7465bef7a23712bcc91377ca40949f33e93fb}; +: ${PKG_GDB_HOST_VERSION:=7.12}; +: ${PKG_GDB_HOST_URL:=ftp://sourceware.org/pub/gdb/releases/gdb-${PKG_GDB_HOST_VERSION}.tar.gz}; +: ${PKG_GDB_HOST_CFLAGS_CONFIGURE_EXTRA:="-g3 -O0"}; +: ${PKG_GDB_HOST_CXXFLAGS_CONFIGURE_EXTRA:="-fpermissive -g3 -O0"}; +: ${PKG_GDB_HOST_CONFIGURE_ARGS:="--disable-nls --prefix= --target=${DEFAULT_TARGET} --with-system-libiberty --with-system-readline --with-system-zlib"}; +: ${PKG_GDB_HOST_ENV_VARS_EXTRA:="CFLAGS_FOR_TARGET=-g3 -O0:CXX_FOR_TARGET=-fpermissive -g3 -O0"}; +: ${PKG_GDB_HOST_LIBTOOL:=rdlibtool}; +: ${PKG_GDB_HOST_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gdb-${PKG_GDB_HOST_VERSION}.midipix.patch"}; : ${PKG_NASM_HOST_SHA256SUM:=34fd26c70a277a9fdd54cb5ecf389badedaf48047b269d1008fbc819b24e80bc}; : ${PKG_NASM_HOST_VERSION:=2.14.02}; : ${PKG_NASM_HOST_URL:=https://www.nasm.us/pub/nasm/releasebuilds/${PKG_NASM_HOST_VERSION}/nasm-${PKG_NASM_HOST_VERSION}.tar.bz2}; @@ -398,7 +407,7 @@ NATIVE_TOOLCHAIN_DEPS_PREFIX="${PREFIX_NATIVE}"; # NATIVE_TOOLCHAIN_CONFIGURE_ARGS="--disable-nls --host=${DEFAULT_TARGET} --prefix=/ --target=${DEFAULT_TARGET}"; NATIVE_TOOLCHAIN_PACKAGES=" -binutils musl_full gcc_full"; +binutils musl_full gcc_full gdb"; NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}"; : ${PKG_BINUTILS_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa}; : ${PKG_BINUTILS_VERSION:=2.24.51}; @@ -423,6 +432,18 @@ NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}"; : ${PKG_GCC_FULL_BASE_DIR:=${BUILD_WORKDIR}/gcc-native-${DEFAULT_TARGET}}; : ${PKG_GCC_FULL_GITROOT:=${DEFAULT_GITROOT}}; +: ${PKG_GDB_SHA256SUM:=149abac4add030a5713f15964bd7465bef7a23712bcc91377ca40949f33e93fb}; +: ${PKG_GDB_VERSION:=7.12}; +: ${PKG_GDB_URL:=ftp://sourceware.org/pub/gdb/releases/gdb-${PKG_GDB_VERSION}.tar.gz}; +: ${PKG_GDB_CFLAGS_CONFIGURE_EXTRA:="-g3 -O0"}; +: ${PKG_GDB_CXXFLAGS_CONFIGURE_EXTRA:="-g3 -O0"}; +: ${PKG_GDB_CONFIGURE_ARGS_EXTRA:="--with-system-libiberty --with-system-readline --with-system-zlib"}; +: ${PKG_GDB_ENV_VARS_EXTRA:="CFLAGS_FOR_TARGET=-g3 -O0 --sysroot=${PREFIX_NATIVE}:CXX_FOR_TARGET=-g3 -O0 --sysroot=${PREFIX_NATIVE}:LDFLAGS_FOR_TARGET=--sysroot=${PREFIX_NATIVE}"}; +: ${PKG_GDB_LIBTOOL:=rdlibtool}; +: ${PKG_GDB_MAKEFLAGS_BUILD_EXTRA:="SYSROOT_FLAGS=--sysroot=${PREFIX_NATIVE}"}; +: ${PKG_GDB_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gdb-${PKG_GDB_VERSION}.midipix.patch"}; + + # # Build target native_toolchain_mingw32 # diff --git a/vars/gdb.vars b/vars/gdb.vars new file mode 100644 index 0000000..f022178 --- /dev/null +++ b/vars/gdb.vars @@ -0,0 +1,16 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_gdb_configure_patch_post() { + local _overlay_dname="${BUILD_WORKDIR}/chainport/overlay/m${PKG_NAME%%_*}"; + if [ -d "${_overlay_dname}" ]; then + tar -C "${_overlay_dname}" -cpf - . | tar -C "${PKG_BASE_DIR}/${PKG_SUBDIR}" -xpf -; + fi; +}; + +pkg_gdb_host_configure_patch_post() { + pkg_gdb_configure_patch_post "${@}"; +}; + +# vim:filetype=sh diff --git a/vars/gdb_host.vars b/vars/gdb_host.vars new file mode 120000 index 0000000..ee41c55 --- /dev/null +++ b/vars/gdb_host.vars @@ -0,0 +1 @@ +gdb.vars \ No newline at end of file