mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
Some updates from Andrew May adding gdbserver and adjusting gdb
in the hope of better cross-compiling support
This commit is contained in:
parent
7843196520
commit
a88a16700e
@ -20,9 +20,11 @@ $(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
|
|||||||
AR=$(TARGET_CROSS)ar NM=$(TARGET_CROSS)nm \
|
AR=$(TARGET_CROSS)ar NM=$(TARGET_CROSS)nm \
|
||||||
LD=$(TARGET_CROSS)ld AS=$(TARGET_CROSS)as \
|
LD=$(TARGET_CROSS)ld AS=$(TARGET_CROSS)as \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--includedir=$(STAGING_DIR)/include \
|
--includedir=$(STAGING_DIR)/include \
|
||||||
--disable-nls --without-uiout --disable-gdbmi \
|
--disable-nls --without-uiout --disable-gdbmi \
|
||||||
--disable-tui --disable-gdbtk --without-x \
|
--disable-tui --disable-gdbtk --without-x \
|
||||||
|
--disable-sim --enable-gdbserver \
|
||||||
--without-included-gettext);
|
--without-included-gettext);
|
||||||
touch $(GDB_DIR)/.configured
|
touch $(GDB_DIR)/.configured
|
||||||
|
|
||||||
|
39
make/gdbserver.mk
Normal file
39
make/gdbserver.mk
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
# gdb
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
|
||||||
|
GDB_SITE:=ftp://ftp.gnu.org/gnu/gdb/
|
||||||
|
GDB_DIR:=$(BUILD_DIR)/gdb-5.2
|
||||||
|
GDB_SOURCE:=gdb-5.2.tar.gz
|
||||||
|
GDB_WDIR:=$(BUILD_DIR)/gdbserver
|
||||||
|
|
||||||
|
|
||||||
|
$(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
|
||||||
|
(cd $(GDB_WDIR); rm -rf config.cache; CC=$(TARGET_CC1) \
|
||||||
|
AR=$(TARGET_CROSS)ar NM=$(TARGET_CROSS)nm \
|
||||||
|
LD=$(TARGET_CROSS)ld AS=$(TARGET_CROSS)as \
|
||||||
|
$(GDB_DIR)/gdb/gdbserver/configure --prefix=/usr \
|
||||||
|
--target=$(GNU_TARGET_NAME) \
|
||||||
|
--includedir=$(STAGING_DIR)/include \
|
||||||
|
--disable-nls --without-uiout --disable-gdbmi \
|
||||||
|
--disable-tui --disable-gdbtk --without-x \
|
||||||
|
--without-included-gettext);
|
||||||
|
touch $(GDB_WDIR)/.configured
|
||||||
|
|
||||||
|
$(GDB_DIR)/gdb/gdbserver/gdbserver: $(GDB_WDIR)/.configured
|
||||||
|
make CC=$(TARGET_CC1) -C $(GDB_WDIR)
|
||||||
|
$(STRIP) $(GDB_WDIR)/gdbserver
|
||||||
|
|
||||||
|
$(TARGET_DIR)/usr/bin/gdbserver: $(GDB_DIR)/gdb/gdbserver/gdbserver
|
||||||
|
install -c $(GDB_WDIR)/gdbserver $(TARGET_DIR)/usr/bin/gdbserver
|
||||||
|
|
||||||
|
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
|
||||||
|
|
||||||
|
gdbserver-clean:
|
||||||
|
make -C $(GDB_WDIR) clean
|
||||||
|
|
||||||
|
gdbserver-dirclean:
|
||||||
|
rm -rf $(GDB_WDIR)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user