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@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to