I'd like to be able to duplicate the build environment as I need to make a number of custom modifications. I have followed instructions by cloning the git openwrt repository and the nnopenwrt repository
cd /opt/openwrt/x86
git clone git://git.openwrt.org/openwrt.git
git clone git://git.openwrt.org/packages.git
git clone https://bitbucket.org/nuskunetworks/nnopenwrt.git
Then I try to execute the pre-process and patch scripts
cd /opt/openwrt/x86/nnopenwrt
bin/pre_process.sh /opt/openwrt/x86/openwrt
bin/patch.sh/opt/openwrt/x86/openwrt
The patch fails with the following
cp: cannot create regular file `/opt/openwrt/x86/openwrt/package/iptables/patches/': No such file or directory
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/package/kernel/modules/netsupport.mk b/package/kernel/modules/netsupport.mk
|index b4e2a42..6e809dc 100644
|--- package/kernel/modules/netsupport.mk
|+++ package/kernel/modules/netsupport.mk
--------------------------
I'm not sure what I'm doing wrong - the location of iptables in the folder shown in the error message seems a bit odd. Would it be possible to post definitive instructions on how to duplicate your build environment and make a build?