Skip to content

Commit edd3db2

Browse files
committed
Fix bootstrap verification shell error
The bootstrap target was failing with '/bin/sh: @env: not found' because the original implementation used complex shell conditionals that could cause @ to be interpreted as a shell command. Changes: - Replace 'diff -q' with 'cmp -s' for reliable binary comparison - Restructure conditional to test for success rather than failure - Use plain echo for messages to avoid macro expansion issues - Add explicit success/error messages for clarity
1 parent f265042 commit edd3db2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,11 @@ $(OUT)/$(STAGE2): $(OUT)/$(STAGE1)
152152

153153
bootstrap: $(OUT)/$(STAGE2)
154154
$(Q)chmod 775 $(OUT)/$(STAGE2)
155-
$(Q)if ! diff -q $(OUT)/$(STAGE1) $(OUT)/$(STAGE2); then \
156-
echo "Unable to bootstrap. Aborting"; false; \
155+
$(Q)if cmp -s $(OUT)/$(STAGE1) $(OUT)/$(STAGE2); then \
156+
echo "Bootstrap successful: Stage 1 and Stage 2 are identical"; \
157+
else \
158+
echo "ERROR: Bootstrap failed - Stage 1 and Stage 2 differ"; \
159+
exit 1; \
157160
fi
158161

159162
$(BUILD_SESSION):

0 commit comments

Comments
 (0)