diff options
author | Loys Ollivier <lollivier@baylibre.com> | 2017-10-05 18:41:07 +0200 |
---|---|---|
committer | Loys Ollivier <lollivier@baylibre.com> | 2017-10-06 11:56:09 +0200 |
commit | 0b427702e5f32f8573620a6770cb234bc31e2415 (patch) | |
tree | 3e485affca826d1449be4bfaa7d1a9a148c6e444 /templates/machines/raspberrypi3.jinja2 | |
parent | d32e1ebcafc22434624ec6ae68bd404bb088a513 (diff) |
New arguments to specify build artifacts names
Added new command line arguments to specifiy build artifacts names:
- "--rootfs-img": for the rootfs file name
- "--kernel-img": for the kernel name
- "--dtb-img": for the dtb file name
- "--modules-img": for the modules file name
Change-Id: I665dee2b326aeaaf35148345f0501e49950ba9aa
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'templates/machines/raspberrypi3.jinja2')
-rw-r--r-- | templates/machines/raspberrypi3.jinja2 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/machines/raspberrypi3.jinja2 b/templates/machines/raspberrypi3.jinja2 index c4a7086..2d96110 100644 --- a/templates/machines/raspberrypi3.jinja2 +++ b/templates/machines/raspberrypi3.jinja2 @@ -1,7 +1,12 @@ {%- extends 'boot/generic-uboot-tftp.jinja2' %} -{%- 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" %} {%- set device_arch = "arm64" %} {%- set device_mach = "broadcom" %} +{%- set device_type = "bcm2837-rpi-3-b" %} +{# 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 |