diff options
| author | Tuomas Heimonen <tuomas.heimonen@theqtcompany.com> | 2016-04-08 14:43:42 +0300 |
|---|---|---|
| committer | Tuomas Heimonen <tuomas.heimonen@theqtcompany.com> | 2016-04-08 13:01:25 +0000 |
| commit | 579d003d7696ea399b839e430bd8a976d9bb6f66 (patch) | |
| tree | e4975904f9e678e0dd38916ccb7c80e1b24469e2 | |
| parent | 2848919526f575d9eaaccf19d4bfaa4a0f4043c2 (diff) | |
| download | meta-boot2qt-579d003d7696ea399b839e430bd8a976d9bb6f66.tar.gz | |
Raspberry Pi conf split
Change-Id: I556a0b35ff21edc6bec1897dd1c769012058df6b
Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
| -rw-r--r-- | conf/distro/include/raspberrypi.conf | 26 | ||||
| -rw-r--r-- | conf/distro/include/raspberrypi.inc | 50 | ||||
| -rw-r--r-- | conf/distro/include/raspberrypi2.conf | 28 | ||||
| -rw-r--r-- | conf/distro/include/raspberrypi3.conf | 33 |
4 files changed, 56 insertions, 81 deletions
diff --git a/conf/distro/include/raspberrypi.conf b/conf/distro/include/raspberrypi.conf index a9e4b20..5f80c38 100644 --- a/conf/distro/include/raspberrypi.conf +++ b/conf/distro/include/raspberrypi.conf | |||
| @@ -19,33 +19,11 @@ | |||
| 19 | ## | 19 | ## |
| 20 | ############################################################################## | 20 | ############################################################################## |
| 21 | 21 | ||
| 22 | DEPLOY_CONF_NAME = "Raspberry Pi" | 22 | include conf/distro/include/raspberrypi.inc |
| 23 | |||
| 24 | IMAGE_FSTYPES += "ext3 rpi-sdimg" | ||
| 25 | 23 | ||
| 26 | BOOTFS_CONTENT = "\ | 24 | DEPLOY_CONF_NAME = "Raspberry Pi" |
| 27 | bcm2835-bootfiles/*: \ | ||
| 28 | ${KERNEL_IMAGETYPE}:kernel.img \ | ||
| 29 | " | ||
| 30 | BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | ||
| 31 | |||
| 32 | PREFERRED_PROVIDER_virtual/libgles1 = "userland" | ||
| 33 | 25 | ||
| 34 | DISTRO_FEATURES_remove = "webengine" | 26 | DISTRO_FEATURES_remove = "webengine" |
| 35 | 27 | ||
| 36 | MACHINE_EXTRA_INSTALL = "\ | ||
| 37 | userland \ | ||
| 38 | " | ||
| 39 | |||
| 40 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
| 41 | userland-dev \ | ||
| 42 | " | ||
| 43 | |||
| 44 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" | ||
| 45 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" | ||
| 46 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | ||
| 47 | |||
| 48 | # additional memory for GPU | 28 | # additional memory for GPU |
| 49 | GPU_MEM = "128" | 29 | GPU_MEM = "128" |
| 50 | # video camera support | ||
| 51 | VIDEO_CAMERA = "1" | ||
diff --git a/conf/distro/include/raspberrypi.inc b/conf/distro/include/raspberrypi.inc new file mode 100644 index 0000000..49d152e --- /dev/null +++ b/conf/distro/include/raspberrypi.inc | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | ############################################################################## | ||
| 2 | ## | ||
| 3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
| 4 | ## Contact: http://www.qt.io/licensing/ | ||
| 5 | ## | ||
| 6 | ## This file is part of the Boot to Qt meta layer. | ||
| 7 | ## | ||
| 8 | ## $QT_BEGIN_LICENSE:COMM$ | ||
| 9 | ## | ||
| 10 | ## Commercial License Usage | ||
| 11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
| 12 | ## accordance with the commercial license agreement provided with the | ||
| 13 | ## Software or, alternatively, in accordance with the terms contained in | ||
| 14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
| 15 | ## and conditions see http://www.qt.io/terms-conditions. For further | ||
| 16 | ## information use the contact form at http://www.qt.io/contact-us. | ||
| 17 | ## | ||
| 18 | ## $QT_END_LICENSE$ | ||
| 19 | ## | ||
| 20 | ############################################################################## | ||
| 21 | |||
| 22 | IMAGE_FSTYPES += "ext3 rpi-sdimg" | ||
| 23 | |||
| 24 | BOOTFS_CONTENT = "\ | ||
| 25 | bcm2835-bootfiles/*: \ | ||
| 26 | ${KERNEL_IMAGETYPE}:kernel.img \ | ||
| 27 | " | ||
| 28 | |||
| 29 | BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | ||
| 30 | |||
| 31 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
| 32 | userland-dev \ | ||
| 33 | " | ||
| 34 | |||
| 35 | MACHINE_EXTRA_INSTALL = "\ | ||
| 36 | userland \ | ||
| 37 | omxplayer \ | ||
| 38 | " | ||
| 39 | |||
| 40 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" | ||
| 41 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" | ||
| 42 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | ||
| 43 | |||
| 44 | # video camera support | ||
| 45 | VIDEO_CAMERA = "1" | ||
| 46 | |||
| 47 | RPI_FT5604 = "1" | ||
| 48 | KERNEL_DEVICETREE += "overlays/rpi-ft5406-overlay.dtb" | ||
| 49 | MACHINE_FEATURES += "pitft" | ||
| 50 | |||
diff --git a/conf/distro/include/raspberrypi2.conf b/conf/distro/include/raspberrypi2.conf index 040ea9b..e90eeae 100644 --- a/conf/distro/include/raspberrypi2.conf +++ b/conf/distro/include/raspberrypi2.conf | |||
| @@ -19,34 +19,10 @@ | |||
| 19 | ## | 19 | ## |
| 20 | ############################################################################## | 20 | ############################################################################## |
| 21 | 21 | ||
| 22 | DEPLOY_CONF_NAME = "Raspberry Pi 2" | 22 | include conf/distro/include/raspberrypi.inc |
| 23 | |||
| 24 | IMAGE_FSTYPES += "ext3 rpi-sdimg" | ||
| 25 | |||
| 26 | BOOTFS_CONTENT = "\ | ||
| 27 | bcm2835-bootfiles/*: \ | ||
| 28 | ${KERNEL_IMAGETYPE}:kernel.img \ | ||
| 29 | " | ||
| 30 | BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | ||
| 31 | 23 | ||
| 32 | MACHINE_EXTRA_INSTALL = "\ | 24 | DEPLOY_CONF_NAME = "Raspberry Pi 2" |
| 33 | userland \ | ||
| 34 | omxplayer \ | ||
| 35 | " | ||
| 36 | |||
| 37 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
| 38 | userland \ | ||
| 39 | " | ||
| 40 | |||
| 41 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" | ||
| 42 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" | ||
| 43 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | ||
| 44 | 25 | ||
| 45 | # additional memory for GPU | 26 | # additional memory for GPU |
| 46 | GPU_MEM = "256" | 27 | GPU_MEM = "256" |
| 47 | # video camera support | ||
| 48 | VIDEO_CAMERA = "1" | ||
| 49 | RPI_FT5604 = "1" | ||
| 50 | 28 | ||
| 51 | KERNEL_DEVICETREE += "overlays/rpi-ft5406-overlay.dtb" | ||
| 52 | MACHINE_FEATURES += "pitft" | ||
diff --git a/conf/distro/include/raspberrypi3.conf b/conf/distro/include/raspberrypi3.conf index ee9a9e0..aa76ac5 100644 --- a/conf/distro/include/raspberrypi3.conf +++ b/conf/distro/include/raspberrypi3.conf | |||
| @@ -19,39 +19,10 @@ | |||
| 19 | ## | 19 | ## |
| 20 | ############################################################################## | 20 | ############################################################################## |
| 21 | 21 | ||
| 22 | DEPLOY_CONF_NAME = "Raspberry Pi 3" | 22 | include conf/distro/include/raspberrypi.inc |
| 23 | |||
| 24 | IMAGE_FSTYPES += "ext3 rpi-sdimg" | ||
| 25 | |||
| 26 | BOOTFS_CONTENT = "\ | ||
| 27 | bcm2835-bootfiles/*: \ | ||
| 28 | ${KERNEL_IMAGETYPE}:kernel.img \ | ||
| 29 | " | ||
| 30 | BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | ||
| 31 | |||
| 32 | MACHINE_EXTRA_INSTALL = "\ | ||
| 33 | userland \ | ||
| 34 | omxplayer \ | ||
| 35 | " | ||
| 36 | |||
| 37 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
| 38 | userland \ | ||
| 39 | " | ||
| 40 | 23 | ||
| 41 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" | 24 | DEPLOY_CONF_NAME = "Raspberry Pi 3" |
| 42 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" | ||
| 43 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | ||
| 44 | 25 | ||
| 45 | # additional memory for GPU | 26 | # additional memory for GPU |
| 46 | GPU_MEM = "256" | 27 | GPU_MEM = "256" |
| 47 | # video camera support | ||
| 48 | VIDEO_CAMERA = "1" | ||
| 49 | RPI_FT5604 = "1" | ||
| 50 | |||
| 51 | KERNEL_DEVICETREE += "overlays/rpi-ft5406-overlay.dtb" | ||
| 52 | MACHINE_FEATURES += "pitft" | ||
| 53 | |||
| 54 | # MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" | ||
| 55 | |||
| 56 | MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430" | ||
| 57 | 28 | ||
