]> code.ossystems Code Review - openembedded-core.git/commit
Add the ability to use runqueue schedulers from the metadata
authorChris Larson <chris_larson@mentor.com>
Thu, 22 Jul 2010 18:27:10 +0000 (11:27 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:32 +0000 (14:46 +0000)
commit384c5cc8ac5dfd8132887603fc7eb54f2321664b
tree953aa2d73067b1a1f60dc8def51b27748a5fa54a
parent902b5da3f667f01d741cf702612698fc60a30f3b
Add the ability to use runqueue schedulers from the metadata

If you create a runqueue scheduler class in a python module, available in the
usual python search path, you can now make it available to bitbake via the
BB_SCHEDULERS variable, and the user can then select it as they select any
other scheduler.

Example usage:

    In a test.py I placed appropriately:

        import bb.runqueue

        class TestScheduler(bb.runqueue.RunQueueScheduler):
            name = "myscheduler"

    In local.conf, to make it available and select it:

        BB_SCHEDULERS = "test.TestScheduler"
        BB_SCHEDULER = "myscheduler"

(Bitbake rev: 4dd38d5cfb80f9bb72bc41a629c3320b38f7314d)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/runqueue.py