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." |
Brad Bishop | ab2908b | 2018-06-19 15:21:01 -0400 | [diff] [blame^] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 5 | |
Brad Bishop | ab2908b | 2018-06-19 15:21:01 -0400 | [diff] [blame^] | 6 | PR = "r1" |
Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 7 | |
| 8 | S = "${WORKDIR}" |
| 9 | SRC_URI += "file://obmc-init.sh" |
| 10 | SRC_URI += "file://obmc-shutdown.sh" |
| 11 | SRC_URI += "file://obmc-update.sh" |
| 12 | SRC_URI += "file://whitelist" |
| 13 | |
| 14 | do_install() { |
Milton D. Miller II | b1136c0 | 2016-03-07 14:42:50 -0600 | [diff] [blame] | 15 | for f in init-download-url init-options |
| 16 | do |
| 17 | if test -e $f |
| 18 | then |
| 19 | install -m 0755 ${WORKDIR}/$f ${D}/$f |
| 20 | fi |
| 21 | done |
Milton D. Miller II | d89d5e0 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 22 | install -m 0755 ${WORKDIR}/obmc-init.sh ${D}/init |
| 23 | install -m 0755 ${WORKDIR}/obmc-shutdown.sh ${D}/shutdown |
| 24 | install -m 0755 ${WORKDIR}/obmc-update.sh ${D}/update |
| 25 | install -m 0644 ${WORKDIR}/whitelist ${D}/whitelist |
| 26 | install -d ${D}/dev |
| 27 | mknod -m 622 ${D}/dev/console c 5 1 |
| 28 | } |
| 29 | |
| 30 | FILES_${PN} += " /init /shutdown /update /whitelist /dev " |
Milton D. Miller II | b1136c0 | 2016-03-07 14:42:50 -0600 | [diff] [blame] | 31 | FILES_${PN} += " /init-options /init-download-url " |