-
Notifications
You must be signed in to change notification settings - Fork 8.1k
soc: bflb: Fix cache code relocation #97631
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
base: main
Are you sure you want to change the base?
Conversation
The location of the cache code file was changed, update it here Signed-off-by: Camille BAUD <[email protected]>
|
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.
Related PR:
Before the current PR:
-- Zephyr version: 4.2.99 (/home/bouffalo/zephyrproject/zephyr), build: v4.2.0-5828-g7c82c06159c3
[122/132] Generating code_relocation.c, include/generated/linker_relocate.ld
/home/bouffalo/zephyrproject/zephyr/scripts/build/gen_relocate_app.py:662: UserWarning: File: /home/bouffalo/zephyrproject/zephyr/arch/riscv/core/xuantie/cache_xtheadcmo.c Not found
rel_dict, phdrs = create_dict_wrt_mem()
[132/132] Linking C executable zephyr/zephyr.elf
After:
-- Zephyr version: 4.2.99 (/home/bouffalo/zephyrproject/zephyr), build: v4.2.0-5829-g2b345440efeb
[132/132] Linking C executable zephyr/zephyr.elf
btw if anyone knows how to make that message a error it would be great, that relocation is critical for some functionalities not yet upstreamed but that should be at some point. |
As it uses the python warnings module, it's possible to turn a warning into an error. PYTHONWARNINGS=error:::__main__ west build -p -b ai_m62_12f samples/hello_world
I still need to figure out where to insert the environment variable. Otherwise, also possible to make that particular warning trigger an error by changing it there: zephyr/scripts/build/gen_relocate_app.py Lines 626 to 627 in 7c82c06
|
The location of the cache code file was changed, update it here