summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-02-14 10:28:10 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2008-02-14 10:28:10 +0000
commit206784fedf6a3ab3c82489ceaf9655e1026c2b34 (patch)
tree02e0cde5066e7400d1c28b6c3a17beaa81b0d224 /packages
parent257b8147ce33d634e27d912cd27ec78e9aed0e1a (diff)
linux-openmoko: move 2.6.24 from linux-openmoko-devel to linux-openmoko
* make it work with sourcepkg.bbclass by using do_patch_prepend
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux-openmoko_2.6.24.bb (renamed from packages/linux/linux-openmoko-devel_2.6.24.bb)21
1 files changed, 14 insertions, 7 deletions
diff --git a/packages/linux/linux-openmoko-devel_2.6.24.bb b/packages/linux/linux-openmoko_2.6.24.bb
index 4d4b6d0f5e..19c0119f2f 100644
--- a/packages/linux/linux-openmoko-devel_2.6.24.bb
+++ b/packages/linux/linux-openmoko_2.6.24.bb
@@ -46,11 +46,18 @@ module_autoload_snd-soc-neo1973-wm8753 = "snd-soc-neo1973-wm8753"
# sd/mmc
module_autoload_s3cmci = "s3cmci"
-do_prepatch() {
- mv ${WORKDIR}/patches ${S}/patches && cd ${S} && quilt push -av
- mv patches patches.openmoko
- mv .pc .pc.old
- mv ${WORKDIR}/config/defconfig-${KERNEL_RELEASE} ${WORKDIR}/defconfig
+python do_patch_prepend() {
+ def runcmd(cmd):
+ import commands
+ (status, output) = commands.getstatusoutput(cmd)
+ if status != 0:
+ raise Exception, "Status %i: %s" % (status >> 8, output)
+ return output
+ runcmd('mv %(WORKDIR)s/patches %(S)s/patches && cd %(S)s && '
+ 'quilt push -av && mv patches patches.openmoko && '
+ 'mv .pc .pc.old && mv %(WORKDIR)s/config/defconfig-%(KERNEL_RELEASE)s %(WORKDIR)s/defconfig' %
+ {'WORKDIR': bb.data.getVar('WORKDIR', d, 1),
+ 'S': bb.data.getVar('S', d, 1),
+ 'KERNEL_RELEASE': bb.data.getVar('KERNEL_RELEASE', d, 1)})
+ del runcmd
}
-
-addtask prepatch after do_unpack before do_patch