Initial Commit
- initial default booting image
This commit is contained in:
16
package/strace/Config.in
Normal file
16
package/strace/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_STRACE
|
||||
bool "strace"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 # time_types.h
|
||||
depends on !BR2_RISCV_32
|
||||
help
|
||||
A useful diagnostic, instructional, and debugging tool.
|
||||
Allows you to track what system calls a program makes
|
||||
while it is running.
|
||||
|
||||
If you want 'strace -k' to work, make sure to enable the
|
||||
'libunwind' package.
|
||||
|
||||
https://strace.io
|
||||
|
||||
comment "strace needs a toolchain w/ headers >= 5.1"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
|
||||
5
package/strace/strace.hash
Normal file
5
package/strace/strace.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://github.com/strace/strace/releases/tag/v7.1
|
||||
sha256 81743ecf2a5b44186b2f5038afdc8beda7e5c70aed15b4fbfbcc6e9ece24490f strace-7.1.tar.xz
|
||||
# Locally computed
|
||||
sha256 b897cf6bb865cdd72f49fba6ca7b66ad075b9bc51d3cf372923220ce18b5350f COPYING
|
||||
sha256 7c379436436a562834aa7d2f5dcae1f80a25230fa74201046ca1fba4367d39aa LGPL-2.1-or-later
|
||||
38
package/strace/strace.mk
Normal file
38
package/strace/strace.mk
Normal file
@@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
#
|
||||
# strace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
STRACE_VERSION = 7.1
|
||||
STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz
|
||||
STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSION)
|
||||
STRACE_LICENSE = LGPL-2.1+
|
||||
STRACE_LICENSE_FILES = COPYING LGPL-2.1-or-later
|
||||
STRACE_CPE_ID_VALID = YES
|
||||
STRACE_CONF_OPTS = --enable-mpers=no
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
STRACE_DEPENDENCIES += libunwind
|
||||
STRACE_CONF_OPTS += --with-libunwind
|
||||
else
|
||||
STRACE_CONF_OPTS += --without-libunwind
|
||||
endif
|
||||
|
||||
# Demangling symbols in stack trace needs libunwind and libiberty.
|
||||
ifeq ($(BR2_PACKAGE_BINUTILS)$(BR2_PACKAGE_LIBUNWIND),yy)
|
||||
STRACE_DEPENDENCIES += binutils
|
||||
STRACE_CONF_OPTS += --with-libiberty=check
|
||||
else
|
||||
STRACE_CONF_OPTS += --without-libiberty
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PERL),)
|
||||
define STRACE_REMOVE_STRACE_GRAPH
|
||||
rm -f $(TARGET_DIR)/usr/bin/strace-graph
|
||||
endef
|
||||
|
||||
STRACE_POST_INSTALL_TARGET_HOOKS += STRACE_REMOVE_STRACE_GRAPH
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user