Skip to content

Commit 6b8b3bf

Browse files
author
Alex J Lennon
committed
Revert "feat: Complete Yocto layer reorganization following best practices"
This reverts commit 2cd074c.
1 parent c5240ab commit 6b8b3bf

File tree

56 files changed

+2657
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2657
-195
lines changed

LAYER_REORGANIZATION_RELEASE_NOTES.md

Lines changed: 0 additions & 195 deletions
This file was deleted.

recipes-connectivity/iw/iw_6.9.bb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
SUMMARY = "nl80211 based CLI configuration utility for wireless devices with TWT support"
2+
DESCRIPTION = "iw is a new nl80211 based CLI configuration utility for wireless devices. \
3+
Version 6.9 includes Target Wake Time (TWT) support for WiFi 6 power optimization."
4+
HOMEPAGE = "https://wireless.wiki.kernel.org/en/users/documentation/iw"
5+
SECTION = "base"
6+
LICENSE = "ISC"
7+
LIC_FILES_CHKSUM = "file://COPYING;md5=878618a5c4af25e9b93ef0be1a93f774"
8+
9+
DEPENDS = "libnl pkgconfig-native"
10+
11+
# Official release with TWT support
12+
SRC_URI = "https://www.kernel.org/pub/software/network/iw/iw-${PV}.tar.xz"
13+
SRC_URI[sha256sum] = "3f2db22ad41c675242b98ae3942dbf3112548c60a42ff739210f2de4e98e4894"
14+
15+
S = "${WORKDIR}/iw-${PV}"
16+
17+
# Ensure proper linking flags
18+
TARGET_CC_ARCH += "${LDFLAGS}"
19+
20+
EXTRA_OEMAKE = "\
21+
'PREFIX=${prefix}' \
22+
'SBINDIR=${sbindir}' \
23+
'MANDIR=${mandir}' \
24+
"
25+
26+
do_compile() {
27+
oe_runmake
28+
}
29+
30+
do_install() {
31+
oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
32+
}
33+
34+
# Package information
35+
PACKAGES = "${PN} ${PN}-dbg ${PN}-doc"
36+
FILES:${PN} = "${sbindir}/iw"
37+
FILES:${PN}-doc = "${mandir}"
38+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -ur git.org/data/ModemManager.service.in git/data/ModemManager.service.in
2+
--- git.org/data/ModemManager.service.in 2024-08-21 10:19:23.397003375 +0000
3+
+++ git/data/ModemManager.service.in 2024-08-21 10:30:33.143987891 +0000
4+
@@ -7,7 +7,7 @@
5+
[Service]
6+
Type=dbus
7+
BusName=org.freedesktop.ModemManager1
8+
-ExecStart=@sbindir@/ModemManager
9+
+ExecStart=@sbindir@/ModemManager --debug
10+
StandardError=null
11+
Restart=on-abort
12+
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_NET_ADMIN
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2+
3+
# Add this in when we need to debug the modem manager
4+
#SRC_URI:append = "file://enable-debug.patch"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
wireless_tools: Avoid stripping iwmulticall
2+
3+
Upstream-Status: Inappropriate [other]
4+
The removed code was from upstream.
5+
6+
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
7+
8+
diff -ur wireless_tools.29.orig/Makefile wireless_tools.29/Makefile
9+
--- wireless_tools.29.orig/Makefile 2011-06-18 11:35:12.183907453 -0500
10+
+++ wireless_tools.29/Makefile 2011-06-18 11:38:09.995907985 -0500
11+
@@ -135,9 +135,8 @@
12+
13+
macaddr: macaddr.o $(IWLIB)
14+
15+
-# Always do symbol stripping here
16+
iwmulticall: iwmulticall.o
17+
- $(CC) $(LDFLAGS) -Wl,-s $(XCFLAGS) -o $@ $^ $(LIBS)
18+
+ $(CC) $(LDFLAGS) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LIBS)
19+
20+
# It's a kind of magic...
21+
wireless.h:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
wireless-tools: Remove QA warning: No GNU_HASH in the elf binary
2+
3+
Upstream-Status: Inappropriate [other]
4+
Useful within bitbake environment only.
5+
6+
Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
7+
8+
---
9+
Makefile | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
--- wireless_tools.29.orig/Makefile
13+
+++ wireless_tools.29/Makefile
14+
@@ -144,7 +144,7 @@ wireless.h:
15+
16+
# Compilation of the dynamic library
17+
$(DYNAMIC): $(OBJS:.o=.so)
18+
- $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^
19+
+ $(CC) -shared -o $@ -Wl,-soname,$@ $(LDFLAGS) $(STRIPFLAGS) $(LIBS) -lc $^
20+
21+
# Compilation of the static library
22+
$(STATIC): $(OBJS:.o=.so)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Upstream-Status: Inappropriate [configuration]
2+
3+
Index: wireless_tools.30/Makefile
4+
===================================================================
5+
--- wireless_tools.30.orig/Makefile 2014-02-01 00:21:04.148463382 -0800
6+
+++ wireless_tools.30/Makefile 2014-02-01 00:23:35.448072279 -0800
7+
@@ -76,7 +76,7 @@
8+
INSTALL_DIR= $(PREFIX)/sbin
9+
INSTALL_LIB= $(PREFIX)/lib
10+
INSTALL_INC= $(PREFIX)/include
11+
-INSTALL_MAN= $(PREFIX)/man
12+
+INSTALL_MAN= $(PREFIX)/share/man
13+
14+
# Various commands
15+
RM = rm -f
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
When /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache
2+
(in my case libstdc++.so cannot be found after building zlib(-native) and I have to call
3+
touch */libstdc++.so && /sbin/ldconfig to fix it.
4+
5+
So remove ldconfig call from make install-libs
6+
7+
Upstream-Status: Inappropriate [disable feature]
8+
9+
diff -uNr wireless_tools.29.orig/Makefile wireless_tools.29/Makefile
10+
--- wireless_tools.29.orig/Makefile 2007-09-18 01:56:46.000000000 +0200
11+
+++ wireless_tools.29/Makefile 2012-02-15 20:46:41.780763514 +0100
12+
@@ -163,7 +163,6 @@
13+
install -m 755 $(DYNAMIC) $(INSTALL_LIB)
14+
ln -sfn $(DYNAMIC) $(INSTALL_LIB)/$(DYNAMIC_LINK)
15+
@echo "*** Don't forget to add $(INSTALL_LIB) to /etc/ld.so.conf, and run ldconfig as root. ***"
16+
- @$(LDCONFIG) || echo "*** Could not run ldconfig ! ***"
17+
18+
# Install the static library
19+
install-static:: $(STATIC)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
SUMMARY = "Tools for the Linux Standard Wireless Extension Subsystem"
2+
HOMEPAGE = "https://hewlettpackard.github.io/wireless-tools/Tools.html"
3+
LICENSE = "GPL-2.0-only & (LGPL-2.1-only | MPL-1.1 | BSD-1-Clause)"
4+
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
5+
file://iwconfig.c;beginline=1;endline=12;md5=cf710eb1795c376eb10ea4ff04649caf \
6+
file://iwevent.c;beginline=59;endline=72;md5=d66a10026d4394f0a5b1c5587bce4537 \
7+
file://sample_enc.c;beginline=1;endline=4;md5=838372be07874260b566bae2f6ed33b6"
8+
SECTION = "base"
9+
PE = "1"
10+
11+
SRC_URI = "https://hewlettpackard.github.io/wireless-tools/wireless_tools.${PV}.tar.gz \
12+
file://remove.ldconfig.call.patch \
13+
file://man.patch \
14+
file://avoid_strip.patch \
15+
file://ldflags.patch \
16+
"
17+
SRC_URI[md5sum] = "ca91ba7c7eff9bfff6926b1a34a4697d"
18+
SRC_URI[sha256sum] = "abd9c5c98abf1fdd11892ac2f8a56737544fe101e1be27c6241a564948f34c63"
19+
20+
UPSTREAM_CHECK_URI = "https://hewlettpackard.github.io/wireless-tools/Tools.html"
21+
UPSTREAM_CHECK_REGEX = "wireless_tools\.(?P<pver>(\d+)(\..*|))\.tar\.gz"
22+
23+
S = "${WORKDIR}/wireless_tools.30"
24+
25+
CFLAGS =+ "-I${S}"
26+
EXTRA_OEMAKE = "-e 'BUILD_SHARED=y' \
27+
'INSTALL_DIR=${D}${base_sbindir}' \
28+
'INSTALL_LIB=${D}${libdir}' \
29+
'INSTALL_INC=${D}${includedir}' \
30+
'INSTALL_MAN=${D}${mandir}'"
31+
32+
do_compile() {
33+
oe_runmake all libiw.a
34+
}
35+
36+
do_install() {
37+
oe_runmake PREFIX=${D} install-iwmulticall install-dynamic install-man install-hdr
38+
install -d ${D}${sbindir}
39+
install -m 0755 ifrename ${D}${sbindir}/ifrename
40+
}
41+
42+
PACKAGES = "libiw libiw-dev libiw-doc ifrename-doc ifrename ${PN} ${PN}-doc ${PN}-dbg"
43+
44+
FILES:libiw = "${libdir}/*.so.*"
45+
FILES:libiw-dev = "${libdir}/*.a ${libdir}/*.so ${includedir}"
46+
FILES:libiw-doc = "${mandir}/man7"
47+
FILES:ifrename = "${sbindir}/ifrename"
48+
FILES:ifrename-doc = "${mandir}/man8/ifrename.8 ${mandir}/man5/iftab.5"
49+
FILES:${PN} = "${bindir} ${sbindir}/iw* ${base_sbindir} ${base_bindir} ${sysconfdir}/network"
50+
FILES:${PN}-doc = "${mandir}"
51+

0 commit comments

Comments
 (0)