Skip to content

Conversation

@ntavish
Copy link
Contributor

@ntavish ntavish commented May 31, 2024

This PR is related to zephyrproject-rtos/sdk-ng#765

Copy link
Contributor

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok, but some small clarification is needed as this doesn't seem to really add support for big endian on v7-r.

Also this help text needs an update, as it doesn't include the flags on the compiler.

zephyr/arch/Kconfig

Lines 183 to 184 in 2457f73

modifying it. The option is used to select linker script OUTPUT_FORMAT
and command line option for gen_isr_tables.py.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently BIG_ENDIAN is a promptless symbol, meaning it depends on something having a select BIG_ENDIAN (or a change of default).

Currently the arch for which that is done is SPARC:

config SPARC

select BIG_ENDIAN

so how is this expected to be selected for arm v7-r and thus selecting this code path ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be no board with such a combination, but I am working on porting zephyr to TI TMS570. Seems like a couple more people have out of tree support for these, see: #72696

Since SPARC toolchain is simply big-endian only, these flags not being passed to it may not matter, so we do not see problem (I think).

@ntavish ntavish force-pushed the fix/enable-armv7-r-big-endian-multilib branch from d8d4a87 to 74bfdf3 Compare July 20, 2024 09:44
@zephyrbot zephyrbot requested a review from dcpleung July 20, 2024 09:44
Set -big-endian to both compiler and linker flags if
CONFIG_BIG_ENDIAN is set.

Signed-off-by: Tavish Naruka <[email protected]>
@ntavish
Copy link
Contributor Author

ntavish commented Jul 20, 2024

@tejlmand sorry for the delay, made the changes you have requested for zephyr/arch/Kconfig.

@ntavish ntavish requested a review from tejlmand July 21, 2024 06:28
@tejlmand
Copy link
Contributor

tejlmand commented Aug 7, 2024

@tejlmand sorry for the delay, made the changes you have requested for zephyr/arch/Kconfig.

Sorry, but I don't see any reply to this comment: #73563 (comment)

@ntavish
Copy link
Contributor Author

ntavish commented Aug 8, 2024

Sorry, but I don't see any reply to this comment: #73563 (comment)

Oops, it was still 'pending', should be visible now.

@nashif nashif merged commit b1af192 into zephyrproject-rtos:main Sep 19, 2024
@ntavish ntavish deleted the fix/enable-armv7-r-big-endian-multilib branch September 26, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants