mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-07-16 03:46:56 +00:00
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 <pbarker@toganlabs.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
8311d16e59
commit
cbd2412fb4
@@ -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
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
inherit image_types
|
inherit image_types
|
||||||
inherit linux-raspberrypi-base
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create an image that can by written onto a SD card using dd.
|
# Create an image that can by written onto a SD card using dd.
|
||||||
@@ -76,6 +75,17 @@ FATPAYLOAD ?= ""
|
|||||||
SDIMG_VFAT = "${IMAGE_NAME}.vfat"
|
SDIMG_VFAT = "${IMAGE_NAME}.vfat"
|
||||||
SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_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 () {
|
IMAGE_CMD_rpi-sdimg () {
|
||||||
|
|
||||||
# Align partitions
|
# Align partitions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
require linux-rpi.inc
|
require linux-rpi.inc
|
||||||
inherit linux-raspberrypi-base
|
|
||||||
|
|
||||||
DESCRIPTION = "Linux Kernel for Raspberry Pi"
|
DESCRIPTION = "Linux Kernel for Raspberry Pi"
|
||||||
SECTION = "kernel"
|
SECTION = "kernel"
|
||||||
|
|||||||
Reference in New Issue
Block a user