]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
Sort out module-init-tools vs. modutils depmod situation.
authorRene Wagner <rw@handhelds.org>
Mon, 9 Oct 2006 18:28:12 +0000 (20:28 +0200)
committerRene Wagner <rw@handhelds.org>
Mon, 9 Oct 2006 18:28:12 +0000 (20:28 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/module-init-tools/files/cross.patch [new file with mode: 0644]
org.handhelds.familiar/packages/module-init-tools/module-init-tools-cross_3.2.2.bb
org.handhelds.familiar/packages/modutils/modutils-cross_2.4.27.bb

diff --git a/org.handhelds.familiar/packages/module-init-tools/files/cross.patch b/org.handhelds.familiar/packages/module-init-tools/files/cross.patch
new file mode 100644 (file)
index 0000000..a5c2ded
--- /dev/null
@@ -0,0 +1,15 @@
+--- module-init-tools-3.2.2/depmod.c   2006-10-09 20:07:43.000000000 +0200
++++ module-init-tools-3.2.2/depmod.c   2006-10-09 20:00:49.000000000 +0200
+@@ -216,11 +216,7 @@
+       char pathname[strlen(argv[0])+1];
+       char oldname[strlen("depmod") + strlen(argv[0]) + sizeof(".24")];
+-      memset(pathname, 0, strlen(argv[0])+1);
+-      sep = strrchr(argv[0], '/');
+-      if (sep)
+-              memcpy(pathname, argv[0], sep - argv[0]+1);
+-      sprintf(oldname, "%s%s.24", pathname, "depmod");
++      sprintf(oldname, "%s.24", argv[0]);
+       /* Recursion detection: we need an env var since we can't
+          change argv[0] (as older modutils uses it to determine
index 4bcc311709d20ae2b714403f84c1c11767b64072..8e8386d488c949eaa757d0a2ff1bd66986103021 100644 (file)
@@ -1,9 +1,13 @@
-LICENSE = "GPL"
 include module-init-tools_${PV}.bb
+PR = "r2"
+
 inherit cross
 DEFAULT_PREFERENCE = "0"
 PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.6"
 
+DEPENDS += "virtual/${TARGET_PREFIX}depmod-2.4"
+SRC_URI += "file://cross.patch;patch=1"
+
 EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}"
 
 do_stage () {
index 2b301d7d096b7fbee0144da3fc268f785bd6c656..8c2c08c08b33282e3129949cd3f1ed04c986f781 100644 (file)
@@ -1,6 +1,7 @@
 SECTION = "base"
 include modutils_${PV}.bb
-PR = "r6"
+PR = "r7"
+
 inherit cross
 S = "${WORKDIR}/modutils-${PV}"
 DEPENDS = ""
@@ -19,6 +20,7 @@ CFLAGS_prepend_mipseb = "-D__MIPSEB__"
 
 do_stage () {
         oe_runmake install
+       install -m 0755 ${bindir}/${TARGET_PREFIX}depmod ${bindir}/${TARGET_PREFIX}depmod.24
 }
 
 do_install () {