summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2016-03-07 14:42:50 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2016-03-07 15:22:58 -0600
commit0111a4871b9afcda022ce025fe1328223ae690fe (patch)
tree6df9b74e07ffce9df57695ed508a1e9eb43308c2
parent71e7ec145b1a7fb55b7d272c0fc29d5ed81f3bb4 (diff)
downloadtalos-openbmc-0111a4871b9afcda022ce025fe1328223ae690fe.tar.gz
talos-openbmc-0111a4871b9afcda022ce025fe1328223ae690fe.zip
initfs: Install option and download files if they exist
Install the init-option and init-download-url if they exist in the build directory. This change to the bitbake recipe allows an override layer to simply add these files to the SRC_URI variable and then have them appear in the initramfs. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rw-r--r--meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/obmc-phosphor-init.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/obmc-phosphor-init.bb b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/obmc-phosphor-init.bb
index 68ee00d20..3fa88c9e6 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/obmc-phosphor-init.bb
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/obmc-phosphor-init.bb
@@ -12,6 +12,13 @@ SRC_URI += "file://obmc-update.sh"
SRC_URI += "file://whitelist"
do_install() {
+ for f in init-download-url init-options
+ do
+ if test -e $f
+ then
+ install -m 0755 ${WORKDIR}/$f ${D}/$f
+ fi
+ done
install -m 0755 ${WORKDIR}/obmc-init.sh ${D}/init
install -m 0755 ${WORKDIR}/obmc-shutdown.sh ${D}/shutdown
install -m 0755 ${WORKDIR}/obmc-update.sh ${D}/update
@@ -21,3 +28,4 @@ do_install() {
}
FILES_${PN} += " /init /shutdown /update /whitelist /dev "
+FILES_${PN} += " /init-options /init-download-url "
OpenPOWER on IntegriCloud