summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-09-01 14:16:36 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-09-01 14:16:36 +0000
commitea7601418278f6a0f7fc688498468f250317e910 (patch)
tree436d0f14df4215440b93bf3c7c91f8ea3e99b749 /vars
parent7ac25af96a0f29ef724a7deb3bf82e81d1f309d4 (diff)
downloadmidipix_build-ea7601418278f6a0f7fc688498468f250317e910.tar.bz2
midipix_build-ea7601418278f6a0f7fc688498468f250317e910.tar.xz
vars/build.vars:native_toolchain: adds gdb v7.12.
vars/build.vars:{host,native}_toolchain: adds gdb{_host,} v7.12.
Diffstat (limited to 'vars')
-rw-r--r--vars/build.vars25
-rw-r--r--vars/gdb.vars16
l---------vars/gdb_host.vars1
3 files changed, 40 insertions, 2 deletions
diff --git a/vars/build.vars b/vars/build.vars
index b2bd013c..f4071255 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 00000000..f022178d
--- /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 00000000..ee41c557
--- /dev/null
+++ b/vars/gdb_host.vars
@@ -0,0 +1 @@
+gdb.vars \ No newline at end of file