aboutsummaryrefslogtreecommitdiff
path: root/docs/README.raspberrypi
blob: 9bb058b811c59734e936f82d55d4986b58620eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
TOC
1. Introduction
2. Building Kodi for the Raspberry Pi
3. Building Kodi using buildroot environment

-----------------------------------------------------------------------------
1. Introduction
-----------------------------------------------------------------------------

You can build Kodi for the Raspberry Pi in different ways. This document
shows two differnt methods. The first assumes that you want to run Kodi
on top of an image like Raspbian, the second shows how to create an entire
image which includes Linux.

-----------------------------------------------------------------------------
2. Building Kodi for the Raspberry Pi
-----------------------------------------------------------------------------

The following steps were tested with Ubuntu 14.04 x64. (Note that building on
a 32 bit machine requires slightly different setting)

    sudo apt-get install git autoconf curl g++ zlib1g-dev libcurl4-openssl-dev gawk gperf libtool autopoint swig default-jre

    git clone https://github.com/raspberrypi/tools
    sudo cp -r tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 /opt

    git clone https://github.com/raspberrypi/firmware
    sudo mkdir -p /opt/bcm-rootfs/opt
    sudo cp -r firmware/opt/vc /opt/bcm-rootfs/opt

    sudo mkdir -p /opt/xbmc-bcm
    sudo chmod 777 /opt/xbmc-bcm

    git clone https://github.com/xbmc/xbmc

    cd xbmc/tools/depends
    ./bootstrap
    PATH="$PATH:/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin" \
       ./configure --host=arm-linux-gnueabihf \
       --prefix=/opt/xbmc-bcm/xbmc-dbg \
       --with-toolchain=/usr/local/bcm-gcc/arm-bcm2708hardfp-linux-gnueabi/sysroot \
       --with-firmware=/opt/bcm-rootfs \
       --with-platform=raspberry-pi \
       --build=i686-linux

    make
    cd ../..

    CONFIG_EXTRA="--with-platform=raspberry-pi \
       --enable-libcec --enable-player=omxplayer \
       --disable-x11 --disable-xrandr --disable-openmax \
       --disable-optical-drive --disable-dvdcss --disable-joystick \
       --disable-crystalhd --disable-vtbdecoder --disable-vaapi \
       --disable-vdpau --disable-projectm --disable-rsxs --disable-fishbmc \
       --enable-alsa --disable-solarwinds --disable-euphoria \
       --disable-plasma" \
       make -C tools/depends/target/xbmc

    make
    make install

-----------------------------------------------------------------------------
3. Building Kodi using buildroot environment
-----------------------------------------------------------------------------

Installing and setting up the buildroot environment:

Create a top level directory where you checkout Kodi and buildroot.

For example :

mkdir /opt/kodi-raspberrypi
cd /opt/kodi-raspberrypi

Checkout kodi :

git clone https://github.com/xbmc/xbmc.git kodi

Checkout buildroot :

git clone https://github.com/huceke/buildroot-rbp.git

cd /opt/kodi-raspberrypi/buildroot-rbp

Follow the instructions in README.rbp how to build the system and Kodi.