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

BUGFIX: targets/split_8mb4mb.mk Makefile: Make sure top/bottom/rom hash+size are always outputted in console+hashes.txt+sizes.txt #1834

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

tlaurion
Copy link
Collaborator

@tlaurion tlaurion commented Nov 4, 2024

fix #1534

@tlaurion
Copy link
Collaborator Author

tlaurion commented Nov 4, 2024

@JonathonHall-Purism : better approach with your Make fu?

@tlaurion tlaurion force-pushed the fix_target-split_8mb4mb_mk branch from 92b99dc to 9e3f0fe Compare November 4, 2024 16:48
…sh+size are always outputted in console+hashes.txt+sizes.txt

Signed-off-by: Thierry Laurion <[email protected]>
@tlaurion tlaurion force-pushed the fix_target-split_8mb4mb_mk branch from 9e3f0fe to a0c3d8e Compare November 4, 2024 17:01
@tlaurion tlaurion marked this pull request as draft November 4, 2024 17:02
@tlaurion tlaurion marked this pull request as ready for review November 4, 2024 17:03
@tlaurion
Copy link
Collaborator Author

tlaurion commented Nov 4, 2024

@JonathonHall-Purism punched an exclusion in global Makefile in case not spllitted 12mb rom image. Best I could imagine!

Works locally (tested nv41/t430 to address #1829 (comment) which revived need to fix #1534 for pending feature freeze/bugfixes)

$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
@sha256sum $@ | tee -a "$(HASHES)"
bottom: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want, you could make a variable that holds $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION) because that's so long and repeated so many times, e.g. BUILD_ROM_PREFIX=$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION). But not required at all, I'd be happy merging as-is.

Copy link
Collaborator

@JonathonHall-Purism JonathonHall-Purism 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 to me! I did make one suggestion but not a requirement by any means, just a thought. I'd be happy to merge it as-is.

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

Successfully merging this pull request may close these issues.

hashes.txt contains no hash for the 12M rom
2 participants