-
Notifications
You must be signed in to change notification settings - Fork 26
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
Simplify VFS initialization #569
Conversation
components/apps/Cargo.toml
Outdated
@@ -23,7 +23,7 @@ littlefs2-core = "0.1" | |||
# Backends | |||
trussed-auth = { version = "0.3.0", optional = true } | |||
trussed-rsa-alloc = { version = "0.2.0", optional = true } | |||
trussed-se050-backend = { version = "0.3.6", optional = true } | |||
trussed-se050-backend = { version = "0.3.6", optional = true, features = ["log-all"] } |
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.
probably debugging artifact?
components/boards/src/store.rs
Outdated
static mut VOLATILE_STORAGE: VolatileStorage = VolatileStorage { | ||
buf: [0; 8192], | ||
}; |
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.
Why not VolatileStorage::new()
?
66234d6
to
12e47f8
Compare
12e47f8
to
f6f29c3
Compare
No significant changes. Insignifcant changes
|
Note sure what causes the binary size change. I cannot reproduce it locally. |
I do not understand the size increase. On the opposite I would have expected a size decrease. |
My first guess was that maybe the build environment changed and caused the size change, but running the CI for a no-op PR like #240 does not cause a size difference. |
I can reproduce the size change locally. My first thought was a missing rebase but it's not that. |
I only checked the output of |
f6f29c3
to
8432401
Compare
Yes it looks like it was that. It's including the full zeros of the static? That's not good. As a result using |
8ce06fa
to
3353bf4
Compare
mmmh, falsely approved although the build fails - can't check it from here |
This simplifies slightly the implementation and saves firwmare bytes as the zero values do not need to be included in the binary
3353bf4
to
e8c0603
Compare
Can be improved further once trussed-dev/littlefs2#87 is merged.