I'm trying to build OpenWrt 23.05.5, on previous versions i have added files to the openwrt/files directory and they have been included in my build but for some reason on 23 they don't show. I have also tried
make FILES="files"
But again they don't show, any idea what i'm doing wrong?
Thanks but folder already has correct ownership. I never has this problem with other versions/builds on the same machine.
Normally i use this method
### Custom files
In case you want to include some custom configuration files, the correct place to put them is:
* **`<buildroot>/files/`**
For example, let's say that you want an image with a custom **`/etc/config/firewall`** or a custom **`etc/sysctl.conf`**, then create this files as:
* `<buildroot>/files/etc/config/firewall`
* `<buildroot>/files/etc/sysctl.conf`
E.g. if your `<buildroot>` is `~/source` and you want some files to be copied into firmware image's `/etc/config` directory, the correct place to put them is `~/source/files/etc/config`.
If i do
mkdir openwrt/files/etc
touch openwrt/files//etc/foo
then
make
or
make FILES="files" (not i've never has to use the extra files part before)
I vaguely remember, some time in the past, that empty file (touch ) was not included in /files for me, too. Try echo '1' > files/etc/foo and look, what happens.