Re: [PATCH for-6.1 4/4] configure: Poison all current target-specific #defines

2021-04-15 Thread Thomas Huth
On 15/04/2021 10.34, Philippe Mathieu-Daudé wrote: +Richard/Claudio On 4/14/21 1:20 PM, Thomas Huth wrote: We are generating a lot of target-specific defines in the *-config-devices.h and *-config-target.h files. Using them in common code is wrong and leads to very subtle bugs since a "#ifdef C

Re: [PATCH for-6.1 4/4] configure: Poison all current target-specific #defines

2021-04-15 Thread Philippe Mathieu-Daudé
+Richard/Claudio On 4/14/21 1:20 PM, Thomas Huth wrote: > We are generating a lot of target-specific defines in the *-config-devices.h > and *-config-target.h files. Using them in common code is wrong and leads > to very subtle bugs since a "#ifdef CONFIG_SOMETHING" is not working there > as expec

[PATCH for-6.1 4/4] configure: Poison all current target-specific #defines

2021-04-14 Thread Thomas Huth
We are generating a lot of target-specific defines in the *-config-devices.h and *-config-target.h files. Using them in common code is wrong and leads to very subtle bugs since a "#ifdef CONFIG_SOMETHING" is not working there as expected. To avoid these issues, we are already poisoning many of the