Where do custom files go?

I have an 18.06 source tree installed and am trying to learn how to build using menuconfig rather than image builder.

So far, so good, I've built my first two versions without problems but now I need to add custom network settings and files. I'm building a couple of targets at the same time to learn about this mips_24k and mipsel_24k.

Using image builder, I would put my files at the root of the build tree (files/) but in this case, where do my custom files go?

Same, ./files/ (or a location symlinked there)

Thanks for the input.

In this case, I have files for the two different variations I am building.
Meaning, I could name them files-mips and files-mipsel for example but I probably have to mention those in the build config somewhere too right?

I manage that kind of thing by linking ./files/ to ./env/files (and .config to ./env/dot.config) and managing ./env/ as a git repo.


As they are different architectures and will build different cross-compilation tools, you might also consider using git worktree to keep at least the architectures separate from each other and from a "reference" copy of master.

2 Likes

Thank you for the information Jeff. It is much appreciated.
I also found this so wanted to share.

https://openwrt.org/docs/guide-developer/build-system/use-buildsystem#custom_files

1 Like

If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

@JoshGrant
how you add files in image ? like i want to add a new .css file for luci.

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