copy 800-my-addition.patch to openwrt-sdk/feeds/base/package/network/services/hostapd/patches directory
make and install packages
But I am getting this error:
Applying ./patches/800-my-addition.patch using plaintext:
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/package/network/services/hostapd/files/hostapd.sh (date 1551879915000)
|+++ b/package/network/services/hostapd/files/hostapd.sh (date 1551910928000)
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch failed! Please fix ./patches/800-my-addition.patch!
How do I fix this? What should be the path in the patch file?
I followed the steps in the in the link, both creating a new patch and adding an existing patch.
After the make/prepare command, menuconfig pops up and select hostapd, save .config and exit.
then I did: quilt push -a but it says "No series file found"
But when I do quilt new 010-main_code_fix.patch I am creating a patch for the hostapd package.
Here is the directory structure, this shows structure of hostapd
I am not trying to create a patch for the package hostapd, I am trying to create a patch for the script hostapd.sh which is part of openWRT and which will be place here: /lib/netifd/hostapd.sh
Instead of the patch, do you think I should just replace hostapd.sh with my version and compile the package?