Merge marsco.kalmiopsis:/home/nslu2/openembedded
authorJohn Bowler <jbowler@nslu2-linux.org>
Tue, 31 May 2005 16:51:00 +0000 (16:51 +0000)
committerJohn Bowler <jbowler@nslu2-linux.org>
Tue, 31 May 2005 16:51:00 +0000 (16:51 +0000)
into  marsco.kalmiopsis:/home/nslu2/ref

2005/05/31 09:49:53-07:00 kalmiopsis!jbowler
Dev only change (does not change openslug).
Fix nslu2-kernel so that it handles -rc patches correctly.
Move or copy patches from 2.6.11-mm which are required in
2.6.12

BKrev: 429c95f4Cw4H12IiLOLp5_5mnzbGpw

packages/linux/nslu2-kernel.inc
packages/linux/nslu2-kernel/2.6.12/x1205-rtc.c-id.patch [moved from packages/linux/nslu2-kernel/2.6.11-mm/compile-switches.patch with 100% similarity]
packages/linux/nslu2-kernel/2.6/compile-switches.patch [new file with mode: 0644]

index 749fadc..26e8f72 100644 (file)
@@ -113,13 +113,13 @@ python () {
        pname = '-'.join(name)
        if patch[0:2] == "rc" or patch[0:3] == "pre":
            patch_uri.append("ftp://ftp.kernel.org/pub/linux/kernel/v%s/testing/patch-%s.bz2;patch=1;pname=%s" % (major, pname, pname))
-           kernel[-1] = kernel[-1] - 1
+           kernel[-1] = str(int(kernel[-1]) - 1)
            if patch[0:2] == "rc" and pref == 10:
                pref = 6
                filepath[0:0] = [ filedir % (name[0] + "-rc") ]
            else:
                pref = 2
-       elif patch[0:2] == "bk":
+       elif patch[0:2] == "bk" or patch[0:3] == "git":
            patch_uri.append("ftp://ftp.kernel.org/pub/linux/kernel/v%s/snapshots/patch-%s.bz2;patch=1;pname=%s" % (major, pname, pname))
            pref = 2
        elif patch[0:2] == "ac":
@@ -149,7 +149,7 @@ python () {
     bb.data.setVar("N2K_FILESPATH", ':'.join(filepath), d)
     # bb.note("N2K_FILESPATH := %s" % ' '.join(filepath))
     bb.data.setVar("DEFAULT_PREFERENCE", pref-mmac, d)
-    # bb.note("DEFAULT_PREFERENCE := %s" % pref-mmac)
+    # bb.note("DEFAULT_PREFERENCE := %s" % (pref-mmac))
 }
 
 # FILESPATH: this list is in order last-searched-first, therefore
diff --git a/packages/linux/nslu2-kernel/2.6/compile-switches.patch b/packages/linux/nslu2-kernel/2.6/compile-switches.patch
new file mode 100644 (file)
index 0000000..e69de29