[OpenWrt-Devel] [RFC] [PATCH] iw: Fix rootfs opkg with PER_DEVICE_ROOTFS and iw

Daniel Dickinson cshored at thecshore.com
Sun Jan 13 16:16:52 EST 2019

From: "Daniel F. Dickinson" <cshored at thecshore.com>

With PER_DEVICE_ROOTFS on ath79 and brcm2708 package/install step fails
because it cannot satisfy the dependency on iw.  The quick solution
(this patch) is to add DEFAULT:=y if cfg80211 to Package/iw.  A better
solution would be to defer installation to imagebuilder, or a step done
like imagebuild, in which when uses a temporary package repository so
opkg can do proper resolving of dependencies.

The root cause is that for the package/Makefile call of opkg from
rootfs.mk the package list isn't managed through the opkg resolver
and is rather done through Kconfig and make, and as such is less
capable than opkg's resolver and therefore can handle the iw vs.
iw-full VARIANT situation when a cfg80211-based wireless driver
DEPENDS on iw.

Signed-off-by: Daniel F. Dickinson <cshored at thecshore.com>
 package/network/utils/iw/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/network/utils/iw/Makefile b/package/network/utils/iw/Makefile
index ef39ee6724..0e29a96e2c 100644
--- a/package/network/utils/iw/Makefile
+++ b/package/network/utils/iw/Makefile
@@ -28,6 +28,7 @@ define Package/iw
   DEPENDS:= +libnl-tiny
+  DEFAULT:=y if cfg80211
 define Package/iw-full

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list