Add buildroot 2018-02
This commit is contained in:
14
buildroot/package/strace/Config.in
Normal file
14
buildroot/package/strace/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_STRACE
|
||||
bool "strace"
|
||||
# needs at least kernel headers 4.0 on nios2
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 || !BR2_nios2
|
||||
help
|
||||
A useful diagnostic, instructional, and debugging tool.
|
||||
Allows you to track what system calls a program makes
|
||||
while it is running.
|
||||
|
||||
https://strace.io
|
||||
|
||||
comment "strace needs a toolchain w/ headers >= 4.0 on nios2"
|
||||
depends on BR2_nios2
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
|
||||
7
buildroot/package/strace/strace.hash
Normal file
7
buildroot/package/strace/strace.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://sourceforge.net/projects/strace/files/strace/4.20/
|
||||
md5 f2271ab0fac49ebee9cbd7f3469227cb strace-4.20.tar.xz
|
||||
sha1 9cebc754af3434e4027a07745770892f685c0316 strace-4.20.tar.xz
|
||||
# Locally calculated after checking signature
|
||||
# https://sourceforge.net/projects/strace/files/strace/4.20/strace-4.20.tar.xz.asc
|
||||
sha256 5bf3148dd17306a42566f7da17368fdd781afa147db05ea63a4ca2b50f58c523 strace-4.20.tar.xz
|
||||
sha256 ea7ff222f36c9df0aa2924a8f7c7d2aec3ea11e752feba4b15ec79b695b6236a COPYING
|
||||
27
buildroot/package/strace/strace.mk
Normal file
27
buildroot/package/strace/strace.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# strace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
STRACE_VERSION = 4.20
|
||||
STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz
|
||||
STRACE_SITE = http://downloads.sourceforge.net/project/strace/strace/$(STRACE_VERSION)
|
||||
STRACE_LICENSE = BSD-3-Clause
|
||||
STRACE_LICENSE_FILES = COPYING
|
||||
|
||||
# strace bundle some kernel headers to build libmpers, this mixes userspace
|
||||
# headers and kernel headers which break the build with musl.
|
||||
# The stddef.h from gcc is used instead of the one from musl.
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
STRACE_CONF_OPTS += st_cv_m32_mpers=no \
|
||||
st_cv_mx32_mpers=no
|
||||
endif
|
||||
|
||||
define STRACE_REMOVE_STRACE_GRAPH
|
||||
rm -f $(TARGET_DIR)/usr/bin/strace-graph
|
||||
endef
|
||||
|
||||
STRACE_POST_INSTALL_TARGET_HOOKS += STRACE_REMOVE_STRACE_GRAPH
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user