Is there a method for creating a new empty directory in the root filesystem in BitBake?

Lest I forget guys @Middleware & OS, Is there a specific method for creating a new, empty directory in the root filesystem in BitBake? I attempted to include this in one of my bbappend files:
do_install() {
install -d ${D}/tmp/myNewDir
}
FILES_${PN} += "/tmp/myNewDir"
do_install() {
install -d ${D}/tmp/myNewDir
}
FILES_${PN} += "/tmp/myNewDir"
I ended up with a vague error: "Function failed: do_install". I want the desired location for the directory to be in /tmp.
Solution:
First - if you are using an append file, then you may want to try changing do_install() { to do_install:append() { Then, that failed my QA checks (on Kirkstone) because the package installs files in /tmp, but it is expected to be empty [empty-dirs] . However, changing the location of the empty directory to somewhere else worked fine...
Jump to solution
1 Reply
Solution
Ming
Ming3mo ago
First - if you are using an append file, then you may want to try changing do_install() { to do_install:append() { Then, that failed my QA checks (on Kirkstone) because the package installs files in /tmp, but it is expected to be empty [empty-dirs] . However, changing the location of the empty directory to somewhere else worked fine
Want results from more Discord servers?
Add your server