Commit Graph

35 Commits

Author SHA1 Message Date
Khem Raj
32d0936570 userland: Upgrade to latest git master
Drop upstreamed patches
0002-fix-musl-build.patch was partially upstreamed
git'ify the remaining patches

Change license field to BSD 3 clause, since thats what
the licence it with BCM and RPI Copyrights

Licence changed from Broadcom to Raspberry Pi Ltd

see commit 0863709b9fb90ee1204b7fe52f69535830d3c111
Author: popcornmix <popcornmix@gmail.com>
Date:   Mon Feb 1 21:07:02 2016 +0000

    Update copyright

diff --git a/LICENCE b/LICENCE
index 2582681..dea4c26 100644
--- a/LICENCE
+++ b/LICENCE
@@ -1,4 +1,5 @@
 Copyright (c) 2012, Broadcom Europe Ltd
+Copyright (c) 2015, Raspberry Pi (Trading) Ltd
 All rights reserved.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-03-10 14:48:53 +01:00
Petter Mabäcker
0d5aff5161 pitft: Add basic support for PiTFT
Add basic support for PiTFT display by using device-trees.

In order get it working below configurations must be active in
local.conf:

MACHINE_FEATURES += "pitft"
 - This will enable SPI bus and i2c device-trees, it will also setup
   framebuffer for console and x server on PiTFT.

[Support #70]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-03-01 14:38:03 +01:00
Khem Raj
58806f6552 userland: Adjust include location for pthreads-headers
vcos headers include headers like "vcos_platform.h" "vcos_futex_mutex.h"
"vcos_platform_types.h" and these headers are different based on
platform/OSes. e.g. OS targets that support pthreads these headers
should come from pthreads/ folder but not for others. So one would add
right -I option for every package that accesses them directly or
indirectly. so if a software does #include <EGL/egl.h> then it will
break

| In file included from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos_assert.h:149:0,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos.h:114,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vmcs_host/vc_dispmanx.h:33,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/eglplatform.h:110,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/egl.h:36,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/../shared/platform.h:29,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/window.h:33,
|                  from
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/weston/1.8.0-r0/weston-1.8.0/clients/eventdemo.c:40:
|
/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/interface/vcos/vcos_types.h:38:33:
fatal error: vcos_platform_types.h: No such file or directory
|  #include "vcos_platform_types.h"
|                                  ^
| compilation terminated.

This is wrong, it should not happen since doing simple #include
<EGL/egl.h> should not demand manual addition of some internal paths
tobe added to -I flags.

This patch fixes the headers which refer to headers inside pthreads/
folder to prefix them with pthreads/ so we dont have to specify
additional paths

This fixes weston on rpi and I believe there are more patches now to

recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
recipes-multimedia/omxplayer/omxplayer_git.bb

which can be removed as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-10-24 22:00:48 +02:00
Khem Raj
dba20cbb0a userland: Fix install prefix and generate pkgconfigs
several userspace libraries like libepoxy poke for pkgconfigs ( .pc )
files to detect egl support, and comes out to fail in configure stage,
one of the patches now adds support to generate .pc files for some known
cases. it could be further extended if needed for other libraries too

Secondly, the default CMAKE_INSTALL_PREFIX is /opt/vc but in OE we use
proper /usr so lets make this change as well, it simplifies do_install()

.so are not versioned so we need to grapple with OE's defaults of
expecting versioned .so files.

Adjust packages for -dev package such that it can automatically package
pkgconfig files and inherit pkgconfig because in cmake code we are not
looking for pkgconfig so we need the dependency also put in place for
consistent builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-10-24 21:51:51 +02:00
Andrei Gherzan
fcbb1e6e91 userland: Bump revision
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-10-21 22:58:40 +02:00
Tom Doehring
4dfa633d23 userland: Fix multiple inline issues while building with gcc 5.x
Building userland source with gcc 5.x causes multiple issues such as:

vcos_thread.h:186:15: warning: inline function 'vcos_thread_get_affinity' declared but never defined
|  VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);

The following patches fixes these issues and allows building userland on the current
poky master branch.

Signed-off-by: Tom Doehring <toolmmy@googlemail.com>
2015-10-02 23:26:14 +02:00
Khem Raj
f188f3d756 userland: Fix POSIX compliance expectation
We have errors like below with glibc 2.22+

net_sockets_common.c:139:20: error: storage size of 'hints' isn't known
    struct addrinfo hints, *info, *p;
                        ^

newer glibc has now fixed the definitions of getaddrinfo and ilk to be
enabled with correct posix version.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-08-09 23:02:30 +02:00
Petter Mabäcker
83c9ed7dc7 userland: bump SRCREV
Update to latest version of userland for rpi.

[Support #60]

Signed-off-by: Petter Mabäcker <petter@technux.se>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2015-07-19 14:52:19 +02:00
Andrei Gherzan
d1fa1c0b75 vc-graphics: Move to recipes-graphics
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-12 22:20:51 +01:00
Petter Mabäcker
df7eeb6f86 xserver-xf86-config: add rpi2 awareness
Use a MACHINEOVERRIDE that is visible for both raspberrypi
and raspberrypi2.

[Bug #52]

Signed-off-by: Petter Mabäcker <petter@technux.se>
2015-03-12 22:20:51 +01:00
Andrei Gherzan
1949a0d5ba userland: Fix build for armv7
[Bug #49]

Change-Id: I340b4134ae4227f315c1c3df1345b04ebd4b874b
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:59:48 +01:00
Andrei Gherzan
4147bd7214 userland: Bump SRCREV
Change-Id: If1d2608322749db4baa445ba94bc471a0ac86a5c
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-03-01 00:43:33 +01:00
Andrei Gherzan
e1d4448ce8 xserver-xf86-config: Use SOC specific assignements
In this way the modifications will be used on all RPI boards.

Change-Id: Ife10db876db85c1c4944028a0b49ccae4d8c0d41
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2015-02-08 00:06:36 +02:00
Andrei Gherzan
6b63f6fcbd omxplayer: Update to remote's HEAD
Cleanup and rebase patches.

Change-Id: I151fa6b067a66ac6de9eed920f7e16a08a157e17
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-08-24 03:04:54 +02:00
Alex J Lennon
aa790be2fa userland: Add SRCBRANCH and SRCFORK for use by SRC_URI
Makes it clearer to manage repo forks, and branches prior to (e.g.) upstream
commits of in tree changes.

Change-Id: I42f8af975c08f84c4ceb9910713eba2da3a87d8b
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-06-10 21:20:21 +03:00
Alex J Lennon
e7fdcad1fa userland: Add '--no-as-needed' linker flag
This is done to ensure all specified shared libraries are linked against
applications (e.g. raspivid)i.

libmmal_vc_client.so makes use of __attribute__(constructor) to ensure
that supplier components (e.g. camera) are loaded when the static library is
loaded.

raspivid, and possibly other applications, link against libmmal_vc_client.so,
causing the ctor to execute, but there is no needed dependency.

Some build environments (e.g. Yocto/OpenEmbedded) pass the '--no-as-needed'
linker flag which removes the dependency on libmmal_vc_client and thus
components are not registered.

In this situation raspivid then gives an error of the form
  root@raspberrypi:~# raspivid -o test
  mmal: mmal_component_create_core: could not find component 'vc.ril.camera'
  mmal: Failed to create camera component
  mmal: main: Failed to create camera component
  mmal: Failed to run camera app. Please check for firmware updates

For further details see:
https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html

Change-Id: I9d787fd83379e8b6428dde3827395c8b96be1f7f
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-06-10 21:20:15 +03:00
Andrei Gherzan
c07c5cdbf3 userland: Update to remote's HEAD
Change-Id: If0e36184c741da5d68c158e1fb582050f5835bf9
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:26:38 +03:00
Michaël Burtin
02c9c4eded xserver-xf86-config: Remove changes of THISDIR and FILESPATH
THISDIR and FILESPATH are not supposed to be changed from within
recipes. This was causing troubles with other bbapend.

Change-Id: I7c3c788ddb61b0b790a9fe06f86e4bd93a822c8c
Signed-off-by: Michaël Burtin <mburtin@connected-labs.com>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:21:40 +03:00
Paul Barker
2f98f49fab Remove uses of PRINC
PRINC is now obsolete and the PR Service should be used instead to keep PR
values incrementing on change.

A patch has also been submitted to openembedded-core to bump the appropriate PR
values so that PR doesn't move backwards. This patch should only be applied
after that patch, and only to branches which include that patch (ie. if that
patch doesn't go into daisy in oe-core, this patch shouldn't go into daisy in
meta-raspberrypi).

Change-Id: Ibac9e4e89d12dbd6e94430f47e20b82a67506625
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Acked-by: Andrei Gherzan <andrei@gherzan.ro>
2014-05-08 21:20:26 +03:00
Andrei Gherzan
bdb6b72284 mesa: Replace ugly fix for gles/egl
Use instead, the special created recipe mesa-gl which provides on libgl.

Change-Id: I5ed3c50a0a794f8ea63cc1906f0139ec47459fa6
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-25 17:45:00 +02:00
Andrei Gherzan
9d626df7b8 Merge changes I1eecd332,I635b2f2b,Iad457c26,Iace03974,I4358434c,Ib15942c4,I724511ad
* changes:
  omxplayer: Update to current remote HEAD
  userland: Update to current remote HEAD
  firmware: Update to current remote HEAD
  linux-raspberrypi: Add v3.13.3
  linux-raspberrypi: Update v3.12.7 to v3.12.11
  linux-raspberrypi: Update v3.10.26 to v3.10.30
  linux-raspberrypi: Update v3.11.10 to current remote HEAD
2014-02-24 11:22:03 +00:00
Jonathan Liu
fcf5cb333e mesa: rename .bbappend to match new version from oe-core
Change-Id: Ie3c7bc3e70bfd46cea64ef813c3875d1ba8d07fc
Signed-off-by: Jonathan Liu <net147@gmail.com>
2014-02-21 22:05:47 +11:00
Andrei Gherzan
f83334b687 userland: Update to current remote HEAD
Change-Id: I635b2f2bff03ca7f091f8d5476afa4681f6bda71
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-02-21 10:32:15 +02:00
Koen Kooi
9f79376203 xserver-xf86-config: don't use wildcards in SRC_URI
It is strongly discouraged to use wildcards in SRC_URI since it breaks
when using multiple bbappends and immediate expansion of FILESDIR.

This fixes a do_install failure when building with multiple BSPs
enabled.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2014-02-21 10:12:21 +02:00
Andrei Gherzan
5916b4abd2 userland: Update to remote HEAD
Change-Id: Ib98889d05b33ec2647966f2827e1fbf84f35fd95
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-18 14:24:47 +02:00
Andrei Gherzan
908e69151b userland: Update to latest HEAD
Change-Id: I4403ab492bbe825541149905995ad3e4c61dc897
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2014-01-03 23:20:50 +02:00
Andrei Gherzan
aa662e8575 userland: Update to HEAD on 2013-11-13
Change-Id: Ic618f8bc5365b9f787a230a2a3e0ccb92c17738a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-13 18:24:39 +02:00
Andrei Gherzan
40267fd013 mesa: Remove egl and gles only for raspberrypi machine
Change-Id: I25fab6e100546cfffdd901383f76de76cd7763ed
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-12 00:19:55 +02:00
Andrei Gherzan
c52d4b3da1 mesa: Modify version to match the one from oe-core
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-11-11 11:59:45 +02:00
Andrei Gherzan
caf5f88c65 mesa: Use libgl from mesa for raspberrypi
The graphics libraries provided by userland does not include libgl. So compile
mesa with libgl support and remove gles and egl from it as these are provided
by userland.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:58 +03:00
Andrei Gherzan
7c73b36d4a userland: Update to 2013-08-20 master's snapshot
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-08-21 15:54:46 +03:00
Andrei Gherzan
592274937b userland: Update to 8700279495e266378d36092ccf86424f0ee2539f
* install_vmcs not needed anymore
* By default package is installed in /opt/vc. Move everything in ${prefix}.
* Move recipe in recipes-graphics
* Add PACKAGE_ARCH = MACHINE_ARCH

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2013-03-13 19:42:51 +02:00
David-John Willis
04f059923b xserver-xf86-config: Remove xorg.conf.d/* from CONFFILES_${PN}. 2012-04-23 15:17:34 +01:00
David-John Willis
b0e4ba5f7a xserver-xf86-config: Clean up silly oversight.
* I forgot to append the machine to the
  SRC_URI_append so left this in a state
  that would break other BSP layers. Bad John!
2012-04-12 22:52:57 +01:00
David-John Willis
948b50c0e8 xserver-xf86-config: Add initial xorg config for the RaspberryPi. 2012-04-04 10:05:47 +01:00