[oe] [PATCH 3/3] madwifi-ng-r3314: Apply patches from OpenWrt 10.03

Andreas Oberritter obi at opendreambox.org
Thu Jan 20 18:44:20 UTC 2011


On 01/20/2011 06:36 PM, Mike Westerhof wrote:
> On 1/20/2011 10:53 AM, Andreas Oberritter wrote:
>> [This revision is not pinned in OE, but used by opendreambox.]
> 
> What machines/distros has this sequence of three patches been tested with?

Patch 1 removes a dead recipe.
Patch 2 has been tested on mipsel 32-bit with rev 3314.
Patch 3 is a dead recipe I'm reviving and has been tested on mipsel 32-bit.

Machine dm8000, distro opendreambox.

> Does it build for both LE and BE?

I haven't tested Patch 3 on BE, but since there aren't any known users
in OE, I suppose this question is rather academic. OpenWrt uses these
patches on multiple architectures with multiple kernel versions.

The other patches don't change any code, so there's no reason it should
depend on any byte order.

In case you're wondering about the removal of
30-define-ioreadwrite32be-for-little-endian-too.patch, you probably
missed these lines of the recipe which apply lots of patches from
OpenWrt's subversion repository:

>> +SRC_URI += " \
>> +        svn://svn.openwrt.org/openwrt/trunk/package/madwifi;module=patches \
>> +        http://mirror2.openwrt.org/sources/ath_hal-${HAL_VERSION}.tgz;name=hal \
>> +        file://fix-target-mips32.patch \
>> +        file://remove-wprobe.patch;apply=no \
>> +        "
>>  SRC_URI[md5sum] = "2c7352cbbdac995de8c3bce5b80db5f2"
>>  SRC_URI[sha256sum] = "0599c75b95ba63bdc554cb8124192e62c75fbeb71b9e8a5a7bc351c8e0666758"
>> +SRC_URI[hal.md5sum] = "4ab7ae8bdb96c0be388c98bf8f92d5ca"
>> +SRC_URI[hal.sha256sum] = "ced93d25aea7ee43807147a0269e69a072e718d59e7dab904bbe48b900409483"
>> +
>> +addtask postpatch after do_patch before do_configure
>> +
>> +do_postpatch() {
>> +        rm -rf hal
>> +        cp -a ${WORKDIR}/ath_hal-${HAL_VERSION} hal

Btw., now that we're talking about patches, somehow I lost a commit,
which added this line to restore the old behaviour of starting up in STA
mode:

            rm -f ${WORKDIR}/patches/104-autocreate_none.patch

I'll fix this before pushing it.

>> +        rm -f ${WORKDIR}/patches/446-single_module.patch
>> +        for i in ${WORKDIR}/patches/*.patch; do
>> +                oenote "Applying openwrt patch '$i'"
>> +                patch -p1 -i $i
>> +        done
>> +        patch -p1 -i ${WORKDIR}/remove-wprobe.patch
>> +}

Regards,
Andreas




More information about the Openembedded-devel mailing list