mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 20:20:11 +09:00
Guess the number of cores automatically
This commit is contained in:
parent
619501c921
commit
32f8ca5e40
6
Makefile
6
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
JOBS=$(shell grep -c '^processor' /proc/cpuinfo)
|
||||||
|
|
||||||
export ARCH=arm
|
export ARCH=arm
|
||||||
export CROSS_COMPILE=arm-linux-gnueabi-
|
export CROSS_COMPILE=arm-linux-gnueabi-
|
||||||
|
|
||||||
@ -27,7 +29,7 @@ umenuconfig:
|
|||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
ubuild:
|
ubuild:
|
||||||
make -j12 -C ./u-boot-brain u-boot.sb
|
make -j$(JOBS) -C ./u-boot-brain u-boot.sb
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
ldefconfig:
|
ldefconfig:
|
||||||
@ -44,7 +46,7 @@ lsavedefconfig:
|
|||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
lbuild:
|
lbuild:
|
||||||
make -C ./linux-brain -j12
|
make -j$(JOBS) -C ./linux-brain
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
uuu:
|
uuu:
|
||||||
|
Loading…
Reference in New Issue
Block a user