diff options
| author | Joshua Lock <josh@linux.intel.com> | 2011-08-23 16:11:47 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-24 19:49:32 -0700 |
| commit | 8ac3cec827794b784d386b63431970330276d564 (patch) | |
| tree | 6780691c52387b480de4e56ebf69a73f6f723897 /bitbake/lib/bb/ui/crumbs | |
| parent | cd80b4fc6dc06ff36ed8e3423b9cf990856d7145 (diff) | |
| download | poky-8ac3cec827794b784d386b63431970330276d564.tar.gz | |
hob: don't set PARALLEL_MAKE and BB_NUMBER_THREADS based on cpu count
This was actually broken with recent changes as the values were never
persisted to a file (meaning they were unset on the server at reparse
despite the UI indicating they were set).
However, I've chosen to remove the 'feature' as pegging a users CPU without
them asking to use high thread counts seems a little offensive.
(Bitbake rev: 27dcf245abf3805be47894773406392fdf055e48)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobprefs.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobprefs.py b/bitbake/lib/bb/ui/crumbs/hobprefs.py index ee42e58453..3859b29a0f 100644 --- a/bitbake/lib/bb/ui/crumbs/hobprefs.py +++ b/bitbake/lib/bb/ui/crumbs/hobprefs.py | |||
| @@ -166,7 +166,7 @@ class HobPrefs(gtk.Dialog): | |||
| 166 | self.reload_required = False | 166 | self.reload_required = False |
| 167 | 167 | ||
| 168 | def __init__(self, configurator, handler, curr_sdk_mach, curr_distro, pclass, | 168 | def __init__(self, configurator, handler, curr_sdk_mach, curr_distro, pclass, |
| 169 | cpu_cnt, pmake, bbthread, selected_image_types, all_image_types, | 169 | pmake, bbthread, selected_image_types, all_image_types, |
| 170 | gplv3disabled, build_toolchain, build_toolchain_headers): | 170 | gplv3disabled, build_toolchain, build_toolchain_headers): |
| 171 | """ | 171 | """ |
| 172 | """ | 172 | """ |
| @@ -185,7 +185,6 @@ class HobPrefs(gtk.Dialog): | |||
| 185 | self.curr_sdk_mach = curr_sdk_mach | 185 | self.curr_sdk_mach = curr_sdk_mach |
| 186 | self.curr_distro = curr_distro | 186 | self.curr_distro = curr_distro |
| 187 | self.curr_package_format = pclass | 187 | self.curr_package_format = pclass |
| 188 | self.cpu_cnt = cpu_cnt | ||
| 189 | self.pmake = pmake | 188 | self.pmake = pmake |
| 190 | self.bbthread = bbthread | 189 | self.bbthread = bbthread |
| 191 | self.selected_image_types = selected_image_types.split(" ") | 190 | self.selected_image_types = selected_image_types.split(" ") |
| @@ -283,7 +282,6 @@ class HobPrefs(gtk.Dialog): | |||
| 283 | # set a high maximum as a value for upper bounds is required by the | 282 | # set a high maximum as a value for upper bounds is required by the |
| 284 | # gtk.Adjustment | 283 | # gtk.Adjustment |
| 285 | spin_max = 30 # seems like a high enough arbitrary number | 284 | spin_max = 30 # seems like a high enough arbitrary number |
| 286 | #spin_max = self.cpu_cnt * 3 | ||
| 287 | hbox.pack_start(label, expand=False, fill=False, padding=6) | 285 | hbox.pack_start(label, expand=False, fill=False, padding=6) |
| 288 | bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1) | 286 | bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1) |
| 289 | bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0) | 287 | bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0) |
