You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inside your dts now triggers the __DEPRECATED_MACRO warning because the dts generation script doesn't prefix alias-based defines with DT_. I doubt this was the intention. This was introduced in
commit 561d6dd with absurdly arbitrary exemptions for #defines that start with LED, SW and PWM_LED.
So the commit should probably be reverted until the dts-alias generation has been fixed so it prefixes its defines with DT_.
The text was updated successfully, but these errors were encountered:
Looks like two different macros get generated for aliases - one with a DT_ prefix.
Check new_alias_prefix in add_prop_aliases() in scripts/dts/extract/globals.py, and commit a7c430f ("scripts: dts: Use DT_ prefix in generated labels").
@galak@ulfalizer As the non-DT_ prefixed macros are being deprecated, is there any plan for generating macro labels that are less hardware specific?
In a prior release I could use an alias to define a macro SERIAL_RS232_LABEL that could translate to either DT_NS16550_SERIAL_RS232_LABEL or DT_ST_STM32_USART_SERIAL_RS232_LABEL depending on which board I was building for. The same code could potentially run unchanged on either. What is the recommended way of achieving this going forward without maintaining multiple configurations per board per application?
Having something like
inside your dts now triggers the
__DEPRECATED_MACRO
warning because the dts generation script doesn't prefix alias-based defines withDT_
. I doubt this was the intention. This was introduced incommit 561d6dd with absurdly arbitrary exemptions for #defines that start with
LED
,SW
andPWM_LED
.So the commit should probably be reverted until the dts-alias generation has been fixed so it prefixes its defines with
DT_
.The text was updated successfully, but these errors were encountered: