[U-Boot] rpi: Enable command bmp

Alexander Graf agraf at suse.de
Mon Dec 3 19:24:55 UTC 2018



On 02.12.18 23:02, Alexander Graf wrote:
>> This patch enables the bmp command (with gzip support enabled) on all
>> Raspberry Pi boards.
>>
>> The value of CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (required by
>> CONFIG_VIDEO_BMP_GZIP) is set to match resolution of the "official"
>> 7 inch LCD.
>>
>> Signed-off-by: Adam Heinrich <adam at adamh.cz>
>> Cc: Alexander Graf <agraf at suse.de>
> 
> Thanks, applied to rpi-next

I need to revert this from rpi-next again, as it breaks compilation on
aarch64:

  aarch64:  +   rpi_3
+cmd/bmp.c: In function 'gunzip_bmp':
+cmd/bmp.c:60:31: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
+  bmp = (struct bmp_image *)((((unsigned int)dst + 1) & ~3) + 2);
+                               ^
+cmd/bmp.c:60:8: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
+        ^
+cc1: all warnings being treated as errors
+make[2]: *** [cmd/bmp.o] Error 1
+make[1]: *** [cmd] Error 2
+make: *** [sub-make] Error 2

Please fix that cast up and then resubmit this patch again :).


Thanks!

Alex


More information about the U-Boot mailing list