summaryrefslogtreecommitdiffstats
path: root/meta/classes/bootimg.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2014-08-05 14:39:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-06 10:27:00 +0100
commitbfa36a21885acba472c27358270cbffeb282d1dd (patch)
treed6d3701d88f2360011e09fc569aab3bb94481bc1 /meta/classes/bootimg.bbclass
parent73c481d2cbc3e7c7ef9f594126aec581ec75b689 (diff)
downloadpoky-bfa36a21885acba472c27358270cbffeb282d1dd.tar.gz
code cleanup for INITRD variable handing
* Remove an unnecessary check * Instead of ignoring, report the errors (From OE-Core rev: 7afc6df6f0d0bbe0c5cb8ec021d430d6d9714941) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r--meta/classes/bootimg.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index 7b3ce65910..859d517dbd 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -75,6 +75,8 @@ populate() {
75 do 75 do
76 if [ -s "${fs}" ]; then 76 if [ -s "${fs}" ]; then
77 cat ${fs} >> ${DEST}/initrd 77 cat ${fs} >> ${DEST}/initrd
78 else
79 bbfatal "${fs} is invalid. initrd image creation failed."
78 fi 80 fi
79 done 81 done
80 chmod 0644 ${DEST}/initrd 82 chmod 0644 ${DEST}/initrd