$(REMOVE)/hd-idle
$(TOUCH)
-# NOTE:
+# NOTE
# gdb built for target or local-PC
-$(D)/gdb: $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGETPREFIX)
+$(D)/gdb: $(D)/zlib $(D)/libncurses $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGETPREFIX)
$(START_BUILD)
$(REMOVE)/gdb-$(GDB_VER)
$(UNTAR)/gdb-$(GDB_VER).tar.xz
- pushd $(BUILD_TMP)/gdb-$(GDB_VER) && \
- $(BUILDENV) \
+ set -e; cd $(BUILD_TMP)/gdb-$(GDB_VER); \
./configure \
- --nfp --disable-werror \
+ --build=$(BUILD) \
+ --host=$(TARGET) \
+ --target=$(TARGET) \
--prefix= \
- --mandir=/.remove \
- --infodir=/.remove \
- --build=$(BUILD) --host=$(TARGET) && \
- $(MAKE) all-gdb && \
- $(MAKE) install-gdb prefix=$(TARGETPREFIX) && \
+ --mandir=$(BUILD_TMP)/.remove \
+ --infodir=$(BUILD_TMP)/.remove \
+ --datarootdir=$(BUILD_TMP)/.remove \
+ --disable-binutils \
+ --disable-werror \
+ --nfp \
+ --with-curses \
+ --with-zlib \
+ --enable-static; \
+ $(MAKE) all-gdb; \
+ make install-gdb prefix=$(TARGETPREFIX)
+ rm -rf $(TARGETPREFIX)/share/gdb/system-gdbinit
+ find $(TARGETPREFIX)/share/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm --
$(REMOVE)/gdb-$(GDB_VER)
$(TOUCH)