]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
external kernel modules: PARALLEL_INSTALL fixes
authorRene Wagner <rw@handhelds.org>
Sun, 22 Oct 2006 17:18:59 +0000 (19:18 +0200)
committerRene Wagner <rw@handhelds.org>
Sun, 22 Oct 2006 17:18:59 +0000 (19:18 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/classes/module.bbclass
org.handhelds.familiar/packages/alsa/alsa-driver_0.9.6-hh4c.bb
org.handhelds.familiar/packages/at76c503a/at76c503a-modules_0.12.0.bb
org.handhelds.familiar/packages/atmelwlandriver/atmelwlandriver_3.4.1.0.bb
org.handhelds.familiar/packages/hostap/hostap-modules_0.3.9.bb
org.handhelds.familiar/packages/modutils/modutils-cross_2.4.27.bb
org.handhelds.familiar/packages/orinoco/orinoco-modules_0.13e.bb
org.handhelds.familiar/packages/wlags-modules/wlags-modules_718.inc

index 8a13f1f85861e4c2742ce59b7a6d8d0992ba9710..531bdbce745908fbcdaffe7f99e6c6abaa087287 100644 (file)
@@ -3,11 +3,14 @@ DEPENDS += "virtual/kernel"
 
 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)
@@ -18,6 +21,25 @@ python populate_packages_prepend() {
                        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() {
index 25735518b83b7f060d31334d8a2c8e001874668a..26b6703aed08413c7c7e39253c22a9c345b3bdb5 100644 (file)
@@ -8,6 +8,8 @@ PR = "r12"
 
 DEPENDS += "fakeroot-native virtual/kernel"
 
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
+
 SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz \
        file://sound.p.patch;patch=1 \
        file://h5400.patch;patch=1 \
index ca960a00f93d8e7595031449876fc93bbc3c50a1..ae20329f0b2b354eb06df99b1738d24b653ea556 100644 (file)
@@ -1,5 +1,8 @@
 SECTION = "base"
 LICENSE = "GPL"
+
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
+
 SRC_URI = "cvs://anonymous@cvs.berlios.de/cvsroot/at76c503a;module=at76c503a;tag=version_${@bb.data.getVar('PV', d, 1).replace('.', '_')} \
           file://makefile.cc.patch;patch=1 \
           file://ipaq-compat.patch;patch=1"
index ad07c26b5396cacc4bb9681d27e2330ba9f40794..53992d98543864304027fd189ce628962fb46052 100644 (file)
@@ -5,6 +5,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/atmelwlandriver/atmelwlandriver-${PV}.tar.bz2 \
 S = "${WORKDIR}/atmelwlandriver"
 LICENSE = "GPL"
 
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
+
 inherit module
 SECTION = "base"
 
index 1134692e7bc901095bdbca46d2d2b6fc9aaef81d..e359f8846ae6cffd59446555c0d8ea34d74b1f58 100644 (file)
@@ -1,9 +1,10 @@
 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 \
@@ -14,6 +15,7 @@ SRC_URI = "http://hostap.epitest.fi/releases/hostap-driver-${PV}.tar.gz \
           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}"
index 8c2c08c08b33282e3129949cd3f1ed04c986f781..c0c9ec7bf4bec69f09c8cf4bf607a9912f52006c 100644 (file)
@@ -1,12 +1,12 @@
 SECTION = "base"
 include modutils_${PV}.bb
-PR = "r7"
+PR = "r8"
 
 inherit cross
 S = "${WORKDIR}/modutils-${PV}"
 DEPENDS = ""
 PACKAGES = ""
-PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4"
+PROVIDES += "virtual/${TARGET_PREFIX}depmod-2.4"
 DEFAULT_PREFERENCE = "1"
 
 SRC_URI +=  "file://modutils-cross/module.h.diff;patch=1"
index b3b5e407a5964f1dfbd28202aad2fede7e91a13b..8fe5c6fbdb32fa9b2649c296f6cca8950dc2bf4e 100644 (file)
@@ -6,6 +6,8 @@ MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
 LICENSE = "GPL"
 PR = "r4"
 
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
+
 SRC_URI = "http://ozlabs.org/people/dgibson/dldwd/orinoco-${PV}.tar.gz; \
            file://crosscompile.patch;patch=1 \
            file://monitor-${PV}.patch;patch=1 \
index e56802d5c102025d20333983158aa3e44865ae2e..11e0b0d083cb9ac01602efa771059e1b701c4507 100644 (file)
@@ -7,6 +7,8 @@ DEPENDS = "virtual/kernel"
 LICENSE = "BSD"
 PR = "r1"
 
+PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
+
 TARFILE = "wl_lkm_${PV}_release.tar.gz"