]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
neutrino.mk: build optional with debug symbols | bump version gdb-7.12.1
authorMarkham <markham001@gmx.de>
Sat, 3 Jun 2017 08:48:30 +0000 (10:48 +0200)
committerMarkham <markham001@gmx.de>
Sat, 3 Jun 2017 08:48:30 +0000 (10:48 +0200)
make/applications.mk
make/archives.mk
make/neutrino.mk
make/versions.mk

index 8979477dfe3565cf0081c9e0091d0ed26f6f9013..f43608265871e768587e9eb89bb989fad353d2ec 100755 (executable)
@@ -223,9 +223,10 @@ $(D)/hd-idle: $(ARCHIVE)/hd-idle-$(HD_IDLE_VER).tgz | $(TARGETPREFIX)
 
 #  NOTE:
 #  gdb built for target or local-PC
-$(D)/gdb: $(ARCHIVE)/gdb-7.3.1.tar.bz2 | $(TARGETPREFIX)
-       $(UNTAR)/gdb-7.3.1.tar.bz2
-       pushd $(BUILD_TMP)/gdb-7.3.1 && \
+$(D)/gdb: $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGETPREFIX)
+       $(REMOVE)/gdb-$(GDB_VER)
+       $(UNTAR)/gdb-$(GDB_VER).tar.xz
+       pushd $(BUILD_TMP)/gdb-$(GDB_VER) && \
                $(BUILDENV) \
                ./configure \
                        --nfp --disable-werror \
@@ -235,22 +236,22 @@ $(D)/gdb: $(ARCHIVE)/gdb-7.3.1.tar.bz2 | $(TARGETPREFIX)
                        --build=$(BUILD) --host=$(TARGET) && \
                $(MAKE) all-gdb && \
                $(MAKE) install-gdb prefix=$(TARGETPREFIX) && \
-       $(REMOVE)/gdb-7.3.1
+       $(REMOVE)/gdb-$(GDB_VER)
        $(REMOVE)/.remove
        touch $@
 
 #  NOTE:
 #  gdb-remote built for local-PC or target
-$(D)/gdb-remote: $(ARCHIVE)/gdb-7.3.1.tar.bz2 | $(TARGETPREFIX)
-       $(UNTAR)/gdb-7.3.1.tar.bz2
-       pushd $(BUILD_TMP)/gdb-7.3.1 && \
+$(D)/gdb-remote: $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGETPREFIX)
+       $(UNTAR)/gdb-$(GDB_VER).tar.xz
+       pushd $(BUILD_TMP)/gdb-$(GDB_VER) && \
                ./configure \
                        --nfp --disable-werror \
                        --prefix=$(HOSTPREFIX) \
                        --build=$(BUILD) --host=$(BUILD) --target=$(TARGET) && \
                $(MAKE) all-gdb && \
                $(MAKE) install-gdb && \
-       $(REMOVE)/gdb-7.3.1
+       $(REMOVE)/gdb-$(GDB_VER)
        touch $@
 
 # MTD-UTILS
index e2ea11674206f31d2da2f7b83e23b48ffe878907..bea77846df39732cf8f748f41b8e61538546e751 100755 (executable)
@@ -279,6 +279,9 @@ $(ARCHIVE)/tzdata$(TZ_VER).tar.gz:
 $(ARCHIVE)/u-boot-$(U-BOOT_VER).tar.bz2:
        $(WGET) ftp://ftp.denx.de/pub/u-boot/u-boot-$(U-BOOT_VER).tar.bz2
 
+$(ARCHIVE)/gdb-$(GDB_VER).tar.xz:
+       $(WGET) http://ftp.gnu.org/gnu/gdb/gdb-$(GDB_VER).tar.xz
+
 GV=`echo $(CUSTOM_GCC_VER) | cut -d'-' -f2-`
 $(ARCHIVE)/gcc-$(CUSTOM_GCC_VER).tar.xz:
        $(WGET) https://releases.linaro.org/components/toolchain/gcc-linaro/$(GV)/gcc-linaro-$(GV).tar.xz
index 60e1da2490bccf4a8c770ea76aab4660a4a22ea7..3b48819b5298062f2a2f8479ac947b39b20bf3b9 100755 (executable)
@@ -3,7 +3,15 @@
 N_CFLAGS  = -Wall -Werror -Wextra -Wshadow -Wsign-compare
 #N_CFLAGS += -Wconversion
 #N_CFLAGS += -Wfloat-equal
+
+OPTIMIZATION = normal
+
+ifeq ($(OPTIMIZATION), debug)
+N_CFLAGS += -g -O1 -ggdb3
+endif
+ifeq ($(OPTIMIZATION), normal)
 N_CFLAGS += -O2
+endif
 N_CFLAGS += -fmax-errors=10
 N_CFLAGS += -D__KERNEL_STRICT_NAMES
 N_CFLAGS += -DNEW_LIBCURL
index f3320a9a844765e6e302c4d04504d4fa97a6215d..41cb42c5a28f0077b931e76303e3876685be7be2 100644 (file)
@@ -27,6 +27,9 @@ DROPBEAR_VER=2016.74
 # libgd2; an open source code library for the dynamic creation of images
 GD_VER = 2.0.35
 
+# GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes
+GDB_VER=7.12.1
+
 GETTEXT_VER = 0.19.8
 
 # giflib: converting images replaces libungif