blob: 75194046745ba8df3aae97026abb154b6a28408e [file] [log] [blame]
SRC_URI += "${@mf_enabled(d, 'openpower-ubi-fs', 'file://software.conf')}"
install_tmpfile() {
# /tmp/images is the software image upload directory.
# It should not be deleted since it is watched by the Image Manager for
# new images.
if ${@bb.utils.contains('MACHINE_FEATURES', 'openpower-ubi-fs', 'true', 'false', d)}; then
install -m 0644 ${WORKDIR}/software.conf ${D}${exec_prefix}/lib/tmpfiles.d/
fi
}
install_tmpfile_df-obmc-ubi-fs() {
# Don't install software.conf if obmc-ubi-fs is set since
# the bbappend in the meta-phosphor layer already installs
# if obmc-ubi-fs is set.
:
}
do_install_append() {
install_tmpfile
}