OrangePiLibra / OrangePi_H5SDK

The Liunx SDK of OrangePi for Allwinner H5
49 stars 24 forks source link

Automatic core detection for buildscripts #10

Closed bsvdoom closed 7 years ago

bsvdoom commented 7 years ago

Its not an issue, rather an idea. I think we should add a variable to the build scripts to determine the number of cores for speeding up the build...

CORES=$((`cat /proc/cpuinfo | grep processor | wc -l` - 1))

bsvdoom commented 7 years ago

Also, I think I collected all the required packages for the buildscript. It would be useful to display theese packages in the readme. (Or it could do automatic dependency install...)

bsdtar mtools u-boot-tools pv bc sunxi-tools gcc automake make qemu

BuddyZhang1 commented 7 years ago

@bsvdoom
Thanks for your advice! It will hep developer easily to build OrangePi. ^_^ I write some scripts to prepare those tools. commit: 1948714531976abe4c237e303ef77f1b537def6e commit: c47ff80cefec5cbe07b46d066a7a3d02f1e04268

Good Luck

bsvdoom commented 7 years ago

Nice, also lib32z1 and lib32z1-dev required for running the 32bit library scripts/pack/pctools/linux/fsbuild200/fsbuild

BuddyZhang1 commented 7 years ago

@bsvdoom Thank you! lib32z1 and lib32z1-dev will help to compile uboot base on VirtualBox. Nice way! 1529d49c3706982b291d5dd96cf529cd3001f2a4

Good Luck

bsvdoom commented 7 years ago

@BuddyZhang1 Cool, dosfstools also needed for build_image.sh

bsvdoom commented 7 years ago

Mkay, this could work..