Brad Bishop | 02f9a52 | 2018-03-09 16:51:57 -0500 | [diff] [blame^] | 1 | inherit obmc-phosphor-utils |
| 2 | |
Brad Bishop | 09806a5 | 2018-03-09 00:40:41 -0500 | [diff] [blame] | 3 | SRC_URI += "${@df_enabled(d, 'openpower-ubi-fs', 'file://software.conf')}" |
Gunnar Mills | 1e44524 | 2017-11-01 14:09:04 -0500 | [diff] [blame] | 4 | |
Brad Bishop | 8623bbe | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 5 | install_tmpfile() { |
Gunnar Mills | 1e44524 | 2017-11-01 14:09:04 -0500 | [diff] [blame] | 6 | # /tmp/images is the software image upload directory. |
| 7 | # It should not be deleted since it is watched by the Image Manager for |
Brad Bishop | 8623bbe | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 8 | # new images. |
| 9 | |
Brad Bishop | 09806a5 | 2018-03-09 00:40:41 -0500 | [diff] [blame] | 10 | if ${@bb.utils.contains('DISTRO_FEATURES', 'openpower-ubi-fs', 'true', 'false', d)}; then |
Gunnar Mills | 1e44524 | 2017-11-01 14:09:04 -0500 | [diff] [blame] | 11 | install -m 0644 ${WORKDIR}/software.conf ${D}${exec_prefix}/lib/tmpfiles.d/ |
| 12 | fi |
| 13 | } |
Brad Bishop | 8623bbe | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 14 | |
| 15 | install_tmpfile_df-obmc-ubi-fs() { |
| 16 | # Don't install software.conf if obmc-ubi-fs is set since |
| 17 | # the bbappend in the meta-phosphor layer already installs |
| 18 | # if obmc-ubi-fs is set. |
| 19 | |
| 20 | : |
| 21 | } |
| 22 | |
| 23 | do_install_append() { |
| 24 | install_tmpfile |
| 25 | } |