Build H2 with Picolibc#10
Conversation
Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
colmode
left a comment
There was a problem hiding this comment.
Looks good overall, but we might want to merge this after erich's makefile changes rather than the other way around.
| r1 = #__boot_net_phys_offset__ | ||
| memw(r1) = r0 | ||
| jump _start // picolibc CRT entry (replaces hexagon_pre_main) | ||
|
|
There was a problem hiding this comment.
we can, but since we are not including any C header, we don't have __PICOLIBC__
so for simplicity I created 2 files
maybe I will have to use the PICOLIBC=1 flag to define a macro, which we can use
or do you have something else in mind?
There was a problem hiding this comment.
"PICOLIBC=1 flag to define a macro", yes. But since this is all transitional and we'll eventually use only pico I think that leaving it as is would be fine.
| r1 = #__boot_net_phys_offset__ | ||
| memw(r1) = r0 | ||
| jump _start // picolibc CRT entry (replaces hexagon_pre_main) | ||
|
|
There was a problem hiding this comment.
we can, but since we are not including any C header, we don't have __PICOLIBC__
so for simplicity I created 2 files
maybe I will have to use the PICOLIBC=1 flag to define a macro, which we can use
or do you have something else in mind?
thanks for the review, ping me whenever that is merged, I will have to resolve merge conflicts
sure, so far I have built H2 successfully and used the install artifacts to run Picolibc testsuite which passes |
Hey, look; our first comment from a non-qc account :) |
|
why is |
Because most of the unit tests run with standalone with a test harness for testing only one function -- avoids booting the kernel to simplify debug. We need a substitute for standalone but we haven't addressed this yet. The unit tests don't even use features of standalone. Using the default dinkum build is just a convenient way to link with crt0 and get to main(). We actually have a min_crt0 in the h2 repo. Just need to dust that off and change how we link unit tests. Here it is, entirely: /*
.global _start#_start: jump starthexagon_pre_main: jump startstack: |
yeah, for debugging that is better, but booter tests would have been easier for me to get passing
is this planned to be done soon? or am I supposed to do this in this PR? maybe I could but this sounds like lot of debugging |
Not unless you're really keen to do it. I just filed QDSP-57392 for this. |
No description provided.