Note: lists.zephyrproject.org will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.
I'm trying to compile test/drivers/eeprom for my board. I see that the
code requires the alias 'eeprom_0' defined, but my board does not have
I managed to compile changing in the test app some lines like below:
- eeprom = device_get_binding(DT_LABEL(DT_ALIAS(eeprom_0)));
+ eeprom = device_get_binding(DT_LABEL(DT_NODELABEL(eeprom0)));
where eeprom0 is defined in an overlay for my boards.
But I'd prefer to use the alias and not change the app.
What is the right way to override an alias in an overlay file? Sorry
if my question is already addressed somewhere in documentation.
Another consideration: is 'eeprom_0' a valid name? Alias properties
should include only characters from [0-9a-z-]. May we need to fix it?