Milton D. Miller II | 0e77514 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC pre-init scripts" |
Gunnar Mills | e5b3860 | 2018-08-31 12:39:15 -0500 | [diff] [blame] | 2 | DESCRIPTION = "Phosphor OpenBMC filesystem mount reference implementation." |
Brad Bishop | cd0ba72 | 2018-06-19 15:21:01 -0400 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
Brad Bishop | 6f3f0aa | 2019-09-13 12:14:05 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Brad Bishop | cd0ba72 | 2018-06-19 15:21:01 -0400 | [diff] [blame] | 5 | PR = "r1" |
Milton D. Miller II | 0e77514 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 6 | |
Milton D. Miller II | 0e77514 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 7 | SRC_URI += "file://obmc-init.sh" |
| 8 | SRC_URI += "file://obmc-shutdown.sh" |
| 9 | SRC_URI += "file://obmc-update.sh" |
| 10 | SRC_URI += "file://whitelist" |
| 11 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 12 | S = "${WORKDIR}" |
| 13 | |
| 14 | inherit allarch |
| 15 | |
Milton D. Miller II | 0e77514 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 16 | do_install() { |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 17 | for f in init-download-url init-options |
| 18 | do |
| 19 | if test -e $f |
| 20 | then |
| 21 | install -m 0755 ${WORKDIR}/$f ${D}/$f |
| 22 | fi |
| 23 | done |
Milton D. Miller II | 0e77514 | 2016-01-20 14:57:54 -0600 | [diff] [blame] | 24 | install -m 0755 ${WORKDIR}/obmc-init.sh ${D}/init |
| 25 | install -m 0755 ${WORKDIR}/obmc-shutdown.sh ${D}/shutdown |
| 26 | install -m 0755 ${WORKDIR}/obmc-update.sh ${D}/update |
| 27 | install -m 0644 ${WORKDIR}/whitelist ${D}/whitelist |
| 28 | install -d ${D}/dev |
| 29 | mknod -m 622 ${D}/dev/console c 5 1 |
| 30 | } |
| 31 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 32 | RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}" |
| 33 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 34 | FILES:${PN} += " /init /shutdown /update /whitelist /dev " |
| 35 | FILES:${PN} += " /init-options /init-download-url " |