mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
adding gdb for debug
This commit is contained in:
parent
7679949b53
commit
326e6a873b
@ -135,14 +135,29 @@ LCD_MODEL=HD44780-winamp
|
|||||||
LCD_WIDTH=16
|
LCD_WIDTH=16
|
||||||
LCD_HEIGHT=2
|
LCD_HEIGHT=2
|
||||||
|
|
||||||
# enable debuging (debugging flags and enables gdb)
|
if [ "$OPENELEC_VERSION" = devel ]; then
|
||||||
DEBUG=no
|
|
||||||
|
|
||||||
# enable gdb (yes/no)
|
# enable debuging (debugging flags and enables gdb)
|
||||||
GDB=yes
|
DEBUG=no
|
||||||
|
|
||||||
# enable devel tools (yes/no)
|
# enable gdb (yes/no)
|
||||||
DEVTOOLS=yes
|
GDB=yes
|
||||||
|
|
||||||
|
# enable devel tools (yes/no)
|
||||||
|
DEVTOOLS=yes
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
# enable debuging (debugging flags and enables gdb)
|
||||||
|
DEBUG=no
|
||||||
|
|
||||||
|
# enable gdb (yes/no)
|
||||||
|
GDB=no
|
||||||
|
|
||||||
|
# enable devel tools (yes/no)
|
||||||
|
DEVTOOLS=no
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# verbose compilation mode (yes/no)
|
# verbose compilation mode (yes/no)
|
||||||
VERBOSE=yes
|
VERBOSE=yes
|
||||||
|
26
packages/devel/gdb/build
Executable file
26
packages/devel/gdb/build
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
$SCRIPTS/build ncurses
|
||||||
|
|
||||||
|
export bash_cv_have_mbstate_t=set
|
||||||
|
export ac_cv_libexpat=no
|
||||||
|
|
||||||
|
export CC_FOR_BUILD="$HOST_CC"
|
||||||
|
export CFLAGS_FOR_BUILD="$HOST_CFLAGS"
|
||||||
|
|
||||||
|
cd $BUILD/$1*
|
||||||
|
mkdir -p objdir
|
||||||
|
cd objdir
|
||||||
|
../configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--with-sysroot=$SYSROOT_PREFIX \
|
||||||
|
--disable-nls \
|
||||||
|
--disable-sim \
|
||||||
|
--without-x \
|
||||||
|
--disable-tui \
|
||||||
|
--disable-libada \
|
||||||
|
|
||||||
|
make
|
5
packages/devel/gdb/install
Executable file
5
packages/devel/gdb/install
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
cp $BUILD/$1*/objdir/$1/$1 $INSTALL/usr/bin
|
78
packages/devel/gdb/patches/10_uclibc-conf.diff
Normal file
78
packages/devel/gdb/patches/10_uclibc-conf.diff
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
--- gdb-6.3/bfd/configure.orig Fri Oct 8 16:53:56 2004
|
||||||
|
+++ gdb-6.3/bfd/configure Sun Feb 27 18:32:58 2005
|
||||||
|
@@ -3583,6 +3583,11 @@
|
||||||
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gdb-6.3/libtool.m4.orig Wed Jul 21 21:21:41 2004
|
||||||
|
+++ gdb-6.3/libtool.m4 Mon Feb 28 00:08:11 2005
|
||||||
|
@@ -653,6 +653,11 @@
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
newsos6)
|
||||||
|
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
|
||||||
|
lt_cv_file_magic_cmd=/usr/bin/file
|
||||||
|
--- gdb-6.3/ltconfig.orig Tue Oct 5 15:34:42 2004
|
||||||
|
+++ gdb-6.3/ltconfig Sun Feb 27 18:14:41 2005
|
||||||
|
@@ -602,7 +602,7 @@
|
||||||
|
|
||||||
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||||
|
case $host_os in
|
||||||
|
-linux-gnu*) ;;
|
||||||
|
+linux-gnu*|linux-uclibc*) ;;
|
||||||
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||||
|
esac
|
||||||
|
|
||||||
|
@@ -1270,6 +1270,24 @@
|
||||||
|
dynamic_linker='GNU/Linux ld.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ version_type=linux
|
||||||
|
+ need_lib_prefix=no
|
||||||
|
+ need_version=no
|
||||||
|
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||||
|
+ soname_spec='${libname}${release}.so$major'
|
||||||
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||||
|
+ shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
+ shlibpath_overrides_runpath=no
|
||||||
|
+ # This implies no fast_install, which is unacceptable.
|
||||||
|
+ # Some rework will be needed to allow for fast_install
|
||||||
|
+ # before this can be enabled.
|
||||||
|
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||||
|
+ hardcode_into_libs=yes
|
||||||
|
+ # Assume using the uClibc dynamic linker.
|
||||||
|
+ dynamic_linker="uClibc ld.so"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
|
--- gdb-6.3/opcodes/configure.orig Fri Sep 17 08:13:38 2004
|
||||||
|
+++ gdb-6.3/opcodes/configure Mon Feb 28 00:09:42 2005
|
||||||
|
@@ -3595,6 +3595,11 @@
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
newsos6)
|
||||||
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
||||||
|
lt_cv_file_magic_cmd=/usr/bin/file
|
1
packages/devel/gdb/url
Normal file
1
packages/devel/gdb/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://ftp.gnu.org/gnu/gdb/gdb-6.6.tar.bz2
|
@ -71,7 +71,7 @@ case "$2" in
|
|||||||
#[ "$LCD4LINUX" = yes ] && $SCRIPTS/install lcd4linux $1
|
#[ "$LCD4LINUX" = yes ] && $SCRIPTS/install lcd4linux $1
|
||||||
|
|
||||||
# Devtools... (not for Release)
|
# Devtools... (not for Release)
|
||||||
# [ "$DEVTOOLS" = yes ] && $SCRIPTS/install gdb
|
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install gdb
|
||||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install mrxvt
|
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install mrxvt
|
||||||
|
|
||||||
#[ "$EXTRACODECS" = yes ] && $SCRIPTS/install extra-codecs-nonfree $1
|
#[ "$EXTRACODECS" = yes ] && $SCRIPTS/install extra-codecs-nonfree $1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user