slitaz-arm rev 125

Got some more sucess with omxplayer but still dont cross + add wifi support to rpi-base
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 21 18:48:49 2014 +0200 (2014-04-21)
parents 2bed449c8905
children 45b0298e4267
files flavors/rpi-base/packages.list wok/omxplayer/receipt wok/omxplayer/stuff/Makefile.include
line diff
     1.1 --- a/flavors/rpi-base/packages.list	Mon Apr 21 09:30:46 2014 +0000
     1.2 +++ b/flavors/rpi-base/packages.list	Mon Apr 21 18:48:49 2014 +0200
     1.3 @@ -30,3 +30,6 @@
     1.4  acl
     1.5  attr
     1.6  liblzma
     1.7 +libnl
     1.8 +wireless_tools
     1.9 +wpa_supplicant
     2.1 --- a/wok/omxplayer/receipt	Mon Apr 21 09:30:46 2014 +0000
     2.2 +++ b/wok/omxplayer/receipt	Mon Apr 21 18:48:49 2014 +0200
     2.3 @@ -14,10 +14,16 @@
     2.4  DEPENDS="ffmpeg"
     2.5  BUILD_DEPENDS="ffmpeg-dev"
     2.6  
     2.7 +# BUG: it needs libboost wich will be hard to cross compile!
     2.8 +
     2.9 +# WARNING: Omxplayer need the official R-Pi libs in /opt/vc. They are
    2.10 +# not packaged in i486 so install all firmware by hand.
    2.11 +# DL: https://github.com/raspberrypi/firmware
    2.12 +
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
    2.16 -	cp -f ${stuff}/Makefile* .
    2.17 +	cp -f ${stuff}/Makefile* . &&
    2.18  	make
    2.19  }
    2.20  
     3.1 --- a/wok/omxplayer/stuff/Makefile.include	Mon Apr 21 09:30:46 2014 +0000
     3.2 +++ b/wok/omxplayer/stuff/Makefile.include	Mon Apr 21 18:48:49 2014 +0200
     3.3 @@ -1,24 +1,28 @@
     3.4 +
     3.5 +HOST_SYSTEM	= arm-slitaz-linux-gnueabi
     3.6 +SYSROOT		= /cross/arm/sysroot
     3.7 +
     3.8  USE_BUILDROOT=0
     3.9 -
    3.10  JOBS=1
    3.11 -
    3.12  CFLAGS		:= 
    3.13  CXXFLAGS	:= $(CFLAGS)
    3.14  CPPFLAGS	:= $(CFLAGS)
    3.15  LDFLAGS		:= 
    3.16 -LD		:= ld
    3.17 -CC		:= gcc
    3.18 -CXX         	:= g++
    3.19 -OBJDUMP		:= objdump
    3.20 -RANLIB		:= ranlib
    3.21 -STRIP		:= strip
    3.22 -AR 		:= ar
    3.23 +LD			:= $(HOST_SYSTEM)-ld
    3.24 +CC			:= $(HOST_SYSTEM)-gcc
    3.25 +CXX         := $(HOST_SYSTEM)-g++
    3.26 +OBJDUMP		:= $(HOST_SYSTEM)-objdump
    3.27 +RANLIB		:= $(HOST_SYSTEM)-ranlib
    3.28 +STRIP		:= $(HOST_SYSTEM)-strip
    3.29 +AR			:= $(HOST_SYSTEM)-ar
    3.30  CXXCP 		:= $(CXX) -E
    3.31  
    3.32  LDFLAGS		+= -L/opt/vc/lib/ -Wl,-rpath /opt/vc/lib/
    3.33  
    3.34  INCLUDES	+= -I/opt/vc/include -I/opt/vc/include/interface/vcos/ \
    3.35 -		   -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 \
    3.36 -		   -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/dbus-1.0 \
    3.37 -		   -I/usr/lib/dbus-1.0/include/
    3.38 +		   -I/opt/vc/include/interface/vcos/pthreads \
    3.39 +		   -I$(SYSROOT)/usr/include/freetype2 \
    3.40 +		   -I/opt/vc/include/interface/vmcs_host/linux \
    3.41 +		   -I$(SYSROOT)/usr/include/dbus-1.0 \
    3.42 +		   -I$(SYSROOT)/usr/lib/dbus-1.0/include/
    3.43