diff options
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/images/rpi-basic-image.bb | 15 | ||||
-rw-r--r-- | recipes-core/images/rpi-hwup-image.bb | 11 | ||||
-rw-r--r-- | recipes-core/images/rpi-test-image.bb | 2 | ||||
-rw-r--r-- | recipes-core/packagegroups/packagegroup-core-tools-testapps.bbappend | 2 | ||||
-rw-r--r-- | recipes-core/packagegroups/packagegroup-rpi-test.bb | 17 | ||||
-rw-r--r-- | recipes-core/psplash/files/framebuf.conf | 4 | ||||
-rw-r--r-- | recipes-core/psplash/psplash_%.bbappend | 15 | ||||
-rw-r--r-- | recipes-core/udev/udev-rules-rpi.bb | 7 | ||||
-rw-r--r-- | recipes-core/udev/udev-rules-rpi/99-com.rules | 21 | ||||
-rw-r--r-- | recipes-core/udev/udev-rules-udisks-rpi_1.0.bb | 2 |
10 files changed, 33 insertions, 63 deletions
diff --git a/recipes-core/images/rpi-basic-image.bb b/recipes-core/images/rpi-basic-image.bb deleted file mode 100644 index 77a3d7b..0000000 --- a/recipes-core/images/rpi-basic-image.bb +++ /dev/null @@ -1,15 +0,0 @@ -# Base this image on core-image-minimal -include recipes-core/images/core-image-minimal.bb - -# Include modules in rootfs -IMAGE_INSTALL += " \ - kernel-modules \ - " - -SPLASH = "psplash-raspberrypi" - -IMAGE_FEATURES += "ssh-server-dropbear splash" - -do_image_prepend() { - bb.warn("The image 'rpi-basic-image' is deprecated, please use 'core-image-base' instead") -} diff --git a/recipes-core/images/rpi-hwup-image.bb b/recipes-core/images/rpi-hwup-image.bb deleted file mode 100644 index 86e9b6d..0000000 --- a/recipes-core/images/rpi-hwup-image.bb +++ /dev/null @@ -1,11 +0,0 @@ -# Base this image on core-image-minimal -include recipes-core/images/core-image-minimal.bb - -# Include modules in rootfs -IMAGE_INSTALL += " \ - kernel-modules \ - " - -do_image_prepend() { - bb.warn("The image 'rpi-hwup-image' is deprecated, please use 'core-image-base' instead") -} diff --git a/recipes-core/images/rpi-test-image.bb b/recipes-core/images/rpi-test-image.bb index c2f5f73..360b20d 100644 --- a/recipes-core/images/rpi-test-image.bb +++ b/recipes-core/images/rpi-test-image.bb @@ -3,4 +3,4 @@ include recipes-core/images/core-image-base.bb COMPATIBLE_MACHINE = "^rpi$" -IMAGE_INSTALL_append = " packagegroup-rpi-test" +IMAGE_INSTALL:append = " packagegroup-rpi-test" diff --git a/recipes-core/packagegroups/packagegroup-core-tools-testapps.bbappend b/recipes-core/packagegroups/packagegroup-core-tools-testapps.bbappend index 500d871..1cc1dfc 100644 --- a/recipes-core/packagegroups/packagegroup-core-tools-testapps.bbappend +++ b/recipes-core/packagegroups/packagegroup-core-tools-testapps.bbappend @@ -1,2 +1,2 @@ # mesa-demos needs gles1 and userland driver does not have it, works ok with vc4 graphics driver -X11GLTOOLS_remove_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'mesa-demos', d)}" +X11GLTOOLS:remove:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'mesa-demos', d)}" diff --git a/recipes-core/packagegroups/packagegroup-rpi-test.bb b/recipes-core/packagegroups/packagegroup-rpi-test.bb index 852e3a6..ff8f8a4 100644 --- a/recipes-core/packagegroups/packagegroup-rpi-test.bb +++ b/recipes-core/packagegroups/packagegroup-rpi-test.bb @@ -2,29 +2,32 @@ DESCRIPTION = "RaspberryPi Test Packagegroup" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +PACKAGE_ARCH = "${MACHINE_ARCH}" + inherit packagegroup COMPATIBLE_MACHINE = "^rpi$" OMXPLAYER = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'omxplayer', d)}" -RDEPENDS_${PN} = "\ +RDEPENDS:${PN} = "\ ${OMXPLAYER} \ bcm2835-tests \ + raspi-gpio \ rpio \ rpi-gpio \ pi-blaster \ + python3-adafruit-circuitpython-register \ + python3-adafruit-platformdetect \ + python3-adafruit-pureio \ python3-rtimu \ - python3-sense-hat \ connman \ connman-client \ - wireless-regdb \ + wireless-regdb-static \ bluez5 \ " -RRECOMMENDS_${PN} = "\ - bigbuckbunny-1080p \ - bigbuckbunny-480p \ - bigbuckbunny-720p \ +RRECOMMENDS:${PN} = "\ + ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-multimedia", "bigbuckbunny-1080p bigbuckbunny-480p bigbuckbunny-720p", "", d)} \ ${MACHINE_EXTRA_RRECOMMENDS} \ " diff --git a/recipes-core/psplash/files/framebuf.conf b/recipes-core/psplash/files/framebuf.conf new file mode 100644 index 0000000..44e1ded --- /dev/null +++ b/recipes-core/psplash/files/framebuf.conf @@ -0,0 +1,4 @@ +[Unit] +Requires=sys-devices-platform-gpu-graphics-fb0.device +After=sys-devices-platform-gpu-graphics-fb0.device + diff --git a/recipes-core/psplash/psplash_%.bbappend b/recipes-core/psplash/psplash_%.bbappend index 09e3ec9..57cade8 100644 --- a/recipes-core/psplash/psplash_%.bbappend +++ b/recipes-core/psplash/psplash_%.bbappend @@ -1,3 +1,12 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -SPLASH_IMAGES_append_rpi = " file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" -ALTERNATIVE_PRIORITY_psplash-raspberrypi[psplash] = "200" +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" +SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" + +SRC_URI:append:rpi = " file://framebuf.conf" + +do_install:append:rpi() { + if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then + install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf + fi +} + +FILES:${PN}:append:rpi = " ${systemd_system_unitdir}/psplash-start.service.d" diff --git a/recipes-core/udev/udev-rules-rpi.bb b/recipes-core/udev/udev-rules-rpi.bb index 42cfcdd..3ae4385 100644 --- a/recipes-core/udev/udev-rules-rpi.bb +++ b/recipes-core/udev/udev-rules-rpi.bb @@ -3,16 +3,17 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" SRC_URI = " \ - file://99-com.rules \ + git://github.com/RPi-Distro/raspberrypi-sys-mods;protocol=https;branch=master \ file://can.rules \ " +SRCREV = "5ce3ef2b7f377c23fea440ca9df0e30f3f8447cf" -S = "${WORKDIR}" +S = "${WORKDIR}/git" INHIBIT_DEFAULT_DEPS = "1" do_install () { install -d ${D}${sysconfdir}/udev/rules.d - install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/ + install -m 0644 ${S}/etc.armhf/udev/rules.d/99-com.rules ${D}${sysconfdir}/udev/rules.d/ install -m 0644 ${WORKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/ } diff --git a/recipes-core/udev/udev-rules-rpi/99-com.rules b/recipes-core/udev/udev-rules-rpi/99-com.rules deleted file mode 100644 index 6bf019b..0000000 --- a/recipes-core/udev/udev-rules-rpi/99-com.rules +++ /dev/null @@ -1,21 +0,0 @@ -KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\ - ALIASES=/proc/device-tree/aliases; \ - if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \ - echo 0;\ - elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \ - echo 1; \ - else \ - exit 1; \ - fi\ -'", SYMLINK+="serial%c" - -KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\ - ALIASES=/proc/device-tree/aliases; \ - if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \ - echo 0; \ - elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \ - echo 1; \ - else \ - exit 1; \ - fi \ -'", SYMLINK+="serial%c" diff --git a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb index ae35521..d5d4589 100644 --- a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb +++ b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb @@ -10,4 +10,4 @@ do_install () { install -m 644 ${WORKDIR}/80-udisks-rpi.rules ${D}${base_libdir}/udev/rules.d } -FILES_${PN} = "${base_libdir}/udev/rules.d" +FILES:${PN} = "${base_libdir}/udev/rules.d" |