AnsweredAssumed Answered

u-boot-fslc build fails when adding CONFIG_ENV_IS_IN_SPI_FLASH (undefined sized types)

Question asked by joerutledge on Oct 28, 2015
Latest reply on Apr 6, 2017 by Mathieu A.-Tetreault

I'm currently trying to change u-boot-fslc (2014-10) to store its environment in SPI flash on my iMX6 platform. Strangely defining the macro to indicate this immediately causes a working u-boot build to suddenly fail to compile.

 

After defining:

 

CONFIG_ENV_IS_IN_SPI_FLASH

 

The compile shows that all sized types are now undefined:

 

tmp/work/ph069_qx-poky-linux-gnueabi/u-boot-fslc/v2014.10+gitAUTOINC+5fd0b607d0-r0/git/include/ide.h:77:14: error: unknown type name 'uchar'

|  void ide_led(uchar led, uchar status);

 

and many others, u8, u16, BIT_MASK etc. are now all undefined.

 

Does anyone know why this is or what I must do to correct it?!

 

Thanks!

Outcomes