diff options
-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 |