From 65f2f7911286c5ce30167cef2a68e51364716438 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Thu, 17 May 2012 15:15:15 +0300 Subject: FastModel: Make ancillary files optional We don't need all files in all cases: 1) in case of integrated switcher, we just need the .axf file 2) in case of reference switcher, we need axf, zimage, and dtb 3) in case of kvm, we need zimage --- linaro_image_tools/media_create/boards.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'linaro_image_tools/media_create/boards.py') diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py index 69033e0..fe9d5c3 100644 --- a/linaro_image_tools/media_create/boards.py +++ b/linaro_image_tools/media_create/boards.py @@ -1368,10 +1368,11 @@ class FastModelConfig(BoardConfig): d_img_data): output_dir=os.path.dirname(boot_device_or_file) - copy_drop(_get_file_matching("%s/boot/img.axf" % chroot_dir), output_dir) + bootwrapper=_get_file_matching("%s/boot/img.axf" % chroot_dir) - for filename in (k_img_data, i_img_data, d_img_data): - copy_drop(filename, output_dir) + for filename in (bootwrapper, k_img_data, i_img_data, d_img_data): + if filename != None: + copy_drop(filename, output_dir) class SamsungConfig(BoardConfig): @classproperty -- cgit v1.2.3