Commit Graph

718 Commits

Author SHA1 Message Date
Martin Jansa
56d0bdb5fe recipe: anchor regexps in COMPATIBLE_MACHINE
* bitbake is using re.match, so raspberrypi actually matches with anything
  ^raspberrypi.* which currently works, but it will also match with hypothetical
  raspberrypi-is-no-more-this-is-banana-now MACHINE which isn't intended by
  this COMPATIBLE_MACHINE.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-27 10:56:34 +02:00
Martin Jansa
ab4006bb2e weston: use just one append and one bb.utils.contains
* drop duplicated --enable-rpi-compositor and WESTON_NATIVE_BACKEND=rpi-backend.so
* use rpi override, adding --enable-rpi-compositor unconditionally breaks other MACHINEs with:
  configure: WARNING: unrecognized options: --enable-rpi-compositor
* use just one append and one bb.utils.contains to save some bitbake cycles while parsing

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-27 10:56:34 +02:00
Thomas Thorne
f6a2ca21c7
rpio: Add RDEPENDS For python-logging & python-threading
[GitHub Ticket #98 - rpio requires the logging and threading Python
packages but does not RDEPENDS them in recipie]

The rpio tool needs the Python logging and threading pacakges installed
on the target system for it to work.  The pacakges are not included when
doing a rpi-basci-image.  This change updates the recipe so that all the
required dependencies of the prio script are identified by the recipie.

Fixes #98

Signed-off-by: Thomas A F Thorne <TafThorne@GoogleMail.com>
2017-07-26 17:09:06 +01:00
Andrea Galbusera
1e1b50c55d userland: Add missing EGL_CAST defines
Needed by libepoxy

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-07-14 14:35:59 +01:00
Paul Barker
4cff21e243 linux-raspberrypi-dev: Switch to rpi-4.12.y
Linux v4.12 is now released.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-07-05 15:45:33 +01:00
Paul Barker
16a8384a9a linux-rasbperrypi: Update to 4.9.35
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-07-02 11:37:13 +01:00
Andrea Galbusera
04a33eadfb rpi-base: wic: generate entries for u-boot
This commit allow wic generated images to work when we want u-boot to
load the kernel image.

Augment IMAGE_BOOT_FILES with the proper entries when KERNEL_IMAGETYPE
is "uImage". More specifically add u-boot image and boot.scr to deployed files
and give the proper name to the kernel image accordingly.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-06-30 11:46:21 +01:00
Andreas Müller
fc17cd7419 sdcard_image-rpi: replace IMAGE_DEPENDS_rpi-sdimg by do_image_rpi-sdimg[depends]
* oe-core removed IMAGE_DEPENDS -> parsing fails with hint how to fix
* add required task for each recipe

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2017-06-29 23:00:36 +01:00
Michal Mazurek
d9dbfe6536 raspberrypi3-64.conf: Don't use raspberrypi as MACHINEOVERRIDES
The current setup broke the build for rpi3-64 when we wanted to port
some changes from rpi3 to rpi0.

Signed-off-by: Michal Mazurek <michal@resin.io>
2017-06-26 14:51:06 +01:00
Andrei Gherzan
ca77a583c3 Merge pull request #86 from mattsm/master
sdcard_image-rpi.bbclass: deploy vfat partition
2017-06-26 13:37:05 +01:00
Matthew McClintock
a6bb80c935 sdcard_image-rpi.bbclass: deploy vfat partition
This is useful to update the bootloader/vfat partition from u-boot when
you don't want to update everything:

U-Boot> tftpboot 0x1000000 tmp/0VXje
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.26
Filename 'image.vfat'.
Load address: 0x1000000
Loading: ##################################################  40 MiB
	 2.1 MiB/s
done
Bytes transferred = 41943040 (2800000 hex)
U-Boot> mmc part

Partition Map for MMC device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	8192      	81920     	a63a4fbc-01	0c Boot
  2	90112     	163840    	a63a4fbc-02	83
U-Boot> mmc erase 0x2000 0x14000

MMC erase: dev # 0, block # 8192, count 81920 ... 81920 blocks erased:
OK
U-Boot> mmc write 0x1000000 0x2000 0x14000

MMC write: dev # 0, block # 8192, count 81920 ... 81920 blocks written:
OK
U-Boot>

Signed-off-by: Matthew McClintock <msm-oss@mcclintock.net>
2017-06-21 10:54:32 -05:00
Andrei Gherzan
11fec46133 Merge pull request #83 from Technux/update-pi-blaster
pi-blaster: update to include proper rpi3 support
2017-06-09 12:22:05 +01:00
Petter Mabäcker
df901c2915 pi-blaster: update to include proper rpi3 support
Update to latest available revision, in order to include proper rpi3
support as well as latest fixes.

LIC_FILES_CHKSUM for the license text in README.md is changed to handle
fixes of whitespace and newlines in the license text, introduced by the
pi-blaster commit: '0e1a1df Cleaning up the README'.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2017-06-08 16:28:23 +02:00
Paul Barker
081405feaa linux-raspberrypi-dev: Skip if not preferred provider
This should avoid network traffic to resolve ${AUTOREV} unless this
recipe is explicitly selected as the preferred provider of
virtual/kernel.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-06-01 13:48:23 +01:00
Paul Barker
e147e12d94 linux-raspberrypi-dev: Rename recipe
This recipe is now uniquely named instead of just being another version
of linux-raspberrypi.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-06-01 13:48:23 +01:00
Andrei Gherzan
a71483f9d9 bcm2835: Remove dependency of bcm2835-dev on bcm2835
By default, the ${PN}-dev package of a recipe depends on the ${PN}
package.  However, since the bcm2835 package contains no file, it is not
generated.  As a result, when trying to include bcm2835-dev in an image
(or another package that depends on bcm2835-dev, such as
bcm2835-staticdev), we receive an error message saying that the bcm2835
package is not found.

A solution would be to define ALLOW_EMPTY for bcm2835, so that an empty
package is generated.  However, that would causes a useless package to
be installed on the target.  This patch uses another solution, which is
to empty the RDEPENDS variable of bcm2835-dev, so that it doesn't pull
in bcm2835.

Fixes #22

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-27 03:24:35 +01:00
Paul Barker
371f85ce53 docs: Format all links correctly
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-26 12:16:52 +01:00
Mirza Krak
5eb159d32d docs: small editorial fix
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2017-05-26 12:16:52 +01:00
Mirza Krak
caabd6a608 docs: drop "Device tree support" section
We no longer provide any Linux kernel which do not have device-tree
support and all machines setup KERNEL_DEVICETREE correctly.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2017-05-26 12:16:52 +01:00
Mirza Krak
34113350f4 docs: fix alignment of "code blocks"
We provide a lot of variable examples as code blocks in the following
format:

	some text: `Variable`

or
	some test:
	`Variable`

Which is not as pretty as (when converted to html/pdf):

	some text:

		Variable

Converted all and hoppefully this will improve readability a bit.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2017-05-26 12:16:52 +01:00
Paul Barker
a30708d49c docs: Remove incompatible table format
Sadly sphinx doesn't support pipe tables in markdown at the minute.
Let's use a bullet-point list instead.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-26 12:16:52 +01:00
Paul Barker
bf02bfd2ed docs: Include readme in sphinx documentation
This allows us to avoid having to duplicate any information in the
readme into another documentation file.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-26 12:16:52 +01:00
Paul Barker
654d84d68a docs: Initial sphinx configuration
This allows us to create documentation by running 'make html' or 'make
latexpdf' in the docs directory. It depends on sphinx and the
recommonmark python module (for parsing markdown files in sphinx).
Creation of the PDF document requires a full LaTeX toolchain to be
installed.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-26 12:16:52 +01:00
Paul Barker
03976f7ff1 docs: Initial split of README into docs directory
The top-level README document has got pretty unwieldy and so we need to
switch to add some more structure to our documentation. The first step
is to split out sub-sections of the README document into separate files
in a new 'docs' directory.

Whilst splitting up the README, we can also take the opportunity to tidy
things up and fix a couple of typos.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-26 12:16:52 +01:00
Khem Raj
4f2dd0f0e8 userland: Update to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-24 16:20:58 +01:00
Paul Barker
45ece9cd0a linux-raspberrypi: Minor recipe tidyup
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-22 10:48:05 +02:00
Paul Barker
e5f33333ca linux-rasbperrypi: Update to 4.9.27
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-22 10:48:05 +02:00
Andrei Gherzan
3d43e174d2 Merge pull request #71 from agherzan/pbarker/dev-4.11
linux-raspberrypi: Switch dev recipe to 4.11 branch
2017-05-17 18:49:11 +01:00
Andrei Gherzan
c4e6ff4f9f Merge pull request #59 from LocutusOfBorg/patch-2
Make CMDLINE overridable from outside
2017-05-17 18:48:50 +01:00
Andrei Gherzan
39e1d49097 Merge pull request #70 from agherzan/pbarker/drop-4.4
linux-rasberrypi: Drop 4.4 series kernel
2017-05-17 18:48:36 +01:00
Andrei Gherzan
adf62cd9e8 Merge pull request #68 from resin-os/ignore-logs
.gitignore: Ignore log files
2017-05-16 12:26:41 +01:00
Gianfranco Costamagna
e28e6e6422 raspberrypi0.conf: make SERIAL_CONSOLE overridable from outside
currently there is no way to override the default SERIAL_CONSOLE,
 this variable needs to be set only if the developer didn't set it already from
 another layer.

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
2017-05-16 12:54:04 +02:00
Gianfranco Costamagna
4a2e37f96e linux-raspberrypi: Make CMDLINE overridable from outside
currently there is no way to override the default CMDLINE,
 this variable needs to be set only if the developer didn't set it already from
 another layer.

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
2017-05-16 12:53:47 +02:00
Andrei Gherzan
6d5d83f1d6 Merge pull request #67 from agherzan/misc-fixes
Various tweaks and fixes
2017-05-15 13:12:28 +01:00
Andrei Gherzan
a438f1d514 Merge pull request #69 from agherzan/github
GitHub templates
2017-05-15 12:25:24 +01:00
Paul Barker
a001d9f316 linux-raspberrypi: Switch dev recipe to 4.11 branch
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-15 10:29:14 +01:00
Paul Barker
9eaff5ce1a linux-rasberrypi: Drop 4.4 series kernel
The rpi-4.4.y branch has been unmaintained for a couple of months now.
Let's drop it before branching for pyro.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-05-15 10:19:17 +01:00
Andrei Gherzan
135a7ae55f
PULL_REQUEST_TEMPLATE.md: Add pull request template
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-12 20:41:05 +01:00
Andrei Gherzan
63aa85268c
ISSUE_TEMPLATE.md: Add issue template
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-12 20:40:48 +01:00
Andrei Gherzan
d0abd927f5
.gitignore: Ignore log files
Signed-off-by: Andrei Gherzan <andrei@resin.io>
2017-05-12 18:46:49 +01:00
Andrei Gherzan
abeddc3b0d
README.md: Add info about github pull requests
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-12 18:38:54 +01:00
Andrei Gherzan
d8da77b57e
README: Migrate to markdown version
Add badges too.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-12 18:16:57 +01:00
Andrei Gherzan
3cf2582cc9
README: Document missing dependencies
We depend on other layers from meta-oe.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-05-12 18:16:40 +01:00
Khem Raj
d9e94b87a7
mesa-gl: Enable gbm for rpi
weston needs gbm support which is not
in userland

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-11 18:18:08 +01:00
Khem Raj
2aa6b1a637
userland: Add missing GLES2 defines
Needed by weston

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-05-11 18:18:05 +01:00
Andrea Galbusera
8527a396d3 rpi-base: fix make_dtb_boot_files() for raspberrypi3-64
Building the stock wic image for raspberrypi3-64 failed to find dtbs listed in
IMAGE_BOOT_FILES. This patch updates the make_dtb_boot_files() function to
account for dtbs listed in KERNEL_DEVICETREE that do include a path prefix:
this is the case for things like broadcom/bcm2710-rpi-3-b.dtb (the dts dir
layout in the kernel sources is different for arm64). Use the same approach
already used for overlays/ dir. While at it also fix a typo in dtb overlay
code path comments.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-04-21 18:01:08 +01:00
Andrei Gherzan
decdacf30c raspberrypi3.conf: Use a stand alone machine configuration
As well make all the variables assigned in a way that they can be
overwritten so we can give maximum flexibility to distros.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:02:28 +01:00
Andrei Gherzan
0d28786dac raspberrypi3-64.conf: Make SERIAL_CONSOLE overwritable
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:00:02 +01:00
Andrei Gherzan
b05e5e32a4 raspberrypi2.conf: Make SERIAL_CONSOLE overwritable
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:00:02 +01:00
Andrei Gherzan
e8682225ef raspberrypi.conf: Have the ability to overwrite SERIAL_CONSOLE
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-20 12:22:49 +01:00