diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2014-08-05 14:39:57 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-06 10:27:00 +0100 |
commit | bfa36a21885acba472c27358270cbffeb282d1dd (patch) | |
tree | d6d3701d88f2360011e09fc569aab3bb94481bc1 /meta/classes | |
parent | 73c481d2cbc3e7c7ef9f594126aec581ec75b689 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/boot-directdisk.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/bootimg.bbclass | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 995d3e7fc6..5107d7f8e4 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
@@ -76,8 +76,10 @@ boot_direct_populate() { | |||
76 | rm -f $dest/initrd | 76 | rm -f $dest/initrd |
77 | for fs in ${INITRD} | 77 | for fs in ${INITRD} |
78 | do | 78 | do |
79 | if [ -n "${fs}" ] && [ -s "${fs}" ]; then | 79 | if [ -s "${fs}" ]; then |
80 | cat ${fs} >> $dest/initrd | 80 | cat ${fs} >> $dest/initrd |
81 | else | ||
82 | bbfatal "${fs} is invalid. initrd image creation failed." | ||
81 | fi | 83 | fi |
82 | done | 84 | done |
83 | chmod 0644 $dest/initrd | 85 | chmod 0644 $dest/initrd |
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 |