summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon2022-09-29 07:55:57 -0500
committerRyan Eatmon2022-09-29 07:55:57 -0500
commit04f1e1e7a9738f9435c5bc2e081d62a01935580e (patch)
tree50cd7e2ebb7226f1bfd361dbf7db1e2cdf9337d7
parenta589fc8dfa9e70e8ad5015ed01a9aa3aa5707db7 (diff)
downloadoe-layersetup-04f1e1e7a9738f9435c5bc2e081d62a01935580e.tar.gz
oe-layersetup-04f1e1e7a9738f9435c5bc2e081d62a01935580e.tar.xz
oe-layersetup-04f1e1e7a9738f9435c5bc2e081d62a01935580e.zip
oe-layertool-setup.sh: Remove all control over number of threads
It was pointed out that bitbake now picks good defaults for the BB_NUMBER_THREADS and PARALLEL_MAKE variables, so we should remove all control over those variables from the script level. Also comment out the default settings in the sample conf files so that bitbake can be in control, but if the user needs to override them they have the example of what to change. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rwxr-xr-xoe-layertool-setup.sh5
-rw-r--r--sample-files/denzil/local-arago-linaro.conf.sample9
-rw-r--r--sample-files/local-amsdk.conf.sample9
-rw-r--r--sample-files/local-arago.conf.sample9
-rw-r--r--sample-files/local-arago64-v2.conf.sample9
-rw-r--r--sample-files/local-arago64.conf.sample9
-rw-r--r--sample-files/local-glsdk.conf.sample9
-rw-r--r--sample-files/local-poky-v2.conf.sample9
-rw-r--r--sample-files/local-poky.conf.sample9
-rw-r--r--sample-files/local-processor-sdk-64.conf.sample9
-rw-r--r--sample-files/local-processor-sdk.conf.sample9
-rw-r--r--sample-files/local-v2.conf.sample9
-rw-r--r--sample-files/local.conf.sample9
13 files changed, 84 insertions, 29 deletions
diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh
index 1ea31c3..df1b675 100755
--- a/oe-layertool-setup.sh
+++ b/oe-layertool-setup.sh
@@ -768,11 +768,6 @@ EOM
768 # First copy the template file 768 # First copy the template file
769 cp -f $OECORELOCALCONFPATH $confdir/local.conf 769 cp -f $OECORELOCALCONFPATH $confdir/local.conf
770 770
771 # set the number of threads
772 threads=`cat /proc/cpuinfo | grep -c processor`
773 sed -i "s/^PARALLEL_MAKE.*/PARALLEL_MAKE ?= \"-j ${threads}\"/" $confdir/local.conf
774 sed -i "s/^BB_NUMBER_THREADS.*/BB_NUMBER_THREADS ?= \"${threads}\"/" $confdir/local.conf
775
776 # Find if old DL_DIR was set 771 # Find if old DL_DIR was set
777 if [ -e $confdir/local.conf.bak ] 772 if [ -e $confdir/local.conf.bak ]
778 then 773 then
diff --git a/sample-files/denzil/local-arago-linaro.conf.sample b/sample-files/denzil/local-arago-linaro.conf.sample
index 24d14dc..0bfcc03 100644
--- a/sample-files/denzil/local-arago-linaro.conf.sample
+++ b/sample-files/denzil/local-arago-linaro.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS = "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE = "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149TOOLCHAIN_BRAND = "linaro" 154TOOLCHAIN_BRAND = "linaro"
diff --git a/sample-files/local-amsdk.conf.sample b/sample-files/local-amsdk.conf.sample
index ac39788..f856fb3 100644
--- a/sample-files/local-amsdk.conf.sample
+++ b/sample-files/local-amsdk.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149 154
diff --git a/sample-files/local-arago.conf.sample b/sample-files/local-arago.conf.sample
index 62f0f92..9a9fe51 100644
--- a/sample-files/local-arago.conf.sample
+++ b/sample-files/local-arago.conf.sample
@@ -138,15 +138,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
138# These two options control how much parallelism BitBake should use. The first 138# These two options control how much parallelism BitBake should use. The first
139# option determines how many tasks bitbake should run in parallel: 139# option determines how many tasks bitbake should run in parallel:
140# 140#
141BB_NUMBER_THREADS ?= "1" 141# BB_NUMBER_THREADS ?= "1"
142# 142#
143# The second option controls how many processes make should run in parallel when 143# The second option controls how many processes make should run in parallel when
144# running compile tasks: 144# running compile tasks:
145# 145#
146PARALLEL_MAKE ?= "-j 1" 146# PARALLEL_MAKE ?= "-j 1"
147# 147#
148# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 148# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
149# be appropriate for example 149# be appropriate for example
150#
151# NOTE: By default, bitbake will choose the number of processeors on your host
152# so you should not need to set this unless you are wanting to lower the number
153# allowed.
154#
150 155
151DISTRO = "arago" 156DISTRO = "arago"
152 157
diff --git a/sample-files/local-arago64-v2.conf.sample b/sample-files/local-arago64-v2.conf.sample
index 13585cb..c6b4ca4 100644
--- a/sample-files/local-arago64-v2.conf.sample
+++ b/sample-files/local-arago64-v2.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149 154
diff --git a/sample-files/local-arago64.conf.sample b/sample-files/local-arago64.conf.sample
index 68f0bff..6d7af90 100644
--- a/sample-files/local-arago64.conf.sample
+++ b/sample-files/local-arago64.conf.sample
@@ -138,15 +138,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
138# These two options control how much parallelism BitBake should use. The first 138# These two options control how much parallelism BitBake should use. The first
139# option determines how many tasks bitbake should run in parallel: 139# option determines how many tasks bitbake should run in parallel:
140# 140#
141BB_NUMBER_THREADS ?= "1" 141# BB_NUMBER_THREADS ?= "1"
142# 142#
143# The second option controls how many processes make should run in parallel when 143# The second option controls how many processes make should run in parallel when
144# running compile tasks: 144# running compile tasks:
145# 145#
146PARALLEL_MAKE ?= "-j 1" 146# PARALLEL_MAKE ?= "-j 1"
147# 147#
148# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 148# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
149# be appropriate for example 149# be appropriate for example
150#
151# NOTE: By default, bitbake will choose the number of processeors on your host
152# so you should not need to set this unless you are wanting to lower the number
153# allowed.
154#
150 155
151DISTRO = "arago" 156DISTRO = "arago"
152 157
diff --git a/sample-files/local-glsdk.conf.sample b/sample-files/local-glsdk.conf.sample
index 189730a..3ed4150 100644
--- a/sample-files/local-glsdk.conf.sample
+++ b/sample-files/local-glsdk.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149 154
diff --git a/sample-files/local-poky-v2.conf.sample b/sample-files/local-poky-v2.conf.sample
index 4bd0563..5a0cecc 100644
--- a/sample-files/local-poky-v2.conf.sample
+++ b/sample-files/local-poky-v2.conf.sample
@@ -132,15 +132,20 @@ PATCHRESOLVE = "noop"
132# These two options control how much parallelism BitBake should use. The first 132# These two options control how much parallelism BitBake should use. The first
133# option determines how many tasks bitbake should run in parallel: 133# option determines how many tasks bitbake should run in parallel:
134# 134#
135BB_NUMBER_THREADS ?= "1" 135# BB_NUMBER_THREADS ?= "1"
136# 136#
137# The second option controls how many processes make should run in parallel when 137# The second option controls how many processes make should run in parallel when
138# running compile tasks: 138# running compile tasks:
139# 139#
140PARALLEL_MAKE ?= "-j 1" 140# PARALLEL_MAKE ?= "-j 1"
141# 141#
142# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 142# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
143# be appropriate for example 143# be appropriate for example
144#
145# NOTE: By default, bitbake will choose the number of processeors on your host
146# so you should not need to set this unless you are wanting to lower the number
147# allowed.
148#
144 149
145DISTRO = "poky" 150DISTRO = "poky"
146 151
diff --git a/sample-files/local-poky.conf.sample b/sample-files/local-poky.conf.sample
index ba5d4c1..1703f83 100644
--- a/sample-files/local-poky.conf.sample
+++ b/sample-files/local-poky.conf.sample
@@ -135,15 +135,20 @@ PATCHRESOLVE = "noop"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "poky" 153DISTRO = "poky"
149 154
diff --git a/sample-files/local-processor-sdk-64.conf.sample b/sample-files/local-processor-sdk-64.conf.sample
index 9087be9..2bef530 100644
--- a/sample-files/local-processor-sdk-64.conf.sample
+++ b/sample-files/local-processor-sdk-64.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149 154
diff --git a/sample-files/local-processor-sdk.conf.sample b/sample-files/local-processor-sdk.conf.sample
index 59b11e6..18e992c 100644
--- a/sample-files/local-processor-sdk.conf.sample
+++ b/sample-files/local-processor-sdk.conf.sample
@@ -135,15 +135,20 @@ ENABLE_BINARY_LOCALE_GENERATION = "0"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148DISTRO = "arago" 153DISTRO = "arago"
149 154
diff --git a/sample-files/local-v2.conf.sample b/sample-files/local-v2.conf.sample
index e0df8f5..659cced 100644
--- a/sample-files/local-v2.conf.sample
+++ b/sample-files/local-v2.conf.sample
@@ -134,15 +134,20 @@ PATCHRESOLVE = "noop"
134# These two options control how much parallelism BitBake should use. The first 134# These two options control how much parallelism BitBake should use. The first
135# option determines how many tasks bitbake should run in parallel: 135# option determines how many tasks bitbake should run in parallel:
136# 136#
137BB_NUMBER_THREADS ?= "1" 137# BB_NUMBER_THREADS ?= "1"
138# 138#
139# The second option controls how many processes make should run in parallel when 139# The second option controls how many processes make should run in parallel when
140# running compile tasks: 140# running compile tasks:
141# 141#
142PARALLEL_MAKE ?= "-j 1" 142# PARALLEL_MAKE ?= "-j 1"
143# 143#
144# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 144# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
145# be appropriate for example 145# be appropriate for example
146#
147# NOTE: By default, bitbake will choose the number of processeors on your host
148# so you should not need to set this unless you are wanting to lower the number
149# allowed.
150#
146 151
147# Select a distribution from supported "arago", "angstrom-2010.x" or "poky" 152# Select a distribution from supported "arago", "angstrom-2010.x" or "poky"
148# By default, go with the "distroless" configuration, when not set 153# By default, go with the "distroless" configuration, when not set
diff --git a/sample-files/local.conf.sample b/sample-files/local.conf.sample
index e60bedc..067c057 100644
--- a/sample-files/local.conf.sample
+++ b/sample-files/local.conf.sample
@@ -135,15 +135,20 @@ PATCHRESOLVE = "noop"
135# These two options control how much parallelism BitBake should use. The first 135# These two options control how much parallelism BitBake should use. The first
136# option determines how many tasks bitbake should run in parallel: 136# option determines how many tasks bitbake should run in parallel:
137# 137#
138BB_NUMBER_THREADS ?= "1" 138# BB_NUMBER_THREADS ?= "1"
139# 139#
140# The second option controls how many processes make should run in parallel when 140# The second option controls how many processes make should run in parallel when
141# running compile tasks: 141# running compile tasks:
142# 142#
143PARALLEL_MAKE ?= "-j 1" 143# PARALLEL_MAKE ?= "-j 1"
144# 144#
145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 145# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
146# be appropriate for example 146# be appropriate for example
147#
148# NOTE: By default, bitbake will choose the number of processeors on your host
149# so you should not need to set this unless you are wanting to lower the number
150# allowed.
151#
147 152
148# Select a distribution from supported "arago", "angstrom-2010.x" or "poky" 153# Select a distribution from supported "arago", "angstrom-2010.x" or "poky"
149# By default, go with the "distroless" configuration, when not set 154# By default, go with the "distroless" configuration, when not set