Initial Commit
- initial default booting image
This commit is contained in:
45
package/bustle/0001-Makefile-fix-pcap-config-call.patch
Normal file
45
package/bustle/0001-Makefile-fix-pcap-config-call.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
From 77e2de892cd359f779c84739682431a66eb8cf31 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 8 Jan 2023 11:03:52 +0100
|
||||
Subject: [PATCH] Makefile: fix pcap-config call
|
||||
|
||||
Fix the following build failure raised since libpcap version 1.10.2 and
|
||||
https://github.com/the-tcpdump-group/libpcap/commit/d0cba780dc2b2bb4f3ca9427d1a0f03479f45707:
|
||||
|
||||
pcap-config: Invalid command-line option pcap-config specified
|
||||
Usage: pcap-config [ --help ] [ --static | --static-pcap-only ] [ --libs | --additional-libs ]
|
||||
perl -nle 'm/^Version:\s+(.*)$/ and print $1' \
|
||||
bustle.cabal > dist/build/autogen/version.txt
|
||||
echo '#define BUSTLE_VERSION "'`cat dist/build/autogen/version.txt`'"' > dist/build/autogen/version.h
|
||||
/home/buildroot/autobuild/run/instance-2/output-1/host/bin/arm-linux-gcc -Idist/build/autogen -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
|
||||
-o dist/build/bustle-pcap c-sources/pcap-reader.c c-sources/pcap-monitor.c c-sources/bustle-pcap.c \
|
||||
-I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/glib-2.0 -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/glib-2.0/include -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/libmount -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/blkid -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/gio-unix-2.0 -pthread -L/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
|
||||
/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /tmp/cc5SQkTV.o: in function `bustle_pcap_reader_finalize':
|
||||
pcap-reader.c:(.text+0x254): undefined reference to `pcap_close'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/f3dcb617488e4172e639e3bd51a93bc9822ea186
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status:
|
||||
https://gitlab.freedesktop.org/bustle/bustle/-/merge_requests/21]
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8865819..721e714 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2,7 +2,7 @@ CFLAGS = -g -O2 -Wall -Wunused -Waddress
|
||||
DBUS_FLAGS = $(shell pkg-config --cflags --libs dbus-1)
|
||||
GIO_FLAGS := $(shell pkg-config --cflags --libs 'glib-2.0 >= 2.26' gio-2.0 gio-unix-2.0)
|
||||
PCAP_CONFIG ?= pcap-config
|
||||
-PCAP_FLAGS := $(shell $(PCAP_CONFIG) --cflags pcap-config --libs)
|
||||
+PCAP_FLAGS := $(shell $(PCAP_CONFIG) --cflags --libs)
|
||||
DESTDIR =
|
||||
PREFIX = /usr/local
|
||||
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
||||
--
|
||||
2.39.0
|
||||
|
||||
26
package/bustle/Config.in
Normal file
26
package/bustle/Config.in
Normal file
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_BUSTLE
|
||||
bool "bustle"
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
depends on BR2_PACKAGE_DBUS # runtime
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
Bustle is a better dbus-monitor! It records and draws
|
||||
sequence diagrams of D-Bus activity, showing signal
|
||||
emissions, method calls and their corresponding returns,
|
||||
with timestamps for each individual event and the duration
|
||||
of each method call. This can help you check for unwanted
|
||||
D-Bus traffic, and pinpoint why your D-Bus-based application
|
||||
isn't performing as well as you like.
|
||||
|
||||
This only installs the command line bustle-pcap tool, not
|
||||
the graphical viewer.
|
||||
|
||||
https://gitlab.freedesktop.org/bustle/bustle/
|
||||
|
||||
comment "bustle needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_DBUS
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/bustle/bustle.hash
Normal file
3
package/bustle/bustle.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 2fb3e9d9a97db3cd9a3ce763e86947b642bd7733b46206177a1677f08726573c bustle-0.8.0.tar.gz
|
||||
sha256 ad168b537264fba8f94380cb10f60847da7db551fb4281bb6d4f24c74f652a1d LICENSE
|
||||
29
package/bustle/bustle.mk
Normal file
29
package/bustle/bustle.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# bustle
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BUSTLE_VERSION = 0.8.0
|
||||
BUSTLE_SITE = https://hackage.haskell.org/package/bustle-$(BUSTLE_VERSION)
|
||||
BUSTLE_LICENSE = LGPL-2.1+
|
||||
BUSTLE_LICENSE_FILES = LICENSE
|
||||
BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config --static"
|
||||
else
|
||||
BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config"
|
||||
endif
|
||||
|
||||
define BUSTLE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
$(BUSTLE_MAKE_OPTS) -C $(@D) dist/build/bustle-pcap
|
||||
endef
|
||||
|
||||
define BUSTLE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/dist/build/bustle-pcap \
|
||||
$(TARGET_DIR)/usr/bin/bustle-pcap
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user