diff options
author | John Lee <john_lee@openmoko.org> | 2008-01-22 03:52:27 +0000 |
---|---|---|
committer | Openmoko anonymizer key <devel@lists.openmoko.org> | 2008-01-22 03:52:27 +0000 |
commit | d3432dff47d8bb0d89e6329875eba0cb28d19f71 (patch) | |
tree | e83e694c91c45aca6364dc78335f9651e7a65a1c /packages/linux | |
parent | a7a4c7d6f9bbcda53d3bf07d51142d41e1a4558b (diff) | |
parent | d47eb6e254cea2207027b75b2ec071f0d3dc7d61 (diff) |
merge of 'a250ef0b1707ead866fe051ca88c56e538d51bfb'
and 'c50c127687a0e35ba0e44fbfe9fbf7b23e973914'
Diffstat (limited to 'packages/linux')
-rw-r--r-- | packages/linux/linux-openmoko_2.6.22.5.bb | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/packages/linux/linux-openmoko_2.6.22.5.bb b/packages/linux/linux-openmoko_2.6.22.5.bb index fe46c59a58..fc702c8719 100644 --- a/packages/linux/linux-openmoko_2.6.22.5.bb +++ b/packages/linux/linux-openmoko_2.6.22.5.bb @@ -60,12 +60,18 @@ module_autoload_snd-mixer-oss = "snd-mixer-oss" # 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}/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/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 - |