From 5562820854ab76f326cb397498540c3cad9c7d30 Mon Sep 17 00:00:00 2001 From: Florian Kerle Date: Tue, 28 Jun 2016 18:25:44 +0200 Subject: [PATCH] twopass.tcl: add support for personalities (kernel module parameters) Signed-off-by: Florian Kerle --- tcl/twopass.tcl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tcl/twopass.tcl b/tcl/twopass.tcl index 6bd3302d81a..ed8ce47c113 100644 --- a/tcl/twopass.tcl +++ b/tcl/twopass.tcl @@ -186,6 +186,13 @@ proc ::tp::loadrt_substitute {args} { set ::TP($module,names) "$::TP($module,names),$value" } } + personality { + if ![info exists ::TP($module,personality)] { + set ::TP($module,personality) $value + } else { + set ::TP($module,personality) "$::TP($module,personality),$value" + } + } debug { if ![info exists ::TP($module,debug)] { set ::TP($module,debug) $value @@ -406,6 +413,10 @@ proc ::tp::load_the_modules {} { } elseif [info exists ::TP($m,names)] { set cmd "$cmd names=$::TP($m,names)" } + + if [info exists ::TP($m,personality)] { + set cmd "$cmd personality=$::TP($m,personality)" + } if [info exists ::TP($m,debug)] { set cmd "$cmd debug=$::TP($m,debug)" }