blob: de696efb351a2699e7930759bec22ad673085fa2 [file] [log] [blame]
Brandon Kimbafdac12021-06-15 15:29:31 -07001# This is needed to guarantee that our whitelist takes
2# precendence over the OpenBMC one
Willy Tu4dd03ca2021-08-06 09:37:35 -07003FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:"
Brandon Kimbafdac12021-06-15 15:29:31 -07004
Willy Tu4dd03ca2021-08-06 09:37:35 -07005SRC_URI:append:gbmc:dev = " file://whitelist.dev"
Brandon Kimbafdac12021-06-15 15:29:31 -07006
Willy Tu4dd03ca2021-08-06 09:37:35 -07007do_install:append:gbmc:dev() {
Brandon Kimbafdac12021-06-15 15:29:31 -07008 cat ${WORKDIR}/whitelist.dev >>${D}/whitelist
9}
10
Willy Tu4dd03ca2021-08-06 09:37:35 -070011SRC_URI:append:gbmc:dev = " file://rwfs-clean-dev.patch"
Brandon Kimbafdac12021-06-15 15:29:31 -070012# Required for the clean-dev patch to detect version changes
Willy Tu4dd03ca2021-08-06 09:37:35 -070013RDEPENDS:${PN}:append:gbmc:dev = " os-release"
Brandon Kimbafdac12021-06-15 15:29:31 -070014
Willy Tu4dd03ca2021-08-06 09:37:35 -070015do_install:append:gbmc:prod() {
Brandon Kimbafdac12021-06-15 15:29:31 -070016 echo "clean-rwfs-filesystem" > ${D}/init-options-base
17 chmod 0644 ${D}/init-options-base
18}
19
Willy Tu4dd03ca2021-08-06 09:37:35 -070020FILES:${PN}:append:gbmc:prod = " /init-options-base"