Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[jenkins] - add buildsteps for raspberry pi

  • Loading branch information...
commit aaba8763f053826ff29a7840c2447391fd9dc137 1 parent 4a1f0e0
@Memphiz Memphiz authored
View
7 tools/buildsteps/defaultenv
@@ -42,6 +42,13 @@ case $XBMC_PLATFORM_DIR in
linux*)
DEFAULT_XBMC_DEPENDS_ROOT=$WORKSPACE/tools/depends/xbmc-depends
DEFAULT_CONFIGURATION="Debug"
+ ;;
+
+ rbpi)
+ JENKINS_RBPI_DEVENV=/home/jenkins/rbpi-dev
+ DEFAULT_XBMC_DEPENDS_ROOT=$WORKSPACE/tools/depends/xbmc-depends
+ DEFAULT_CONFIGURATION="Debug"
+ ;;
esac
if [ "$SDK_VERSION" == "Default" ]
View
25 tools/buildsteps/rbpi/config-xbmc-makefile
@@ -0,0 +1,25 @@
+-include ../../../tools/depends/Makefile.include
+
+SOURCE=../../../
+
+export CXXFLAGS+=-O3
+export CFLAGS+=-O3
+
+# configuration settings
+CONFIGURE = cp -f $(CONFIG_SUB) $(CONFIG_GUESS) build-aux/ ;\
+ ./configure --prefix=$(PREFIX) \
+ --with-platform=raspberry-pi --disable-optimizations --enable-debug \
+ --disable-gl --enable-gles --enable-airplay \
+ --enable-airtunes --enable-libcec --enable-player=omxplayer \
+ --disable-sdl --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 \
+ --disable-alsa
+
+all: $(SOURCE)/libxbmc.so
+
+
+$(SOURCE)/libxbmc.so:
+ cd $(SOURCE); ./bootstrap
+ cd $(SOURCE); $(CONFIGURE)
View
31 tools/buildsteps/rbpi/configure-depends
@@ -0,0 +1,31 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;
+
+ PATH="$PATH:$JENKINS_RBPI_DEVENV/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin" \
+ CFLAGS="-pipe -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard \
+ -mfpu=vfp -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated \
+ -Wno-deprecated-declarations -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include/interface/vcos/pthreads \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include/interface/vmcs_host/linux" \
+ CXXFLAGS="-pipe -mcpu=arm1176jzf-s -mtune=arm1176jzf-s \
+ -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -Wno-psabi \
+ -Wa,-mno-warn-deprecated -Wno-deprecated-declarations \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include/interface/vcos/pthreads \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include/interface/vmcs_host/linux" \
+ LDFLAGS="-L$JENKINS_RBPI_DEVENV/firmware/opt/vc/lib -lEGL -lGLESv2 -lbcm_host -lvcos \
+ -lvchiq_arm" \
+ ./configure --host=arm-linux-gnueabihf --prefix=$XBMC_DEPENDS_ROOT --with-tarballs=$TARBALLS \
+ --with-toolchain=$JENKINS_RBPI_DEVENV/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot \
+ --build=i686-linux \
+ CFLAGS="-pipe -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard \
+ -mfpu=vfp -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated \
+ -Wno-deprecated-declarations -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include \
+ -isystem$JENKINS_RBPI_DEVENV/firmware/opt/vc/include/interface/vcos/pthreads \
+ -isystem$JENKINS_RBPI_DEVENVfirmware/opt/vc/include/interface/vmcs_host/linux"
@popcornmix Collaborator

Missing slash here?

@Memphiz Owner
Memphiz added a note

ops - can you fix please? not near a rig arm...

@MartijnKaijser Owner

fixed with 034d1c5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+fi
View
6 tools/buildsteps/rbpi/configure-xbmc
@@ -0,0 +1,6 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE
+make -C tools/buildsteps/rbpi -f config-xbmc-makefile
View
9 tools/buildsteps/rbpi/make-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;make -j $BUILDTHREADS || make && tagSuccessFulBuild .
+fi
+
View
5 tools/buildsteps/rbpi/make-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE;make -j$BUILDTHREADS || make
View
5 tools/buildsteps/rbpi/package
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing for rbpi atm
View
20 tools/buildsteps/rbpi/prepare-depends
@@ -0,0 +1,20 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#clean without depends for skipping depends build if possible
+cd $WORKSPACE;git clean -xfd -e "tools/depends"
+
+if [ -d $JENKINS_RBPI_DEVENV/firmware ]
+then
+ cd $JENKINS_RBPI_DEVENV/firmware;git pull origin master
+else
+ cd $JENKINS_RBPI_DEVENV;git clone git://github.com/raspberrypi/firmware.git --depth=1 -b master
+fi
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ #clean up the rest too
+ cd $WORKSPACE;git clean -xfd
+ cd $WORKSPACE/tools/depends/;./bootstrap
+fi
View
5 tools/buildsteps/rbpi/prepare-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=rbpi
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE;./bootstrap;autoreconf -vif
View
9 tools/depends/target/Makefile
@@ -55,9 +55,12 @@ endif
ALSA_LIB=
LINUX_SYSTEM_LIBS=
ifeq ($(OS),linux)
- DEPENDS += alsa-lib libsdl linux-system-libs
- ALSA_LIB = alsa-lib
- LINUX_SYSTEM_LIBS = linux-system-libs
+ #not for raspberry pi
+ ifneq ($(CPU),arm)
+ DEPENDS += alsa-lib libsdl linux-system-libs
+ ALSA_LIB = alsa-lib
+ LINUX_SYSTEM_LIBS = linux-system-libs
+ endif
endif
.PHONY: $(DEPENDS)
Please sign in to comment.
Something went wrong with that request. Please try again.