Toggle navigation
Help
Log In
Help
Log In
Home
Messages
Hashtags
Subgroups
×
×
×
Close
Likes
yocto@lists.yoctoproject.org
Messages
Possible to ignore a missing file in recipe without error?
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
previous page
#56161
next page
Possible to ignore a missing file in recipe without error?
Howard
#56161
Hi:
I have a simple recipe that installs a few miscellaneous files, one of the files may or may not be present and in reality that's ok for the moment, but I don't see a way to do things in a recipe based on the presence or absence of a file.
For example:
LICENSE="CLOSED"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
# always present file
SRC_URI += "file://myconfig.config"
# sometimes present file - is there a way to conditionally do this statement
SRC_URI += "file://myOtherConfig.config"
do_install() {
install -d ${D}${sysconfdir}
install -m 0755 ${WORKDIR}/myconfig.config ${D}${sysconfdir}
#same here
install -m 0755 ${WORKDIR}/myOtherConfig.config ${D}${sysconfdir}
}
FILES_${PN} += " ${sysconfdir}/myconfig.config "
#same here
FILES_${PN} += " ${sysconfdir}/myOtherConfig.config "
Many thanks
Howard
More
All Messages By This Member
previous page
View All 3 Messages In Topic
next page
previous page
#56161
next page
Join
yocto@lists.yoctoproject.org to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to Yocto Project Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of yocto@lists.yoctoproject.org?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More
Home
Hashtags
Subgroups
Terms
Toggle navigation
Terms
©
2022
Groups.io