Skip to content
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

flash extra.json manifest #165

Closed
wants to merge 44 commits into from
Closed

flash extra.json manifest #165

wants to merge 44 commits into from

Conversation

incognitojam
Copy link
Contributor

@incognitojam incognitojam commented Aug 11, 2023

No description provided.

@incognitojam incognitojam added the enhancement New feature or request label Aug 11, 2023
@incognitojam incognitojam changed the title optimized system image flash extra.json manifest Aug 14, 2023
@incognitojam incognitojam marked this pull request as ready for review August 16, 2023 22:37
Copy link
Contributor

@adeebshihadeh adeebshihadeh left a comment

Choose a reason for hiding this comment

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

Where does the extra manifest live? This should have no impact on the current AGNOS release flow, and it should all just work. Took a stab at simplifying this in #170; I think that'll work with openpilot's updater (and it's a big red diff!)

local SPARSE=$(cat $EXTRA_JSON | jq -r ".[] | select(.name == \"$NAME\") | .sparse")

if [ "$SPARSE" == "true" ]; then
upload_file "$NAME-$HASH_RAW-optimized.img.gz"
Copy link
Contributor

Choose a reason for hiding this comment

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

optimized is kind of a misnomer here - it's just "special". maybe call it "skipped-chunks"

EXTRA_JSON="$OTA_OUTPUT_DIR/extra.json"
EXTRA_STAGING_JSON="$OTA_OUTPUT_DIR/extra-staging.json"

process_file() {
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this file has a ton of duplication

@incognitojam incognitojam marked this pull request as draft August 18, 2023 23:38
@incognitojam incognitojam deleted the agnos-extra branch August 21, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants