All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable additional kernel parameters for syslinux
@ 2013-04-03 17:47 Mark Hatle
  2013-04-03 17:48 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2013-04-03 17:47 UTC (permalink / raw)
  To: openembedded-core

From: Konrad Scherer <Konrad.Scherer@windriver.com>

Add additional parameter 'SYSLINUX_KERNEL_ARGS' in order to allow
for specific kernel parameters to be set when using syslinux.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/syslinux.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index 0b90eab..1eca4f8 100644
--- a/meta/classes/syslinux.bbclass
+++ b/meta/classes/syslinux.bbclass
@@ -13,6 +13,7 @@
 # ${SYSLINUX_OPTS} - additional options to add to the syslinux file ';' delimited
 # ${SYSLINUX_SPLASH} - A background for the vga boot menu if using the boot menu
 # ${SYSLINUX_SERIAL} - Set an alternate serial port or turn off serial with empty string
+# ${SYSLINUX_KERNEL_ARGS} - Add additional kernel arguments
 
 do_bootimg[depends] += "syslinux:do_populate_sysroot \
                         syslinux-native:do_populate_sysroot"
@@ -150,6 +151,10 @@ python build_syslinux_cfg () {
         for btype in btypes:
             cfgfile.write('LABEL %s%s\nKERNEL /vmlinuz\n' % (btype[0], label))
 
+            exargs = d.getVar('SYSLINUX_KERNEL_ARGS', True)
+            if exargs:
+                btype[1] += " " + exargs
+
             append = localdata.getVar('APPEND', True)
             initrd = localdata.getVar('INITRD', True)
 
-- 
1.8.1.2.545.g2f19ada




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable additional kernel parameters for syslinux
  2013-04-03 17:47 [PATCH] Enable additional kernel parameters for syslinux Mark Hatle
@ 2013-04-03 17:48 ` Burton, Ross
  2013-04-04 15:07   ` Konrad Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2013-04-03 17:48 UTC (permalink / raw)
  To: Mark Hatle; +Cc: OE-core

On 3 April 2013 18:47, Mark Hatle <mark.hatle@windriver.com> wrote:
> Add additional parameter 'SYSLINUX_KERNEL_ARGS' in order to allow
> for specific kernel parameters to be set when using syslinux.

Why would you use this and not APPEND? (or am I totally
misunderstanding something?)

Ross



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable additional kernel parameters for syslinux
  2013-04-03 17:48 ` Burton, Ross
@ 2013-04-04 15:07   ` Konrad Scherer
  0 siblings, 0 replies; 3+ messages in thread
From: Konrad Scherer @ 2013-04-04 15:07 UTC (permalink / raw)
  To: openembedded-core

On 04/03/2013 01:48 PM, Burton, Ross wrote:
> On 3 April 2013 18:47, Mark Hatle <mark.hatle@windriver.com> wrote:
>> Add additional parameter 'SYSLINUX_KERNEL_ARGS' in order to allow
>> for specific kernel parameters to be set when using syslinux.
>
> Why would you use this and not APPEND? (or am I totally
> misunderstanding something?)

A few more lines of context would have helped. Here is the code just after the 
patch.

             if append:
                 cfgfile.write('APPEND ')

                 if initrd:
                     cfgfile.write('initrd=/initrd ')

                 cfgfile.write('LABEL=%s '% (label))

                 cfgfile.write('%s %s\n' % (append, btype[1]))
             else:
                 cfgfile.write('APPEND %s\n' % btype[1])

The extra kernel parameters are added to btype[1] and then written out as part 
of the APPEND field.

Does that make sense?

-- 
Konrad Scherer, Sr. Engineer, Linux Products Group, Wind River
direct 613-963-1342   fax 613-592-2283



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-04 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-03 17:47 [PATCH] Enable additional kernel parameters for syslinux Mark Hatle
2013-04-03 17:48 ` Burton, Ross
2013-04-04 15:07   ` Konrad Scherer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.