Skip to content

Conversation

@queueRAM
Copy link
Contributor

@queueRAM queueRAM commented Jan 2, 2026

Tweak Makefile to support building on macOS host

  • support BSD sha1sum which supports GNU compatibility, but requires - to read from stdin
  • prefer building data with XGCC, but fall back on IDO if not available

Copy link
Contributor Author

@queueRAM queueRAM left a comment

Choose a reason for hiding this comment

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

i broke up the PRs by problem category to make them more easily reviewable and focused in case a future revert is needed.

Makefile Outdated

verify: $(TARGET).z64
@echo "$$(cat $(BASENAME).$(VERSION).sha1) $(TARGET).z64" | sha1sum --check
@echo "$$(cat $(BASENAME).$(VERSION).sha1) $(TARGET).z64" | sha1sum --check -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

could also use $< instead of $(TARGET).z64

XGCC = $(CROSS)gcc

# prefer modern gcc for data, but fall back to IDO if not available
ifneq (,$(call find-command,$(CROSS)gcc))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this macro depends on #120

@queueRAM queueRAM force-pushed the support_macos_host branch from 367f4ff to c641b79 Compare January 4, 2026 10:31

### Recipes

.baserom.$(VERSION).ok: baserom.$(VERSION).z64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

per discussion in Discord, splat has built-in sha1 checks, so this Makefile-level check appears redundant. open to further feedback here

Tweak Makefile to support building on macOS host
- splat has built-in sha1 checks during extract, so remove check and .ok targets
- properly format sha1 file for build check to support GNU and BSD sha1sum
- prefer building data with XGCC, but fall back on IDO if not available
@queueRAM queueRAM force-pushed the support_macos_host branch from c641b79 to fd7c78c Compare January 4, 2026 10:37
@mkst mkst merged commit 6d05162 into mkst:master Jan 4, 2026
3 checks passed
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.

2 participants