anchao opened a new pull request, #20829:
URL: https://github.com/apache/nuttx/pull/20829

   ## Summary                                                                   
 
                                                                                
 
   cmake/armv8-m: add PACBTI build flags
   
   The Make-based ARMv8-M toolchain configuration already appends the PACBTI
   architecture extension and enables standard branch protection when
   CONFIG_ARM_PACBTI is selected.  The CMake path, however, only handled DSP,
   MVE, FPU and CMSE flags, so CMake builds did not get the same PACBTI code
   generation options.
   
   Add the missing CMake handling for CONFIG_ARM_PACBTI by appending +pacbti to
   the ARMv8-M architecture extension string and passing
   -mbranch-protection=standard to the compiler.  This keeps the CMake and Make
   build paths aligned for Cortex-M85 and other ARMv8-M targets that expose the
   PACBTI capability.
   
   Signed-off-by: chao an <[email protected]>
                    
   ## Changes                                                                   
 
                                                                                
 
   N/A    
                                                                                
 
   ## Rationale                                                                 
 
                                                                                
 
   These are core-level architectural capabilities of Cortex-M85, so declaring  
 
   them at the `ARCH_CORTEXM85` level avoids repeating the same capability      
 
   selection in every Cortex-M85 chip family.                                   
 
                                                                                
 
   This also keeps the Kconfig model consistent with the existing ARM feature   
 
   pattern where CPU/chip capabilities are expressed through `ARM_HAVE_*`       
 
   symbols, and user-facing feature enablement can depend on those symbols.     
 
                                                                                
 
   ## Testing                                                                   
 
   
   ek-ra8m1/nsh


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to