Differences

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 [2018/12/03 20:47]
cvh [for version 9.0 (current Github master)]
compile [2019/05/04 11:34] (current)
cvh [for current Github master]
Line 14: Line 14:
  
 ====== Create a Build Host ====== ====== Create a Build Host ======
-This guide assumes Ubuntu ​16.04.x (LTS) server as the build system OS. It is possible to use other Linux distributions like CentOS/​Fedora and Debian to compile LibreELEC images but Ubuntu is simple for less experienced Linux users and is the distro we use for building official LibreELEC images. The server version is preferred because it the desktop version includes a load of software we do not need. Dedicated high-end build server hardware is nice but expensive. Many developers run their build server in a virtual machine on a laptop using vmware ​Workstation/​Fusion or Sun VirtualBox (which is free). Another option is to enable the Docker add-on within LibreELEC and run an [[https://​hub.docker.com/​_/​ubuntu/​|Ubuntu Docker Container]].+This guide assumes Ubuntu ​18.04.x (LTS) server as the build system OS. It is possible to use other Linux distributions like CentOS/​Fedora and Debian to compile LibreELEC images but Ubuntu is simple for less experienced Linux users and is the distro we use for building official LibreELEC images. The server version is preferred because it the desktop version includes a load of software we do not need. Dedicated high-end build server hardware is nice but expensive. Many developers run their build server in a virtual machine on a laptop using VMWare ​Workstation/​Fusion or Sun VirtualBox (which is free). Another option is to enable the Docker add-on within LibreELEC and run an [[https://​hub.docker.com/​_/​ubuntu/​|Ubuntu Docker Container]].
  
 ===== Choose Hardware ===== ===== Choose Hardware =====
Line 28: Line 28:
  
 ===== Configure git ===== ===== Configure git =====
-If you have a github ​account and will push changes to your personal ​github ​repo you must configure git credentials+If you have a Github ​account and will push changes to your personal ​Github ​repo you must configure git credentials
  
   git config --global user.email "​your@email.com"​   git config --global user.email "​your@email.com"​
Line 47: Line 47:
  
 ===== Specific Version ===== ===== Specific Version =====
-Checkout using a version tag, e.g. to build LibreELEC ​v7.0.use+Checkout using a version tag, e.g. to build LibreELEC ​v9.0.use
  
-  git checkout ​8.2.5+  git checkout ​9.0.1
  
 The git revision history will rewind to that tag. The git revision history will rewind to that tag.
Line 63: Line 63:
 PROJECT and ARCH are set in the build command to define the target hardware to compile for. The following list shows PROJECT/​ARCH for official builds: PROJECT and ARCH are set in the build command to define the target hardware to compile for. The following list shows PROJECT/​ARCH for official builds:
  
-<tabbox for version 9.0 (current Github master)>+<tabbox for current Github master
 +64-bit x86 compatible device, e.g. Desktop PC, Intel NUC, ATOM) 
 +  PROJECT=Generic ARCH=x86_64 
 + 
 +Raspberry Pi zero or 1: 
 +  PROJECT=RPi DEVICE=RPi ARCH=arm 
 + 
 +Raspberry Pi 2 or 3: 
 +  PROJECT=RPi DEVICE=RPi2 ARCH=arm 
 + 
 +Rockchip RK3328 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-trn9 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=box-z28 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=roc-cc 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rock64 
 +  PROJECT=Rockchip DEVICE=RK3328 ARCH=arm UBOOT_SYSTEM=rockbox 
 + 
 +Rockchip RK3288 
 +  PROJECT=Rockchip DEVICE=TinkerBoard ARCH=arm 
 +  PROJECT=Rockchip DEVICE=MiQi ARCH=arm 
 + 
 +Rockchip RK3399 
 +  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rock960 
 +  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64 
 +  PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=sapphire 
 + 
 +Allwinner A64  
 +  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_lts make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=A64 UBOOT_SYSTEM=orangepi_win make image 
 + 
 +Allwinner H3 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=bananapi_m2p make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=beelink_x2 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=libretech_h3 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_2 make image 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM=orangepi_pc 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 H6 
 +  PROJECT=Allwinner ARCH=arm DEVICE=H6 UBOOT_SYSTEM=pine_h64 make image 
 + 
 +<tabbox for version 9.0>
 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
Line 113: Line 159:
   PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64   PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64
   PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=sapphire   PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=sapphire
 +
 <tabbox for version 8.2> <tabbox for version 8.2>
 64-bit x86 compatible device, e.g. Desktop PC, Intel NUC, ATOM) 64-bit x86 compatible device, e.g. Desktop PC, Intel NUC, ATOM)