Applying arch specific patch to package from feeds
Andre Heider
a.heider at gmail.com
Wed Jul 31 23:39:12 PDT 2024
Hi,
On 29/07/2024 4:31 pm, Nishant Sharma wrote:
> Hello,
>
> How can I apply a patch to a package from the feed, only when the
> architecture is say, ramips but not when it is x86_64 or mips.
This should work:
PATCH_DIR:=./patches-$(ARCH)
and then throw it in ./patches-ramips
But generally speaking you should avoid that, as e.g. refreshing patches
becomes fragile. Use ifdefery to make the code arch depended instead.
>
> If I put the patch in package's patch directory, it gets applied
> unconditionally.
>
> Thanks in advance for the pointers.
>
> Regards,
> Nishant
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list