This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
compile [2019/05/04 11:34]
cvh [for current Github master]
compile [2020/04/10 14:15] (current)
jernej [for current Github master]
Line 47: Line 47:
 ===== Specific Version ===== ===== Specific Version =====
-Checkout using a version tag, e.g. to build LibreELEC v9.0.use+Checkout using a version tag, e.g. to build LibreELEC v9.2.use
-  git checkout 9.0.1+  git checkout 9.2.0
 The git revision history will rewind to that tag. The git revision history will rewind to that tag.
Line 65: Line 65:
 <tabbox for current Github master> <tabbox for current Github master>
 64-bit x86 compatible device, e.g. Desktop PC, Intel NUC, ATOM) 64-bit x86 compatible device, e.g. Desktop PC, Intel NUC, ATOM)
-  PROJECT=Generic ARCH=x86_64 +  PROJECT=Generic ARCH=x86_64 ​make image 
- +\\ 
-Raspberry Pi zero or 1: +Raspberry Pi zero or 1 
- +\\ 
-Raspberry Pi 2 or 3: +Raspberry Pi 2 or 3 
-  PROJECT=RPi DEVICE=RPi2 ARCH=arm +  PROJECT=RPi DEVICE=RPi2 ARCH=arm ​make image 
 +Raspberry Pi 4 
 +  PROJECT=RPi DEVICE=RPi4 ARCH=arm make image 
 Rockchip RK3328 Rockchip RK3328
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box +  ​PROJECT=Rockchip DEVICE=RK3328 ARCH=arm make image 
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-trn9 +  ​PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box ​make image 
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-z28 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-trn9 ​make image 
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=roc-cc +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-z28 ​make image 
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rock64 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=roc-cc ​make image 
-  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rockbox +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rock64 ​make image 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rockbox ​make image 
 Rockchip RK3288 Rockchip RK3288
-  PROJECT=Rockchip DEVICE=TinkerBoard ​ARCH=arm +  PROJECT=Rockchip DEVICE=RK3288 ​ARCH=arm ​make image 
-  PROJECT=Rockchip DEVICE=MiQi ARCH=arm +  PROJECT=Rockchip DEVICE=RK3288 ​ARCH=arm ​UBOOT_SYSTEM=miqi make image 
 +  PROJECT=Rockchip DEVICE=RK3288 ARCH=arm UBOOT_SYSTEM=tinker make image 
 Rockchip RK3399 Rockchip RK3399
-  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rock960 +  ​PROJECT=Rockchip DEVICE=RK3399 ARCH=arm make image 
-  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64 +  ​PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rock960 ​make image 
-  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=sapphire +  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64 ​make image 
- +  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=sapphire ​make image 
-Allwinner A64 +\\ 
 +Allwinner ​A20 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=bananapi make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=cubieboard2 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=cubietruck make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=lime make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=lime2 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=micro make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A20 UBOOT_SYSTEM=mk808c make image 
 +Allwinner A64 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A64 make image
   PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64 make image   PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64 make image
-  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64_plus ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64-plus ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64_lts ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=pine64-lts ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=orangepi_win ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=orangepi-win ​make image 
 Allwinner H3 Allwinner H3
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=bananapi_m2p ​make image +  ​PROJECT=Allwinner ARCH=arm DEVICE=H3 make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=beelink_x2 ​make image +  ​PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=bananapi-m2p ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=libretech_h3 ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=beelink-x2 ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_2 ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=libretech-h3 ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_pc ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=nanopi-m1 ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_pc_plus ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi-2 ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_plus2e ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi-pc ​make image 
-  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_plus ​make image +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi-pc-plus ​make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi-plus2e make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi-plus make image 
 +Allwinner H5 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H5 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H5 UBOOT_SYSTEM=orangepi-pc2 ​make image 
 Allwinner H6 Allwinner H6
-  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=pine_h64 ​make image+  ​PROJECT=Allwinner ARCH=arm DEVICE=H6 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=beelink-gs1 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=orangepi-3 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=orangepi-lite2 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=orangepi-one-plus make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=pine-h64 make image 
 +  ​PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=tanix-tx6 ​make image
 <tabbox for version 9.0> <tabbox for version 9.0>
Line 191: Line 220:
   PROJECT=Virtual ARCH=x86_64   PROJECT=Virtual ARCH=x86_64
 </​tabbox>​ </​tabbox>​
 +====== Additional compile options (master/​LibreELEC 10.0+) ======
 +The following options can be used to customise the build experience:
 +^ Name             ^ Values ​    ^ Default ​   ^ Description ^
 +|''​THREADCOUNT'' ​   |''#'',''#​%'' ​  | ''​100%''​ |Maximum number of packages to build concurrently. On an 8-core system, ''​50%''​ would build up to 4 packages at a time. |
 +|''​ONELOG'' ​        ​|''​yes'',''​no''​ | ''​no'' ​  |If ''​yes'',​ packages will not create individual logs in ''​${THREAD_CONTROL}/​logs''​. If ''​THREADCOUNT''​ is 1 the default becomes ''​ONELOG=yes''​ in which case use ''​ONELOG=no''​ to ensure individual logs are created for each package. |
 +|''​LOGCOMBINE'' ​    ​|''​always'',''​never'',''​fail''​ | ''​always'' ​  ​|Determine under what circumstances package logs are written to ''​stdout''​. Using ''​never''​ and ''​fail''​ can slightly reduce IO. |
 +|''​MTBOOKENDS'' ​    ​|''​yes'',''​no''​ | ''​yes'' ​ |Adds ''<<<''​ and ''>>>''​ tags to the combined log output (to facilitate searching). |
 +|''​DISABLE_COLORS''​ |''​yes'',''​no''​ | ''​no'' ​  ​|Control whether build system output is colored or not. |
 +|''​MTCOLORS'' ​      ​|''​always'',''​never'',''​auto''​ | ''​auto'' ​  |If ''​DISABLE_COLORS=yes'',​ this option controls how ''​scripts/​pkgbuilder.py''​ progress and status information is colored. ''​auto''​ will disable colors when output is being redirected to a file (ie. not a terminal). |
 +|''​MTVERBOSE'' ​     |''​yes'',''​no''​ | ''​no'' ​  ​|Output additional job state information to ''​stderr''​ during the build. |
 +|''​MTPROGRESS'' ​    ​|''​yes'',''​no''​ | ''​no'' ​  ​|Output real-time load, memory and in-progress job information to ''​stderr''​ at 1-second intervals |
 +|''​MTDEBUG'' ​       |''​yes'',''​no''​ | ''​no'' ​  ​|Output detailed debug information to ''​${THREAD_CONTROL}/​debug.log''​ |
 +|''​MTADDONBUILD'' ​  ​|''​yes'',''​no''​ | ''​no'' ​  |If ''​no'',​ the build will end after the first failure. When building add-ons, we typically ignore individual package failures and continue building until all packages have been built (or failed). |
 +|''​MTIMMEDIATE'' ​   |''​yes'',''​no''​ | ''​no'' ​  |When ''​MTADDONBUILD=no''​ and a package fails, the build can finish after all currently building packages have completed, or it can terminate those packages immediately. Allowing packages that are currently building to finish building can save time when restarting the build. |
 +|''​MTINTERVAL'' ​    ​|''#'' ​         | ''​60'' ​  ​|System load information is captured at regular intervals in ''​${THREAD_CONTROL}/​loadstats''​. |
 +|''​AUTOREMOVE'' ​    ​|''​yes'',''​no''​ | ''​no'' ​  ​|Remove source code directories during the build once the source code directory is not required. |
 +Options can be specified on the command line, or added to ''​${HOME}/​.libreelec/​options''​. For example, adding the following to ''​${HOME}/​.libreelec/​options''​ would give a fairly clean and comprehensive output by default, while still allowing command line overrides:
 ====== Download package source code (optional) ====== ====== Download package source code (optional) ======