Skip to content

Build H2 with Picolibc#10

Open
quic-k wants to merge 1 commit intomasterfrom
build-with-pico
Open

Build H2 with Picolibc#10
quic-k wants to merge 1 commit intomasterfrom
build-with-pico

Conversation

@quic-k
Copy link
Copy Markdown
Contributor

@quic-k quic-k commented Apr 20, 2026

No description provided.

Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
Copy link
Copy Markdown

@colmode colmode left a comment

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Contributor Author

@quic-k quic-k May 5, 2026

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"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)

Copy link
Copy Markdown
Contributor Author

@quic-k quic-k May 5, 2026

Choose a reason for hiding this comment

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

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?

@quic-k
Copy link
Copy Markdown
Contributor Author

quic-k commented May 5, 2026

Looks good overall, but we might want to merge this after erich's makefile changes rather than the other way around.

thanks for the review, ping me whenever that is merged, I will have to resolve merge conflicts

Also, we don't yet have a way to run unit tests with pico since those tools aren't on github. Best to run make testall locally and then comment here when it passes.

sure, so far I have built H2 successfully and used the install artifacts to run Picolibc testsuite which passes
will look into getting H2 unit tests working with Picolibc

@bryanb-h2
Copy link
Copy Markdown
Contributor

Looks good overall, but we might want to merge this after erich's makefile changes rather than the other way around.

Hey, look; our first comment from a non-qc account :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants