summaryrefslogtreecommitdiff
path: root/meta-openbmc-machines/meta-openpower/common/recipes-core/systemd/systemd_%.bbappend
blob: e42259e5f78b4e88de20ac27f8b20e6f816f6153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
inherit obmc-phosphor-utils

SRC_URI += "${@df_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('DISTRO_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
}