-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add subfamilly distinction to ARMV7M family #269
Conversation
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.
Idea (for now or for the future): maybe it's worth to make it a phoenix-rtos-build
feature (with sensible prefix - like CPU_*, TARGET_* or something similar) - I see it's a third / fourth place it's being done in sub-component so maybe we can refactor it? (phoenix-rtos-devices/_targets/Makefile.armv7m7-imxrt106x
, plo/devices/flash-flexspi/Makefile
, phoenix-rtos-filesystems/_targets/Makefile.armv7m7-imxrt106x
- and phoenix-rtos-build/Makefile.armv7m
but enabled just for kernel?)
The availability of TARGET_* from phoenix-rtos-build sounds best to me. I'll try to implement this modification in phoenix-rtos-build right away. Update: added PR phoenix-rtos/phoenix-rtos-build#145 and changed this one to depend on the mentioned PR. |
Fixes the availability of proper pctl definitions for the subfamily the project will be built for. JIRA: NIL-436
Description
On
armv7m
, the main development is focused on two i.MX RT processorsubfamilies
, i.e.IMXRT10XX
,IMXRT1176
, and STSTM32L4
.There are differences in the set of header files due to differences in functionality. This requires a way to distinguish at the build stage from which subfamily to assign the appropriate header file with platform definitions. This change adds such distinction to Makefile and CFLAGS.
Motivation and Context
Fixes included wrong header file if
libphoenix
is built to target imxrt1176.Types of changes
How Has This Been Tested?
Checklist:
Special treatment
Add globally defined
__TARGET
and__CPU
tophoenix-rtos-build
phoenix-rtos-build#145