buildscript: provide option to set number of threads during build #135

Closed
adschm wants to merge 1 commits from adschm/firmware:buildcpu into master
Owner

This allows to specify the number of threads used in
'./buildscript build' manually by adding them as third option, e.g.

./buildscript build fast 20
./buildscript build debug 4
./buildscript build default 10

Signed-off-by: Adrian Schmutzler freifunk@adrianschmutzler.de

This allows to specify the number of threads used in './buildscript build' manually by adding them as third option, e.g. ./buildscript build fast 20 ./buildscript build debug 4 ./buildscript build default 10 Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
adschm added the
feature
build/scripts/tools
labels 2021-03-01 00:15:34 +01:00
adschm added 1 commit 2021-03-01 00:15:35 +01:00
c2ff6ff67c buildscript: provide option to set number of threads during build
This allows to specify the number of threads used in
'./buildscript build' manually by adding them as third option, e.g.

./buildscript build fast 20
./buildscript build debug 4
./buildscript build default 10

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
fbl reviewed 2021-03-02 00:02:41 +01:00
fbl left a comment
Owner

Können wir machen. Dann fände ich es aber besser, wenn wir es auch für alle build-commands unterstützen.

Also build, buildall und release.

Weiterhin sollte auch die Usage im default-case angepasst werden.

Können wir machen. Dann fände ich es aber besser, wenn wir es auch für alle build-commands unterstützen. Also build, buildall und release. Weiterhin sollte auch die Usage im default-case angepasst werden.
Owner

Vielleicht sollten wir einfach saemtliche zusatzargumente an make weiterleiten. Dann koenne man auch spezielle targets mitgeben.

Dann ginge auch gleich sowas wie

./buildscript build -- j8 tools/compile

Mal davon abgesehen kannst du auch einfach taskset -c 0-7 ./builscript ... benutzen, um weniger CPU Kerne vorzugaukeln.

Vielleicht sollten wir einfach saemtliche zusatzargumente an make weiterleiten. Dann koenne man auch spezielle targets mitgeben. Dann ginge auch gleich sowas wie ``` ./buildscript build -- j8 tools/compile ``` Mal davon abgesehen kannst du auch einfach `taskset -c 0-7 ./builscript ...` benutzen, um weniger CPU Kerne vorzugaukeln.
Owner

Reviewed-by: Fabian Bläse <fabian@blaese.de>

`Reviewed-by: Fabian Bläse <fabian@blaese.de>`
fbl added this to the 20220814 milestone 2022-07-21 20:12:07 +02:00
fbl approved these changes 2022-07-21 20:28:56 +02:00
Owner

Applied.

Applied.
fbl closed this pull request 2022-07-22 14:30:55 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.