From cbd2412fb4fd38febdd2e71c6e8e9d7f35e94419 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Fri, 8 Sep 2017 09:35:48 +0000 Subject: linux-raspberrypi-base.bbclass: Drop The only remaining function in linux-raspberrypi-base was split_overlays() which is used in the sdcard_image-rpi class. So we can move this function over and drop the now-empty linux-raspberrypi-base class. Signed-off-by: Paul Barker --- classes/linux-raspberrypi-base.bbclass | 12 ------------ classes/sdcard_image-rpi.bbclass | 12 +++++++++++- recipes-kernel/linux/linux-raspberrypi.inc | 1 - 3 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 classes/linux-raspberrypi-base.bbclass diff --git a/classes/linux-raspberrypi-base.bbclass b/classes/linux-raspberrypi-base.bbclass deleted file mode 100644 index 0a21cc9..0000000 --- a/classes/linux-raspberrypi-base.bbclass +++ /dev/null @@ -1,12 +0,0 @@ -inherit linux-kernel-base - -def split_overlays(d, out, ver=None): - dts = d.getVar("KERNEL_DEVICETREE") - if out: - overlays = oe.utils.str_filter_out('\S+\-overlay\.dtb$', dts, d) - overlays = oe.utils.str_filter_out('\S+\.dtbo$', overlays, d) - else: - overlays = oe.utils.str_filter('\S+\-overlay\.dtb$', dts, d) + \ - " " + oe.utils.str_filter('\S+\.dtbo$', dts, d) - - return overlays diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 8099f77..6d34a29 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass @@ -1,5 +1,4 @@ inherit image_types -inherit linux-raspberrypi-base # # Create an image that can by written onto a SD card using dd. @@ -76,6 +75,17 @@ FATPAYLOAD ?= "" SDIMG_VFAT = "${IMAGE_NAME}.vfat" SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" +def split_overlays(d, out, ver=None): + dts = d.getVar("KERNEL_DEVICETREE") + if out: + overlays = oe.utils.str_filter_out('\S+\-overlay\.dtb$', dts, d) + overlays = oe.utils.str_filter_out('\S+\.dtbo$', overlays, d) + else: + overlays = oe.utils.str_filter('\S+\-overlay\.dtb$', dts, d) + \ + " " + oe.utils.str_filter('\S+\.dtbo$', dts, d) + + return overlays + IMAGE_CMD_rpi-sdimg () { # Align partitions diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 8aa9577..154e4da 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -1,5 +1,4 @@ require linux-rpi.inc -inherit linux-raspberrypi-base DESCRIPTION = "Linux Kernel for Raspberry Pi" SECTION = "kernel" -- cgit v1.2.3-54-g00ecf