summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2020-02-13 10:31:41 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-15 22:42:14 +0000
commitdd372f09fc8a63ddc3b3f0a8dbf17b66903cbbc3 (patch)
treeb6ac3369e61522511bf53102e471e0044c5c5f41 /scripts
parent623326ac5aa5aa23649aeea8ec98d010dd5ce01b (diff)
downloadpoky-dd372f09fc8a63ddc3b3f0a8dbf17b66903cbbc3.tar.gz
wic: Honor APPEND
APPEND is used to add additional parameters to kernel by features, such as read-only-rootfs. So we should honor this variable when we compose the kernel parameter in wic. I know we also can resolve this kind of issue by using the .wks.in template introduced by commit 42e870c5ed4b ("image_types.bbclass: support template .wks.in files for wic"), but the APPEND is needed by all the wks, it would seems pretty ridiculous to me to change all the .wks to .wks.in and then foist the APPEND into them. So the APPEND is definitely deserved to export to the wic directly. [Yocto #12809] (From OE-Core rev: 18981b8a457104391dfd94938c247eac04e4ed50) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/ksparser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 707a2e8019..650b976223 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -246,6 +246,11 @@ class KickStart():
246 elif line.startswith('bootloader'): 246 elif line.startswith('bootloader'):
247 if not self.bootloader: 247 if not self.bootloader:
248 self.bootloader = parsed 248 self.bootloader = parsed
249 # Concatenate the strings set in APPEND
250 append_var = get_bitbake_var("APPEND")
251 if append_var:
252 self.bootloader.append = ' '.join(filter(None, \
253 (self.bootloader.append, append_var)))
249 else: 254 else:
250 err = "%s:%d: more than one bootloader specified" \ 255 err = "%s:%d: more than one bootloader specified" \
251 % (confpath, lineno) 256 % (confpath, lineno)