diff options
Diffstat (limited to 'templates/machines/raspberrypi3.jinja2')
-rw-r--r-- | templates/machines/raspberrypi3.jinja2 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/machines/raspberrypi3.jinja2 b/templates/machines/raspberrypi3.jinja2 index f1e1454..2d96110 100644 --- a/templates/machines/raspberrypi3.jinja2 +++ b/templates/machines/raspberrypi3.jinja2 @@ -1,5 +1,12 @@ {%- extends 'boot/generic-uboot-tftp.jinja2' %} +{%- set device_arch = "arm64" %} +{%- set device_mach = "broadcom" %} {%- set device_type = "bcm2837-rpi-3-b" %} -{%- set dtb = "uImage-bcm2710-rpi-3-b.dtb" %} -{%- set nbdinitrd = "initramfs-netboot-image-" + yocto_machine +".ext4.gz.u-boot" %} +{# Default boot method if not specified #} {%- set rootfs_type = rootfs_type|default("nbd") %} +{# Defaults image names dependng on boot method #} +{%- if rootfs_type == 'nbd' %} + {%- set initrd = "initramfs-netboot-image-" + yocto_machine +".ext4.gz.u-boot" %} +{%- elif rootfs_type == 'ramdisk' %} + {%- set dtb = dtb|default("uImage-bcm2710-rpi-3-b.dtb") %} +{%- endif %}
\ No newline at end of file |