RDEPENDS = "wireless-tools"
RRECOMMENDS = "gpsd"
+# wireless.patch is required for linux-libc-headers == 2.6.23
+# but breaks build with linux-libc-headers >= 2.6.30.
SRC_URI = "http://projects.linuxtogo.org/frs/download.php/14/${PN}-0.7.4pre1.tar.gz \
file://gpsapi.patch;patch=1 \
- file://wireless.patch;patch=1 \
+ ${@['', 'file://wireless.patch;patch=1'][bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1) and bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1).split('.')[2] < '30']} \
file://fix-includes.patch;patch=1;pnum=0"
S = "${WORKDIR}/${PN}-0.7.4pre1"