Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC pre-init scripts" |
| 2 | DESCRIPTION = "Phosphor OpenBMC filesytem mount reference implementation." |
| 3 | PR = "r1" |
| 4 | |
| 5 | inherit obmc-phosphor-license |
Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 6 | |
| 7 | S = "${WORKDIR}" |
| 8 | SRC_URI += "file://obmc-init.sh" |
| 9 | SRC_URI += "file://obmc-shutdown.sh" |
| 10 | SRC_URI += "file://obmc-update.sh" |
| 11 | SRC_URI += "file://whitelist" |
| 12 | |
| 13 | do_install() { |
Milton D. Miller II | b1136c0 | 2016-03-07 14:42:50 -0600 | [diff] [blame] | 14 | for f in init-download-url init-options |
| 15 | do |
| 16 | if test -e $f |
| 17 | then |
| 18 | install -m 0755 ${WORKDIR}/$f ${D}/$f |
| 19 | fi |
| 20 | done |
Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 21 | install -m 0755 ${WORKDIR}/obmc-init.sh ${D}/init |
| 22 | install -m 0755 ${WORKDIR}/obmc-shutdown.sh ${D}/shutdown |
| 23 | install -m 0755 ${WORKDIR}/obmc-update.sh ${D}/update |
| 24 | install -m 0644 ${WORKDIR}/whitelist ${D}/whitelist |
| 25 | install -d ${D}/dev |
| 26 | mknod -m 622 ${D}/dev/console c 5 1 |
| 27 | } |
| 28 | |
| 29 | FILES_${PN} += " /init /shutdown /update /whitelist /dev " |
Milton D. Miller II | b1136c0 | 2016-03-07 14:42:50 -0600 | [diff] [blame] | 30 | FILES_${PN} += " /init-options /init-download-url " |