new file mode 100644
@@ -0,0 +1,33 @@
+From 6bfcd5ea1c21bc521cc51070ab0cbff7938373d9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Wed, 25 Nov 2026 22:27:25 -0800
+Subject: [PATCH] cmake: Make the container plugin download optional
+
+The container plugin is a prebuilt binary which container_plugin.cmake
+fetches from download.falco.org at configure time. That is not possible
+in an offline build and the binary is not built for the target. Add an
+option to skip it; sysdig only loads the plugin if it is installed.
+
+Upstream-Status: Pending
+AI-Generated: Uses Claude Code
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ CMakeLists.txt | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 68344a3..ea6de77 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -163,7 +163,10 @@ endif()
+ include(falcosecurity-libs)
+ include(yaml-cpp)
+ include(nlohmann-json)
+-include(container_plugin)
++option(ENABLE_CONTAINER_PLUGIN "Download and install the prebuilt container plugin" ON)
++if(ENABLE_CONTAINER_PLUGIN)
++ include(container_plugin)
++endif()
+
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ if(NOT DEFINED DRIVER_VERSION)
deleted file mode 100644
@@ -1,32 +0,0 @@
-From 6ff4114dcbb87f34751064249967aa96c7b8b030 Mon Sep 17 00:00:00 2001
-From: Liu Yiding <liuyd.fnst@fujitsu.com>
-Date: Wed, 4 Mar 2026 10:02:10 +0000
-Subject: [PATCH] cmake: Pass PROBE_NAME via CFLAGS
-
-This helps compliation of driver code where its calling modprobe on the
-given kernel module via system() API
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-
-Update for 0.39.0
-Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
----
- CMakeLists.txt | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8e8850dbe..c6d725c05 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -174,6 +174,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
- if(NOT DEFINED DRIVER_NAME)
- set(DRIVER_NAME "scap")
- endif()
-+ add_definitions(-DPROBE_NAME="${PROBE_NAME}")
-
- set(DRIVERS_REPO "https://download.sysdig.com/scap-drivers")
-
-2.43.0
-
similarity index 72%
rename from meta-oe/recipes-extended/sysdig/sysdig_0.39.0.bb
rename to meta-oe/recipes-extended/sysdig/sysdig_0.41.4.bb
@@ -18,44 +18,35 @@ JIT:powerpc = ""
JIT:powerpc64le = ""
JIT:powerpc64 = ""
-DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp \
- tbb jq openssl elfutils protobuf protobuf-native jq-native valijson \
+DEPENDS += "lua${JIT} zlib ncurses jsoncpp tbb elfutils re2 valijson \
uthash libbpf clang-native bpftool-native yaml-cpp nlohmann-json"
RDEPENDS:${PN} = "bash"
-SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \
- git://github.com/falcosecurity/libs;protocol=https;branch=release/0.18.x;name=falco;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/falcosecurity-libs \
- git://github.com/falcosecurity/libs;protocol=https;branch=release/0.18.x;name=driver;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/driver \
- file://0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \
+SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;tag=${PV};name=sysdig \
+ git://github.com/falcosecurity/libs;protocol=https;branch=release/0.21.x;tag=0.21.0;name=falco;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/falcosecurity-libs \
+ git://github.com/falcosecurity/libs;protocol=https;branch=release/0.21.x;tag=8.1.0+driver;name=driver;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/driver \
+ file://0001-cmake-Make-the-container-plugin-download-optional.patch \
file://0001-Avoid-duplicate-operations-of-add_library.patch;patchdir=./falcosecurity-libs \
"
-SRCREV_sysdig = "6ef29110cf1add746e10ab5b38957e22730b7349"
-SRCREV_falco = "e1999d079880d10800c57e004fca794a03cd060a"
-SRCREV_driver = "d4efc80ece48174a71c1a420cb52d233fa94f946"
+SRCREV_sysdig = "7f09646f010f257f3854bc7a6cfbf432c85897d3"
+SRCREV_falco = "1dcb369c20625db51f6cdca3e62435f61449eacb"
+SRCREV_driver = "bd2b9aa2d7ddd9f65158fd8c95ea4bbc10eae9a0"
SRCREV_FORMAT = "sysdig_falco"
UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$"
-#Add this function to generate driver_config.h
-do_configure:prepend() {
- mkdir -p ${WORKDIR}/driver_Make
- cd ${WORKDIR}/driver_Make
- cmake ${S}/driver -DMINIMAL_BUILD=ON -DCREATE_TEST_TARGETS=OFF
- cd -
-}
-do_configure[cleandirs] = "${WORKDIR}/driver_Make"
-
EXTRA_OECMAKE = "\
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DBUILD_DRIVER=OFF \
- -DMINIMAL_BUILD=ON \
+ -DUSE_BUNDLED_FALCOSECURITY_LIBS=ON \
+ -DENABLE_CONTAINER_PLUGIN=OFF \
-DUSE_BUNDLED_DEPS=OFF \
-DCREATE_TEST_TARGETS=OFF \
-DDIR_ETC=${sysconfdir} \
-DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \
-DFALCOSECURITY_LIBS_SOURCE_DIR=${S}/falcosecurity-libs \
- -DDRIVER_SOURCE_DIR=${S}/driver \
+ -DDRIVER_SOURCE_DIR=${S}/driver/driver \
-DVALIJSON_INCLUDE=${STAGING_INCDIR}/valijson \
-DUSE_BUNDLED_RE2=OFF \
-DUSE_BUNDLED_TBB=OFF \
@@ -80,18 +71,14 @@ EXTRA_OECMAKE = "\
# include_directories(${CURSES_INCLUDE_DIR}), placing it ahead of the LuaJIT
# include dir. Pin Curses to the target sysroot so the native dir (and its stray
# lua.h) never reaches the target build; lua.h then resolves via LUAJIT_INCLUDE.
-#Add include dir to find driver_config.h
-CXXFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1 -I${WORKDIR}/driver_Make/driver/src"
-CFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1 -I${WORKDIR}/driver_Make/driver/src"
+CXXFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1"
+CFLAGS:append = " -I${STAGING_INCDIR}/luajit-2.1"
#To fix do_package QA Issue
do_compile:append() {
sed -i -e "s,${WORKDIR},,g" ${B}/libsinsp/libsinsp.pc
- sed -i -e "s,${WORKDIR},,g" ${B}/driver/libscap/libscap.pc
- mkdir -p ${B}/driver/libsinsp
- cp ${B}/libsinsp/libsinsp.pc ${B}/driver/libsinsp/
+ sed -i -e "s,${WORKDIR},,g" ${B}/libscap/libscap.pc
}
-do_compile[cleandirs] = "${B}/driver/libsinsp"
#CMAKE_VERBOSE = "VERBOSE=1"
0.40 and 0.41 move to falcosecurity/libs 0.21 (driver 8.1.0+driver), which no longer needs the gRPC, curl and OpenSSL based Kubernetes/Mesos client dependencies. sysdig now fetches the falco container plugin at configure time to provide container metadata. Bump falcosecurity-libs to 0.21.0 and the driver to 8.1.0+driver together, as sysdig pins them as a pair. Fetch all three by tag. The driver sources are now taken from the driver/ subdirectory of the libs checkout, which makes the driver_config.h generation workaround and the include path hack unnecessary. Use the bundled libs build explicitly (it defaulted on with USE_BUNDLED_DEPS) and drop MINIMAL_BUILD, which no longer exists. Drop libb64, c-ares, grpc, curl, openssl, protobuf and jq from DEPENDS as nothing uses them any more, and add re2. Drop the PROBE_NAME patch since the definition is not referenced by the sources any more. Add a patch that makes the prebuilt container plugin download optional and disable it, as it cannot be fetched in an offline build, so sysdig shows no container metadata. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...e-container-plugin-download-optional.patch | 33 +++++++++++++++ ...001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch | 32 --------------- .../{sysdig_0.39.0.bb => sysdig_0.41.4.bb} | 41 +++++++------------ 3 files changed, 47 insertions(+), 59 deletions(-) create mode 100644 meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Make-the-container-plugin-download-optional.patch delete mode 100644 meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch rename meta-oe/recipes-extended/sysdig/{sysdig_0.39.0.bb => sysdig_0.41.4.bb} (72%)