-
Notifications
You must be signed in to change notification settings - Fork 3k
Renesas: fix cmsis lib build #5770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/morph build |
Build : FAILUREBuild number : 772 |
cmsis/TARGET_CORTEX_A/irq_ctrl_gic.c
Outdated
@@ -24,8 +24,6 @@ | |||
|
|||
#include <stddef.h> | |||
|
|||
#include <cmsis.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix this, it has real dependency on the target header file (to get gic present macro in), thus I'll look at cmsis build api, and propose a solution)
As this is os tick implementation for rtos, it should not be compilied if rtos not present (mbed 2)
/morph build |
Build : SUCCESSBuild number : 773 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 426 |
Test : SUCCESSBuild number : 609 |
I fixed also VK RZ A1H (added to travis to find all those errors there, so both renesas targets are in travis now, should help us). Waiting for travis, this PR should fix Cortex A mbed 2 errors we have seen. The main change here is cmsis build for mbed 2 (in build_api). cmsis now contains target dependencies in some cases (they include it via RTE components). For instance in our case it was for Cortex A to get GIC presence (see https://github.com/ARMmbed/mbed-os/blob/master/cmsis/TARGET_CORTEX_A/irq_ctrl_gic.c#L31), that one is defined in targets cmsis header file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting
tools/build_travis.py
Outdated
{"target": "RZ_A1H", | ||
"toolchains": "GCC_ARM", | ||
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: extra space
tools/build_travis.py
Outdated
"toolchains": "GCC_ARM", | ||
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: extra space
tools/build_travis.py
Outdated
{"target": "VK_RZ_A1H", | ||
"toolchains": "GCC_ARM", | ||
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once travis finishes I can fix these, I used formatting that was in the file (many of the lines have this).
tools/build_travis.py
Outdated
"toolchains": "GCC_ARM", | ||
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: extra space
Travis: dsp only for cortex-m
Build api used to build cmsis separately (how mbed 2 is being build). This is currently not how cmsis is being defined. As there target dependencies in some cases, we should include paths from targets when building cmsis
Use mbed critical section
Additional updates look good to me. |
As it does not share the codebase with RZ A1H, it needs to be disabled until bring it up to date with the latest changes to cmsis. There are changes regarding caches, mmu and others
/morph build |
Build : SUCCESSBuild number : 774 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 427 |
Test : SUCCESSBuild number : 610 |
device header file not needed in cmsis implementation, thus removed - causing problems to build cmsis lib in mbed 2
another fix is for renesas target code that implements os tick, should only be available if rtos is present
Tested locally with GCC ARM
@ARMmbed/team-renesas please verify this patch