diff options
Diffstat (limited to 'classes/sdcard_image-rpi.bbclass')
| -rw-r--r-- | classes/sdcard_image-rpi.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
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 @@ | |||
| 1 | inherit image_types | 1 | inherit image_types |
| 2 | inherit linux-raspberrypi-base | ||
| 3 | 2 | ||
| 4 | # | 3 | # |
| 5 | # Create an image that can by written onto a SD card using dd. | 4 | # Create an image that can by written onto a SD card using dd. |
| @@ -76,6 +75,17 @@ FATPAYLOAD ?= "" | |||
| 76 | SDIMG_VFAT = "${IMAGE_NAME}.vfat" | 75 | SDIMG_VFAT = "${IMAGE_NAME}.vfat" |
| 77 | SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" | 76 | SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" |
| 78 | 77 | ||
| 78 | def split_overlays(d, out, ver=None): | ||
| 79 | dts = d.getVar("KERNEL_DEVICETREE") | ||
| 80 | if out: | ||
| 81 | overlays = oe.utils.str_filter_out('\S+\-overlay\.dtb$', dts, d) | ||
| 82 | overlays = oe.utils.str_filter_out('\S+\.dtbo$', overlays, d) | ||
| 83 | else: | ||
| 84 | overlays = oe.utils.str_filter('\S+\-overlay\.dtb$', dts, d) + \ | ||
| 85 | " " + oe.utils.str_filter('\S+\.dtbo$', dts, d) | ||
| 86 | |||
| 87 | return overlays | ||
| 88 | |||
| 79 | IMAGE_CMD_rpi-sdimg () { | 89 | IMAGE_CMD_rpi-sdimg () { |
| 80 | 90 | ||
| 81 | # Align partitions | 91 | # Align partitions |
