initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 33270f56477542dedf978e660cf8d08464f28797 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 26 Nov 2021 17:45:23 +0100
|
||||
Subject: [PATCH] cmake: lemon: wipe CMAKE_{EXE_LINKER_FLAGS,SYSROOT} if needed
|
||||
|
||||
Wipe CMAKE_{EXE_LINKER_FLAGS,SYSROOT} when LEMON_C_COMPILER is set to
|
||||
avoid a build failure when cross-compiling (e.g. with buildroot)
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status:
|
||||
https://gitlab.com/wireshark/wireshark/-/merge_requests/5224]
|
||||
---
|
||||
tools/lemon/CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
|
||||
index 8742aa9fc9..7a9263fe0d 100644
|
||||
--- a/tools/lemon/CMakeLists.txt
|
||||
+++ b/tools/lemon/CMakeLists.txt
|
||||
@@ -12,6 +12,8 @@ add_executable(lemon lemon.c)
|
||||
if(DEFINED LEMON_C_COMPILER)
|
||||
set(CMAKE_C_COMPILER "${LEMON_C_COMPILER}")
|
||||
set(CMAKE_C_FLAGS "")
|
||||
+ set(CMAKE_EXE_LINKER_FLAGS "")
|
||||
+ set(CMAKE_SYSROOT "")
|
||||
endif()
|
||||
|
||||
# To keep lemon.c as close to upstream as possible, deliberately ignore
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
config BR2_PACKAGE_WIRESHARK
|
||||
bool "wireshark"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt -> libgpg-error
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU # fork(), glib2
|
||||
depends on BR2_USE_WCHAR # glib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
|
||||
select BR2_PACKAGE_C_ARES
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_SPEEXDSP
|
||||
help
|
||||
Network traffic sniffer and protocol decoder.
|
||||
|
||||
https://www.wireshark.org
|
||||
|
||||
if BR2_PACKAGE_WIRESHARK
|
||||
|
||||
config BR2_PACKAGE_WIRESHARK_GUI
|
||||
bool "Qt5 GUI"
|
||||
default y
|
||||
depends on BR2_INSTALL_LIBSTDCPP # qt5
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # qt5
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # qt5
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # qt5
|
||||
depends on !BR2_arc # qt5
|
||||
depends on BR2_PACKAGE_HAS_UDEV # qt5 input
|
||||
select BR2_PACKAGE_QT5
|
||||
select BR2_PACKAGE_QT5BASE_FONTCONFIG # runtime
|
||||
select BR2_PACKAGE_QT5BASE_PNG # runtime
|
||||
select BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
select BR2_PACKAGE_QT5MULTIMEDIA
|
||||
select BR2_PACKAGE_QT5SVG
|
||||
select BR2_PACKAGE_QT5TOOLS
|
||||
select BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
|
||||
help
|
||||
Enable Qt5 GUI
|
||||
|
||||
comment "Qt5 GUI needs a udev /dev management and a toolchain w/ C++, NPTL, host gcc >= 5.0, gcc >= 5.0"
|
||||
depends on !BR2_arc
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
endif # BR2_PACKAGE_WIRESHARK
|
||||
|
||||
comment "wireshark needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,6 @@
|
||||
# From https://www.wireshark.org/download/src/all-versions/SIGNATURES-3.4.10.txt
|
||||
sha1 63839abd94d3ae376f860e2d2969777680106578 wireshark-3.4.10.tar.xz
|
||||
sha256 8aa7ef4a44ae62bb8db463cf761e2cc03b97305e0e77ed5be53fa83729187cef wireshark-3.4.10.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 7cdbed2b697efaa45576a033f1ac0e73cd045644a91c79bbf41d4a7d81dac7bf COPYING
|
||||
@@ -0,0 +1,191 @@
|
||||
################################################################################
|
||||
#
|
||||
# wireshark
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WIRESHARK_VERSION = 3.4.10
|
||||
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.xz
|
||||
WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
|
||||
WIRESHARK_LICENSE = wireshark license
|
||||
WIRESHARK_LICENSE_FILES = COPYING
|
||||
WIRESHARK_CPE_ID_VENDOR = wireshark
|
||||
WIRESHARK_SELINUX_MODULES = wireshark
|
||||
WIRESHARK_DEPENDENCIES = \
|
||||
c-ares \
|
||||
host-pkgconf \
|
||||
host-python3 \
|
||||
libgcrypt \
|
||||
libglib2 \
|
||||
libpcap \
|
||||
speexdsp
|
||||
|
||||
WIRESHARK_CONF_OPTS = \
|
||||
-DDISABLE_WERROR=ON \
|
||||
-DENABLE_ILBC=OFF \
|
||||
-DENABLE_PCAP=ON \
|
||||
-DENABLE_SMI=OFF \
|
||||
-DLEMON_C_COMPILER=$(HOSTCC)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
WIRESHARK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_ENABLE_LTO),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LTO=ON
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LTO=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=ON
|
||||
WIRESHARK_DEPENDENCIES += qt5base qt5multimedia qt5svg qt5tools
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BCG729),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=ON
|
||||
WIRESHARK_DEPENDENCIES += bcg729
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BROTLI=ON
|
||||
WIRESHARK_DEPENDENCIES += brotli
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BROTLI=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=ON
|
||||
WIRESHARK_DEPENDENCIES += gnutls
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=ON
|
||||
WIRESHARK_DEPENDENCIES += libkrb5
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=ON
|
||||
WIRESHARK_DEPENDENCIES += libmaxminddb
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=ON
|
||||
WIRESHARK_DEPENDENCIES += libnl
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSSH),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=ON
|
||||
WIRESHARK_DEPENDENCIES += libssh
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=ON
|
||||
WIRESHARK_DEPENDENCIES += libxml2
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=OFF
|
||||
endif
|
||||
|
||||
# no support for lua53 yet
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LUA=ON
|
||||
WIRESHARK_DEPENDENCIES += lua
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LUA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=ON
|
||||
WIRESHARK_DEPENDENCIES += lz4
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=ON
|
||||
WIRESHARK_DEPENDENCIES += nghttp2
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUS),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_OPUS=ON
|
||||
WIRESHARK_DEPENDENCIES += opus
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_OPUS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SBC),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SBC=ON
|
||||
WIRESHARK_DEPENDENCIES += sbc
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SBC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=ON
|
||||
WIRESHARK_DEPENDENCIES += snappy
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPANDSP),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=ON
|
||||
WIRESHARK_DEPENDENCIES += spandsp
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_sdjournal=ON
|
||||
WIRESHARK_DEPENDENCIES += systemd
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_sdjournal=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZSTD=ON
|
||||
WIRESHARK_DEPENDENCIES += zstd
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZSTD=OFF
|
||||
endif
|
||||
|
||||
# Disable plugins as some of them (like l16mono) can't be built
|
||||
# statically. ENABLE_STATIC=ON actually means "disable shared library"
|
||||
# and ENABLE_STATIC=OFF means "enable shared library". So for the
|
||||
# BR2_SHARED_STATIC_LIBS=y case, we want ENABLE_STATIC=OFF even if
|
||||
# that sounds counter-intuitive.
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
WIRESHARK_CONF_OPTS += \
|
||||
-DENABLE_PLUGINS=OFF \
|
||||
-DENABLE_STATIC=ON \
|
||||
-DUSE_STATIC=ON
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += \
|
||||
-DENABLE_PLUGINS=ON \
|
||||
-DENABLE_STATIC=OFF \
|
||||
-DUSE_STATIC=OFF
|
||||
endif
|
||||
|
||||
define WIRESHARK_REMOVE_DOCS
|
||||
find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -print0 \
|
||||
-o -name '*.html' -print0 | xargs -0 rm -f
|
||||
endef
|
||||
|
||||
WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user