I'm writing a recipe that copies some configuration files over to my image (like a cramfs.conf that goes into /etc/modprobe.d to disable cramfs). Here is the structure of my recipe directory:
.
├── compliance-config.bb
└── configs
└── fs
├── 1-1-1-1-cramfs.conf
├── 1-1-1-2-freevxfs.conf
...
In my recipe I do the following:
SRC_URI += "file://fs"
do_install() {
install -d ${D}${sysconfdir}/modprobe.d/
install -m 0644 ${WORKDIR}/fs/*.conf ${D}${sysconfdir}/modprobe.d/
}
This works, but when I change the folder name of fs
to something more descriptive (and of course accordingly change the SRC_URI
and path in do_install()
), it doesn't find the files anymore and gives me (Edit: to clarify, this error happens when I change the directory name from fs
to fsconfigs
for example, tried different names to make sure I don't accidentally name it in a forbidden way, names like abctest
also don't work).
ERROR: compliance-config-1.0-r0 do_fetch: Fetcher failure: Unable to find file file://fsconfigs anywhere. The paths that were searched were:
[...long list of paths...]
So I thought I needed to do a clean build, but running bitbake -c clean <image>
or bitbake -fc cleanall <image>
beforehand doesn't help.
Why does bitbake not find my files if I change the specified directory?