Image-creator: Make bitbake server type configuration (xmlrpc, none)
cover Image-creator: Make bitbake server type configuration (xmlrpc, none)
From: Liping Ke <[email protected]>
Add -t parameters for configuring xmlrpc or none server.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: lke/server_type
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lke/server_type
Thanks,
Liping Ke <[email protected]>
---
Liping Ke (1):
Make bitbake server type configuration (xmlrpc, none)
bitbake/bin/bitbake | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-)
PATCH 1/1 Image Creator: Make bitbake server type configuration (xmlrpc, none)
From: Liping Ke <[email protected]>
Add -t parameters for configuring xmlrpc or none server.
--- bitbake/bin/bitbake | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-)
bitbake/bin/bitbake +15 -5
@@ -39,8 +39,6 @@ import bb.msg from bb import cooker from bb import ui from bb import server -from bb.server import none -#from bb.server import xmlrpc __version__ = "1.11.0" logger = logging.getLogger("BitBake")
@@ -71,7 +69,7 @@ def get_ui(config): return getattr(module, interface).main except AttributeError: sys.exit("FATAL: Invalid user interface '%s' specified.\n" - "Valid interfaces: depexp, goggle, ncurses, knotty [default]." % interface) + "Valid interfaces: depexp, goggle, ncurses, hob, knotty [default]." % interface) # Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring others"""
@@ -161,6 +159,9 @@ Default BBFILES are the .bb files in the current directory.""") parser.add_option("-u", "--ui", help = "userinterface to use", action = "store", dest = "ui") + parser.add_option("-t", "--servertype", help = "choose which server to user, none or xmlrpc", + action = "store", dest = "servertype") + parser.add_option("", "--revisions-changed", help = "Set the exit code depending on whether upstream floating revisions have changed or not", action = "store_true", dest = "revisions_changed", default = False)
@@ -175,8 +176,17 @@ Default BBFILES are the .bb files in the current directory.""") loghandler = event.LogHandler() logger.addHandler(loghandler) - #server = bb.server.xmlrpc - server = bb.server.none + # Server type could be xmlrpc or none currently, if nothing is specified, + # default server would be none + if configuration.servertype: + server_type = configuration.servertype + else: + server_type = 'none' + + module = __import__("bb.server", fromlist = [server_type]) + server = getattr(module, server_type) + + print ("lke: servertype: ", server_type) # Save a logfile for cooker into the current working directory. When the # server is daemonized this logfile will be truncated.
Signature · 1 line
1.7.0.4
Re: [PATCH 1/1] Image Creator: Make bitbake server type configuration (xmlrpc, none)
Hi, Josh Saul
I have resent the patch for removing the left debugging line. Please look@ the newer email:)
Thanks a lot for your help!
criping
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Liping Ke
Sent: Wednesday, April 27, 2011 3:45 PM
To: [email protected]
Subject: [OE-core] [PATCH 1/1] Image Creator: Make bitbake server type configuration (xmlrpc, none)
From: Liping Ke <[email protected]>
Add -t parameters for configuring xmlrpc or none server.
--- bitbake/bin/bitbake | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-)
bitbake/bin/bitbake +15 -5
@@ -39,8 +39,6 @@ import bb.msg from bb import cooker from bb import ui from bb import server -from bb.server import none -#from bb.server import xmlrpc __version__ = "1.11.0" logger = logging.getLogger("BitBake")
@@ -71,7 +69,7 @@ def get_ui(config): return getattr(module, interface).main except AttributeError: sys.exit("FATAL: Invalid user interface '%s' specified.\n" - "Valid interfaces: depexp, goggle, ncurses, knotty [default]." % interface) + "Valid interfaces: depexp, goggle, ncurses, hob, knotty [default]." % interface) # Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring others"""
@@ -161,6 +159,9 @@ Default BBFILES are the .bb files in the current directory.""") parser.add_option("-u", "--ui", help = "userinterface to use", action = "store", dest = "ui") + parser.add_option("-t", "--servertype", help = "choose which server to user, none or xmlrpc", + action = "store", dest = "servertype") + parser.add_option("", "--revisions-changed", help = "Set the exit code depending on whether upstream floating revisions have changed or not", action = "store_true", dest = "revisions_changed", default = False)
@@ -175,8 +176,17 @@ Default BBFILES are the .bb files in the current directory.""") loghandler = event.LogHandler() logger.addHandler(loghandler) - #server = bb.server.xmlrpc - server = bb.server.none + # Server type could be xmlrpc or none currently, if nothing is specified, + # default server would be none + if configuration.servertype: + server_type = configuration.servertype + else: + server_type = 'none' + + module = __import__("bb.server", fromlist = [server_type]) + server = getattr(module, server_type) + + print ("lke: servertype: ", server_type) # Save a logfile for cooker into the current working directory. When the # server is daemonized this logfile will be truncated.
Signature · 7 lines
1.7.0.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 1/1] Image Creator: Make bitbake server type configuration (xmlrpc, none)
Hi, Josh
Thanks for the feedback! I will resend the patch today seems I use the wrong patch.
Thanks a lot!
criping
Quoted 110 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ke, Liping
Sent: Wednesday, April 27, 2011 4:05 PM
To: Patches and discussions about the oe-core layer
Cc: Lock, Joshua; Zhang, Jessica
Subject: Re: [OE-core] [PATCH 1/1] Image Creator: Make bitbake server type configuration (xmlrpc, none)Hi, Josh Saul
I have resent the patch for removing the left debugging line. Please look@ the newer email:)Thanks a lot for your help!
criping-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Liping Ke
Sent: Wednesday, April 27, 2011 3:45 PM
To: [email protected]
Subject: [OE-core] [PATCH 1/1] Image Creator: Make bitbake server type configuration (xmlrpc, none)From: Liping Ke <[email protected]>
Add -t parameters for configuring xmlrpc or none server.
Signed-off-by Liping Ke <[email protected]>--- bitbake/bin/bitbake | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-)bitbake/bin/bitbake +1
-3@@ -39,8 +39,6 @@ import bb.msg from bb import cooker from bb import ui from bb import server -from bb.server import none -#from bb.server import xmlrpc __version__ = "1.11.0" logger = logging.getLogger("BitBake")@@ -71,7 +69,7 @@ def get_ui(config): return getattr(module, interface).main except AttributeError: sys.exit("FATAL: Invalid user interface '%s' specified.\n" - "Valid interfaces: depexp, goggle, ncurses, knotty [default]." % interface) + "Valid interfaces: depexp, goggle, ncurses, hob, knotty [default]." % interface)# Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring
others"""bitbake/bin/bitbake +3
-0@@ -161,6 +159,9 @@ Default BBFILES are the .bb files in the current directory.""") parser.add_option("-u", "--ui", help = "userinterface to use", action = "store", dest = "ui") + parser.add_option("-t", "--servertype", help = "choose which server to user, none or xmlrpc", + action = "store", dest = "servertype") + parser.add_option("", "--revisions-changed", help = "Set the exit codedepending on whether upstream floating revisions have changed or not",
action = "store_true", dest = "revisions_changed", default
= False)bitbake/bin/bitbake +11
-2@@ -175,8 +176,17 @@ Default BBFILES are the .bb files in the current directory.""") loghandler = event.LogHandler() logger.addHandler(loghandler) - #server = bb.server.xmlrpc - server = bb.server.none + # Server type could be xmlrpc or none currently, if nothing is specified, + # default server would be none + if configuration.servertype: + server_type = configuration.servertype + else: + server_type = 'none' + + module = __import__("bb.server", fromlist = [server_type]) + server = getattr(module, server_type) + + print ("lke: servertype: ", server_type) # Save a logfile for cooker into the current working directory. When the# server is daemonized this logfile will be truncated. -- 1.7.0.4_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core