inherit module-base
+KERNEL_MAJOR_VERSION = "${@'.'.join(bb.data.getVar('KERNEL_VERSION', d, 1).split('.')[:2])}"
+
python populate_packages_prepend() {
v = bb.data.getVar("PARALLEL_INSTALL_MODULES", d, 1) or "0"
if v == "1":
- kv = bb.data.getVar("KERNEL_VERSION", d, 1)
+ kv = bb.data.getVar("KERNEL_MAJOR_VERSION", d, 1)
packages = bb.data.getVar("PACKAGES", d, 1)
+ repl_vers = bb.data.getVar("PARALLEL_INSTALL_REPLACE_VERSIONS", d, 1)
for p in packages.split():
pkg = bb.data.getVar("PKG_%s" % p, d, 1) or p
newpkg = "%s-%s" % (pkg, kv)
else:
rprovides = pkg
bb.data.setVar("RPROVIDES_%s" % p, rprovides, d)
+
+ # kv was changed from KERNEL_VERSION to KERNEL_MAJOR_VERSION.
+ # now fix the upgrade path...
+ if repl_vers:
+ repl_pkgs = []
+ for v in repl_vers.split():
+ repl_pkgs.append("%s-%s" % (pkg, v))
+ for i in ["PROVIDES", "CONFLICTS", "REPLACES"]:
+ val = bb.data.getVar("R%s_%s" % (i, p), d, 1)
+ if val:
+ old = val.split()
+ add = []
+ for k in repl_pkgs:
+ if not k in old:
+ add.append(k)
+ val = "%s %s" % (val, " ".join(add))
+ else:
+ val = "%s" % " ".join(repl_pkgs)
+ bb.data.setVar("R%s_%s" % (i, p), val, d)
}
module_do_compile() {
DESCRIPTION = "A driver for wireless LAN cards based on Intersil's Prism2/2.5/3 chipset"
SECTION = "kernel/modules"
PRIORITY = "optional"
-MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
-PR = "r9"
+PR = "r10"
+
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
SRC_URI = "http://hostap.epitest.fi/releases/hostap-driver-${PV}.tar.gz \
file://hostap_cs.conf \
file://hostap_cardid.patch;patch=1"
SRC_URI_append_mtx-1 = " file://mtx_compat.diff;patch=1;pnum=0 \
file://mtx_hostap_deferred_irq.diff;patch=1;pnum=0"
+SRC_URI_append_h3600 = " file://ipaq_compat.patch;patch=1 "
SRC_URI_append_h3900 = " file://ipaq_compat.patch;patch=1 "
S = "${WORKDIR}/hostap-driver-${PV}"