All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Sysdig: new package.
@ 2015-03-17 15:32 Angelo Compagnucci
  2015-03-17 15:32 ` [Buildroot] [PATCH 1/2] package/luajit: introducing luajit arch supports Angelo Compagnucci
  2015-03-17 15:32 ` [Buildroot] [PATCH 2/2] package/sysdig: New package Angelo Compagnucci
  0 siblings, 2 replies; 3+ messages in thread
From: Angelo Compagnucci @ 2015-03-17 15:32 UTC (permalink / raw)
  To: buildroot

This series introduces new package Sysdig.

Angelo Compagnucci (2):
  package/luajit: introducing luajit arch supports.
  package/sysdig: New package

 package/Config.in        |  1 +
 package/luajit/Config.in | 12 ++++++++++--
 package/sysdig/Config.in | 21 +++++++++++++++++++++
 package/sysdig/sysdig.mk | 22 ++++++++++++++++++++++
 4 files changed, 54 insertions(+), 2 deletions(-)
 create mode 100644 package/sysdig/Config.in
 create mode 100644 package/sysdig/sysdig.mk

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] package/luajit: introducing luajit arch supports.
  2015-03-17 15:32 [Buildroot] [PATCH 0/2] Sysdig: new package Angelo Compagnucci
@ 2015-03-17 15:32 ` Angelo Compagnucci
  2015-03-17 15:32 ` [Buildroot] [PATCH 2/2] package/sysdig: New package Angelo Compagnucci
  1 sibling, 0 replies; 3+ messages in thread
From: Angelo Compagnucci @ 2015-03-17 15:32 UTC (permalink / raw)
  To: buildroot

This patch introduces BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS for luajit.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/luajit/Config.in | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/package/luajit/Config.in b/package/luajit/Config.in
index c505f6a..d71118b 100644
--- a/package/luajit/Config.in
+++ b/package/luajit/Config.in
@@ -1,10 +1,18 @@
+config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
+	bool
+	default y if BR2_i386 || \
+		(BR2_x86_64 && BR2_HOSTARCH='x86_64') || \
+		BR2_powerpc || \
+		BR2_arm || \
+		BR2_armeb || \
+		((BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT)
+
 config BR2_PACKAGE_LUAJIT
 	bool "luajit"
 	select BR2_PACKAGE_HAS_LUAINTERPRETER
 	# Luajit is only available for some target architectures, and
 	# has some complexity wrt 32/64. See luajit.mk for details.
-	depends on BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64') || BR2_powerpc || BR2_arm || BR2_armeb \
-		|| ((BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT)
+	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 	# luajit.mk uses the "-m32" compiler option to build 32bit
 	# binaries, so check if that option is supported. See
 	# luajit.mk for details.
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] package/sysdig: New package
  2015-03-17 15:32 [Buildroot] [PATCH 0/2] Sysdig: new package Angelo Compagnucci
  2015-03-17 15:32 ` [Buildroot] [PATCH 1/2] package/luajit: introducing luajit arch supports Angelo Compagnucci
@ 2015-03-17 15:32 ` Angelo Compagnucci
  1 sibling, 0 replies; 3+ messages in thread
From: Angelo Compagnucci @ 2015-03-17 15:32 UTC (permalink / raw)
  To: buildroot

Sysdig is open source, system-level exploration:
capture system state and activity from a running Linux
instance, then save, filter and analyze.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/Config.in        |  1 +
 package/sysdig/Config.in | 21 +++++++++++++++++++++
 package/sysdig/sysdig.mk | 22 ++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 package/sysdig/Config.in
 create mode 100644 package/sysdig/sysdig.mk

diff --git a/package/Config.in b/package/Config.in
index e221deb..019d40b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -94,6 +94,7 @@ endif
 	source "package/strace/Config.in"
 	source "package/stress/Config.in"
 	source "package/sysprof/Config.in"
+	source "package/sysdig/Config.in"
 	source "package/tinymembench/Config.in"
 	source "package/trace-cmd/Config.in"
 	source "package/trinity/Config.in"
diff --git a/package/sysdig/Config.in b/package/sysdig/Config.in
new file mode 100644
index 0000000..5c2b070
--- /dev/null
+++ b/package/sysdig/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_SYSDIG
+	bool "sysdig"
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_LUAJIT
+	select BR2_PACKAGE_LIBJSON
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_INSTALL_LIBSTDCPP # libjson
+	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
+	help
+	  Sysdig is open source, system-level exploration:
+	  capture system state and activity from a running Linux instance,
+	  then save, filter and analyze.
+	  Think of it as strace + tcpdump + lsof + awesome sauce.
+	  With a little Lua cherry on top.
+
+	  http://sysdig.org
+
+comment "sysdig needs a toolchain w/ C++ and a Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+	depends on !BR2_INSTALL_LIBSTDCPP
+	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
diff --git a/package/sysdig/sysdig.mk b/package/sysdig/sysdig.mk
new file mode 100644
index 0000000..73a253e
--- /dev/null
+++ b/package/sysdig/sysdig.mk
@@ -0,0 +1,22 @@
+#############################################################
+#
+# sysdig
+#
+#############################################################
+
+SYSDIG_VERSION = 0.1.99
+SYSDIG_SITE = $(call github,draios,sysdig,$(SYSDIG_VERSION))
+SYSDIG_LICENSE = GPLv2
+SYSDIG_LICENSE_FILES = COPYING
+SYSDIG_CONF_OPTS = -DUSE_BUNDLED_LUAJIT=OFF -DUSE_BUNDLED_ZLIB=OFF
+SYSDIG_DEPENDENCIES = zlib luajit libjson linux
+SYSDIG_SUPPORTS_IN_SOURCE_BUILD = NO
+
+define SYSDIG_INSTALL_DRIVER
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules_install
+endef
+
+SYSDIG_POST_INSTALL_TARGET_HOOKS += SYSDIG_INSTALL_DRIVER
+
+$(eval $(cmake-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-17 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 15:32 [Buildroot] [PATCH 0/2] Sysdig: new package Angelo Compagnucci
2015-03-17 15:32 ` [Buildroot] [PATCH 1/2] package/luajit: introducing luajit arch supports Angelo Compagnucci
2015-03-17 15:32 ` [Buildroot] [PATCH 2/2] package/sysdig: New package Angelo Compagnucci

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.