1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00
Gilles DOFFE e1b2d5c9df tests/cryptoauthlib: blacklist native boards
Native boards fail to link due to an upstream bug in cryptoauthlib's
test infrastructure. The file build/pkg/cryptoauthlib/test/cmd-processor.c
has incorrect conditional compilation logic:

    #if defined(_WIN32) || defined(__linux__) || defined(__APPLE__)
        int main(int argc, char* argv[]) { ... }
    #elif defined(RIOT_APPLICATION)
        int atca_run_cmd(char *command, size_t len) { ... }
    #endif

On native boards, __linux__ is defined, so the code compiles a main()
function instead of atca_run_cmd(). This conflicts with RIOT's main()
and causes linker errors:

    - multiple definition of 'main'
    - undefined reference to 'atca_run_cmd'

On ARM boards, none of these platform macros are defined, so the code
correctly falls through to the RIOT_APPLICATION branch and compiles
atca_run_cmd() instead.

The fix would require patching cryptoauthlib to check RIOT_APPLICATION
before checking platform macros, or reporting this upstream to Microchip.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2025-10-30 23:51:31 +01:00
..
2025-01-22 16:01:42 +01:00
2025-04-16 15:25:38 +02:00
2024-02-05 00:45:42 +01:00
2025-04-16 15:25:38 +02:00