summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
blob: 96c27da12beb6507e215ad615adf9a6ebb90baaa (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
26
27
28
29
30
SUMMARY = "Phosphor OpenBMC pre-init scripts for mmc"
DESCRIPTION = "Phosphor OpenBMC filesystem mount implementation for mmc."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

PR = "r1"

inherit allarch

RDEPENDS:${PN} += " \
    ${@d.getVar('PREFERRED_PROVIDER_u-boot-fw-utils', True) or 'u-boot-fw-utils'} \
    ${VIRTUAL-RUNTIME_base-utils} \
    e2fsprogs-e2fsck \
    e2fsprogs-mke2fs \
    gptfdisk \
    libgpiod-tools \
    parted \
    udev \
"

S = "${WORKDIR}"
SRC_URI += "file://mmc-init.sh"

do_install() {
    install -m 0755 ${WORKDIR}/mmc-init.sh ${D}/init
    install -d ${D}/dev
    mknod -m 622 ${D}/dev/console c 5 1
}

FILES:${PN} += " /init /dev "