Unable to include "files"

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?

Not really enough info, but off the top of my head, have you done you a proper clean?

Yes did a make clean after adding files directory and also did a build from fresh and still not showing up.

Wild guess: chown -R user_build openwrtbuilddir
To make shure, all files having correct owner (non-root)

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)

The foo doesn't show up

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.

1 Like

there is a typo in what you've offered, not sure if its relevant or not.

In case, this issue is clarified, pls flag as SOLVED.

This was it! thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.