summaryrefslogtreecommitdiff
path: root/meta-openbmc-machines/meta-openpower/common/recipes-core/systemd/systemd_%.bbappend
blob: 75194046745ba8df3aae97026abb154b6a28408e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}