M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -0,0 +1,22 @@
Index: libpcap-1.0.0/pcap-linux.c
===================================================================
--- libpcap-1.0.0.orig/pcap-linux.c 2009-01-28 11:58:54.000000000 +0300
+++ libpcap-1.0.0/pcap-linux.c 2009-01-28 11:59:04.000000000 +0300
@@ -1616,6 +1616,17 @@
* so let's use "Linux-cooked" mode. Jean II */
//handle->md.cooked = 1;
break;
+#ifndef ARPHRD_IEEE80215
+#define ARPHRD_IEEE80215 804
+#endif
+#ifndef ARPHRD_IEEE80215_PHY
+#define ARPHRD_IEEE80215_PHY 805
+#endif
+
+ case ARPHRD_IEEE80215:
+ case ARPHRD_IEEE80215_PHY:
+ handle->linktype = DLT_IEEE802_15_4;
+ break;
/* ARPHRD_LAPD is unofficial and randomly allocated, if reallocation
* is needed, please report it to <daniele@orlandi.com> */
@@ -0,0 +1,34 @@
DESCRIPTION = "Network Packet Capture Library"
HOMEPAGE = "http://www.tcpdump.org/"
SECTION = "libs/network"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867"
DEPENDS = "flex-native bison-native"
PR = "r3"
# Don't forget to edit shared.patch to have the correct version number inside
SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz \
file://shared.patch"
inherit autotools
EXTRA_OECONF = "--with-pcap=linux"
CPPFLAGS_prepend = "-I${S} "
CFLAGS_prepend = "-I${S} "
CXXFLAGS_prepend = "-I${S} "
do_configure_prepend () {
if [ ! -e acinclude.m4 ]; then
cat aclocal.m4 > acinclude.m4
fi
}
do_install_append () {
install -d ${D}${includedir}/net
install -d ${D}${datadir}/aclocal
ln -sf ../pcap-bpf.h ${D}${includedir}/net/bpf.h
install -m 0644 acinclude.m4 ${D}${datadir}/aclocal/libpcap.m4
}
@@ -0,0 +1,40 @@
require libpcap.inc
PR = "r1"
SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz"
SRC_URI += "file://ieee80215-arphrd.patch"
BINCONFIG_GLOB = "pcap-config"
inherit binconfig
do_configure_prepend() {
cat ${S}/aclocal.m4 >>${S}/acinclude.m4
}
do_compile () {
oe_runmake
rm -f *.o
oe_runmake shared
}
do_install () {
install -d ${D}${libdir}
install -d ${D}${bindir}
oe_runmake install DESTDIR=${D}
oe_runmake install-shared DESTDIR=${D}
oe_libinstall -a -so libpcap ${D}${libdir}
install -d ${D}${includedir}/pcap
install -m 0644 pcap/pcap.h ${D}${includedir}/pcap/pcap.h
install -m 0644 pcap/namedb.h ${D}${includedir}/pcap/namedb.h
install -m 0644 pcap/bpf.h ${D}${includedir}/pcap/bpf.h
install -m 0755 ${S}/pcap-config ${D}${bindir}
}
FILES_${PN}-dev += "${bindir}/pcap-config"
SRC_URI[md5sum] = "1bca27d206970badae248cfa471bbb47"
SRC_URI[sha256sum] = "508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85"