dslinux/toolchain Makefile symbolmap.sh
stsp
stsp at user.in-berlin.de
Sat Sep 30 23:14:03 CEST 2006
Update of /cvsroot/dslinux/dslinux/toolchain
In directory antilope:/tmp/cvs-serv30978
Modified Files:
Makefile
Added Files:
symbolmap.sh
Log Message:
Add script that creates a nice symbol map from .gdb files.
--- NEW FILE: symbolmap.sh ---
#!/bin/sh
if [ -z "$1" ]
then
echo "Usage: `basename $0` <file.gdb>"
exit 1
fi
arm-linux-elf-nm $1 | grep -v '\(compiled\)\|\(\.o$$\)\|\( a \)' | sort
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/toolchain/Makefile,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Makefile 30 Sep 2006 12:05:28 -0000 1.22
+++ Makefile 30 Sep 2006 21:14:00 -0000 1.23
@@ -74,6 +74,7 @@
KERNEL_SRCDIR := $(CWD)/../linux-2.6.x
UCLIBC_SRCDIR := $(CWD)/../uClibc
NDSTOOL_SRCDIR := $(CWD)/ndstool
+SYMBOLMAP_SH := $(CWD)/symbolmap.sh
BINUTILS_OBJDIR := $(OBJDIR)/binutils-$(BINUTILS_VER)
GCC_OBJDIR := $(OBJDIR)/gcc-$(GCC_VER)
@@ -96,7 +97,8 @@
# for the bootstrap process.
all: dirs-create binutils-install elf2flt-install sysroot-create \
gcc-stage1-install uClibc-install gcc-stage2-install \
- genromfs-install libelf-install ndstool-install strip dist
+ genromfs-install libelf-install ndstool-install \
+ symbolmap.sh-install strip dist
# If you just want to download distfiles, use this target.
fetch: $(CWD)/.dirs-created $(DISTFILES)
@@ -573,6 +575,18 @@
touch $@
#######################################################################
+# symbolmap.sh
+#######################################################################
+
+symbolmap.sh-install: $(SRCDIR)/.symbolmap.sh-installed
+symbolmap.sh-reset:
+ rm -f $(SRCDIR)/.symbolmap.sh-installed
+
+$(SRCDIR)/.symbolmap.sh-installed:
+ install -m 755 $(SYMBOLMAP_SH) $(PREFIX)/bin
+ touch $@
+
+#######################################################################
# strip
#######################################################################
More information about the dslinux-commit
mailing list