Commit 793486e6 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Peter Korsgaard
Browse files

sigrok-cli: new package



[Peter: needs host-pkgconf, simplify pre configure hook]
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 0310aa70
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -365,6 +365,7 @@ endif
	source "package/sdparm/Config.in"
	source "package/setserial/Config.in"
	source "package/sg3_utils/Config.in"
	source "package/sigrok-cli/Config.in"
	source "package/sispmctl/Config.in"
	source "package/smartmontools/Config.in"
	source "package/smstools3/Config.in"
+17 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_SIGROK_CLI
	bool "sigrok-cli"
	select BR2_PACKAGE_LIBSERIALPORT
	select BR2_PACKAGE_LIBSIGROK
	# libsigrok->libglib2:
	depends on BR2_USE_WCHAR
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU
	help
	  Sigrok-cli is a command-line frontend for the sigrok
	  software suite.

	  http://sigrok.org/wiki/Sigrok-cli

comment "sigrok-cli needs a toolchain w/ wchar, threads"
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+23 −0
Original line number Diff line number Diff line
################################################################################
#
# sigrok-cli
#
################################################################################

SIGROK_CLI_VERSION = 198487f611d8a7be4fa15017c22fa01a56551ca6
# No https access on upstream git
SIGROK_CLI_SITE = git://sigrok.org/sigrok-cli
SIGROK_CLI_LICENSE = GPLv3+
SIGROK_CLI_LICENSE_FILES = COPYING
# Git checkout has no configure script
SIGROK_CLI_AUTORECONF = YES
SIGROK_CLI_DEPENDENCIES = host-pkgconf libsigrok
SIGROK_CLI_CONF_OPTS = --with-libsigrokdecode=NO

define SIGROK_CLI_ADD_MISSING
	mkdir -p $(@D)/autostuff
endef

SIGROK_CLI_PRE_CONFIGURE_HOOKS += SIGROK_CLI_ADD_MISSING

$(eval $(autotools-package))