Browse Source

- align target-development.mk to max_10

master
vanhofen 6 years ago
parent
commit
ea482bddb2
  1. 65
      make/target-development.mk

65
make/target-development.mk

@ -8,18 +8,21 @@ valgrind: valgrind-$(BOXSERIES)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
VALGRIND_VER = 3.13.0 VALGRIND_VER = 3.13.0
VALGRIND = valgrind-$(VALGRIND_VER)
VALGRIND_SOURCE = valgrind-$(VALGRIND_VER).tar.bz2
VALGRIND_URL = ftp://sourceware.org/pub/valgrind
$(ARCHIVE)/valgrind-$(VALGRIND_VER).tar.bz2: $(ARCHIVE)/$(VALGRIND_SOURCE):
$(DOWNLOAD) ftp://sourceware.org/pub/valgrind/valgrind-$(VALGRIND_VER).tar.bz2 $(DOWNLOAD) $(VALGRIND_URL)/$(VALGRIND_SOURCE)
VALGRIND_PATCH = valgrind-fix-$(BOXSERIES)-build.patch VALGRIND_PATCH = valgrind-fix-$(BOXSERIES)-build.patch
$(D)/valgrind-bre2ze4k \ $(D)/valgrind-bre2ze4k \
$(D)/valgrind-hd51 \ $(D)/valgrind-hd51 \
$(D)/valgrind-hd2: $(ARCHIVE)/valgrind-$(VALGRIND_VER).tar.bz2 | $(TARGET_DIR) $(D)/valgrind-hd2: $(ARCHIVE)/$(VALGRIND_SOURCE) | $(TARGET_DIR)
$(REMOVE)/valgrind-$(VALGRIND_VER) $(REMOVE)/$(VALGRIND)
$(UNTAR)/valgrind-$(VALGRIND_VER).tar.bz2 $(UNTAR)/$(VALGRIND_SOURCE)
$(CHDIR)/valgrind-$(VALGRIND_VER); \ $(CHDIR)/$(VALGRIND); \
$(call apply_patches, $(VALGRIND_PATCH)); \ $(call apply_patches, $(VALGRIND_PATCH)); \
export AR=$(TARGET)-ar; \ export AR=$(TARGET)-ar; \
autoreconf -fi; \ autoreconf -fi; \
@ -32,12 +35,9 @@ $(D)/valgrind-hd2: $(ARCHIVE)/valgrind-$(VALGRIND_VER).tar.bz2 | $(TARGET_DIR)
$(MAKE) all; \ $(MAKE) all; \
make install DESTDIR=$(TARGET_DIR) make install DESTDIR=$(TARGET_DIR)
$(REWRITE_PKGCONF)/valgrind.pc $(REWRITE_PKGCONF)/valgrind.pc
rm $(TARGET_DIR)/bin/callgrind_annotate rm -f $(addprefix $(TARGET_LIB_DIR)/valgrind/,*.a *.xml)
rm $(TARGET_DIR)/bin/callgrind_control rm -f $(addprefix $(TARGET_BIN_DIR)/,cg_* callgrind_* ms_print)
rm $(TARGET_DIR)/bin/cg_annotate $(REMOVE)/$(VALGRIND)
rm $(TARGET_DIR)/bin/cg_diff
rm $(TARGET_DIR)/bin/ms_print
$(REMOVE)/valgrind-$(VALGRIND_VER)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -66,15 +66,18 @@ $(D)/valgrind-hd1:
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
STRACE_VER = 4.21 STRACE_VER = 5.1
STRACE = strace-$(STRACE_VER)
STRACE_SOURCE = strace-$(STRACE_VER).tar.xz
STRACE_URL = https://strace.io/files/$(STRACE_VER)
$(ARCHIVE)/strace-$(STRACE_VER).tar.xz: $(ARCHIVE)/$(STRACE_SOURCE):
$(DOWNLOAD) http://sourceforge.net/projects/strace/files/strace/$(STRACE_VER)/strace-$(STRACE_VER).tar.xz $(DOWNLOAD) $(STRACE_URL)/$(STRACE_SOURCE)
$(D)/strace: $(ARCHIVE)/strace-$(STRACE_VER).tar.xz | $(TARGET_DIR) $(D)/strace: $(ARCHIVE)/$(STRACE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/strace-$(STRACE_VER) $(REMOVE)/$(STRACE)
$(UNTAR)/strace-$(STRACE_VER).tar.xz $(UNTAR)/$(STRACE_SOURCE)
$(CHDIR)/strace-$(STRACE_VER); \ $(CHDIR)/$(STRACE); \
$(CONFIGURE) \ $(CONFIGURE) \
--prefix= \ --prefix= \
--mandir=/.remove \ --mandir=/.remove \
@ -82,22 +85,24 @@ $(D)/strace: $(ARCHIVE)/strace-$(STRACE_VER).tar.xz | $(TARGET_DIR)
; \ ; \
$(MAKE) all; \ $(MAKE) all; \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
rm $(TARGET_DIR)/bin/strace-graph rm -f $(addprefix $(TARGET_BIN_DIR)/,strace-graph strace-log-merge)
rm $(TARGET_DIR)/bin/strace-log-merge $(REMOVE)/$(STRACE)
$(REMOVE)/strace-$(STRACE_VER)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
GDB_VER = 8.1.1 GDB_VER = 8.1.1
GDB = gdb-$(GDB_VER)
GDB_SOURCE = gdb-$(GDB_VER).tar.xz
GDB_URL = https://sourceware.org/pub/gdb/releases
$(ARCHIVE)/gdb-$(GDB_VER).tar.xz: $(ARCHIVE)/$(GDB_SOURCE):
$(DOWNLOAD) http://ftp.gnu.org/gnu/gdb/gdb-$(GDB_VER).tar.xz $(DOWNLOAD) $(GDB_URL)/$(GDB_SOURCE)
$(D)/gdb: $(D)/zlib $(D)/libncurses $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGET_DIR) $(D)/gdb: $(D)/zlib $(D)/libncurses $(ARCHIVE)/$(GDB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/gdb-$(GDB_VER) $(REMOVE)/$(GDB)
$(UNTAR)/gdb-$(GDB_VER).tar.xz $(UNTAR)/$(GDB_SOURCE)
$(CHDIR)/gdb-$(GDB_VER); \ $(CHDIR)/$(GDB); \
$(CONFIGURE) \ $(CONFIGURE) \
--prefix= \ --prefix= \
--mandir=/.remove \ --mandir=/.remove \
@ -110,9 +115,9 @@ $(D)/gdb: $(D)/zlib $(D)/libncurses $(ARCHIVE)/gdb-$(GDB_VER).tar.xz | $(TARGET_
; \ ; \
$(MAKE) all-gdb; \ $(MAKE) all-gdb; \
$(MAKE) install-gdb DESTDIR=$(TARGET_DIR) $(MAKE) install-gdb DESTDIR=$(TARGET_DIR)
rm -rf $(TARGET_SHARE_DIR)/gdb/system-gdbinit rm -rf $(addprefix $(TARGET_SHARE_DIR)/,system-gdbinit)
find $(TARGET_SHARE_DIR)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm -- find $(TARGET_SHARE_DIR)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm --
$(REMOVE)/gdb-$(GDB_VER) $(REMOVE)/$(GDB)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

Loading…
Cancel
Save