Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Same process as x86_64, but for ARM64 platforms like Jetson or Raspberry Pi.
### macOS ARM64

```bash
export PATH="$PWD/X/arm64/bin:$PATH"
export PATH="$PWD/MacOSX/arm64/bin:$PATH"
mk install
```

Expand Down
1 change: 1 addition & 0 deletions build-linux-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fi

# Set up environment for Linux ARM64
export SYSHOST=Linux
export SYSTARG=Linux
export OBJTYPE=arm64
export PATH="$ROOT/Linux/arm64/bin:$PATH"

Expand Down
23 changes: 23 additions & 0 deletions build-macos-headless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,38 @@

# Set up environment for macOS ARM64
export SYSHOST=MacOSX
export SYSTARG=MacOSX
export OBJTYPE=arm64
export PATH="$ROOT/MacOSX/arm64/bin:$PATH"
export AWK=awk
export SHELLNAME=sh

mkdir -p "$ROOT/MacOSX/arm64/lib"

echo "Building for: SYSHOST=$SYSHOST OBJTYPE=$OBJTYPE"
echo "GUI Backend: headless (no display)"
echo ""

if [[ ! -x "$ROOT/MacOSX/arm64/bin/mk" ]]; then
echo "ERROR: mk not found at $ROOT/MacOSX/arm64/bin/mk"

Check warning on line 30 in build-macos-headless.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Xv4af9OZ5YcwI&open=AZ1W3I9Xv4af9OZ5YcwI&pullRequest=163
exit 1
fi

if [[ ! -x "$ROOT/MacOSX/arm64/bin/limbo" ]]; then
echo "ERROR: native limbo compiler not found at $ROOT/MacOSX/arm64/bin/limbo"

Check warning on line 35 in build-macos-headless.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Xv4af9OZ5YcwJ&open=AZ1W3I9Xv4af9OZ5YcwJ&pullRequest=163
exit 1
fi

echo "=== Building Libraries ==="
for lib in lib9 libbio libmp libsec libmath libfreetype libmemdraw libmemlayer libdraw libinterp libkeyring; do
if [[ -d "$ROOT/$lib" ]]; then
echo " Building $lib..."
(cd "$ROOT/$lib" && mk install) || { echo "ERROR: $lib build failed"; exit 1; }

Check warning on line 43 in build-macos-headless.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Xv4af9OZ5YcwK&open=AZ1W3I9Xv4af9OZ5YcwK&pullRequest=163
fi
done

echo ""

# Build emulator
cd "$ROOT/emu/MacOSX"

Expand Down
23 changes: 23 additions & 0 deletions build-macos-sdl3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,38 @@

# Set up environment for macOS ARM64
export SYSHOST=MacOSX
export SYSTARG=MacOSX
export OBJTYPE=arm64
export PATH="$ROOT/MacOSX/arm64/bin:$PATH"
export AWK=awk
export SHELLNAME=sh

mkdir -p "$ROOT/MacOSX/arm64/lib"

echo "Building for: SYSHOST=$SYSHOST OBJTYPE=$OBJTYPE"
echo "GUI Backend: SDL3"
echo ""

if [[ ! -x "$ROOT/MacOSX/arm64/bin/mk" ]]; then
echo "ERROR: mk not found at $ROOT/MacOSX/arm64/bin/mk"

Check warning on line 54 in build-macos-sdl3.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Fv4af9OZ5YcwF&open=AZ1W3I9Fv4af9OZ5YcwF&pullRequest=163
exit 1
fi

if [[ ! -x "$ROOT/MacOSX/arm64/bin/limbo" ]]; then
echo "ERROR: native limbo compiler not found at $ROOT/MacOSX/arm64/bin/limbo"

Check warning on line 59 in build-macos-sdl3.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Fv4af9OZ5YcwG&open=AZ1W3I9Fv4af9OZ5YcwG&pullRequest=163
exit 1
fi

echo "=== Building Libraries ==="
for lib in lib9 libbio libmp libsec libmath libfreetype libmemdraw libmemlayer libdraw libinterp libkeyring; do
if [[ -d "$ROOT/$lib" ]]; then
echo " Building $lib..."
(cd "$ROOT/$lib" && mk install) || { echo "ERROR: $lib build failed"; exit 1; }

Check warning on line 67 in build-macos-sdl3.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I9Fv4af9OZ5YcwH&open=AZ1W3I9Fv4af9OZ5YcwH&pullRequest=163
fi
done

echo ""

# Stamp build version (matches CI workflow)
BUILD_DATE=$(date +%Y%m%d)
SHORT_SHA=$(git -C "$ROOT" rev-parse --short=8 HEAD 2>/dev/null || echo "local")
Expand Down
1 change: 1 addition & 0 deletions emu/port/portmkfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ devroot.$O: errstr.h
latin1.$O: ../port/latin1.h
netif.$O: ../port/netif.h
devprog.$O: $RUNT
devprof.$O: $RUNT
devsrv.$O: $RUNT
exception.$O: $RUNT
inferno.$O: $RUNT
Expand Down
23 changes: 23 additions & 0 deletions tests/host/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,38 @@

# Set up environment for macOS ARM64
export SYSHOST=MacOSX
export SYSTARG=MacOSX
export OBJTYPE=arm64
export PATH="$ROOT/MacOSX/arm64/bin:$PATH"
export AWK=awk
export SHELLNAME=sh

mkdir -p "$ROOT/MacOSX/arm64/lib"

echo "Building for: SYSHOST=$SYSHOST OBJTYPE=$OBJTYPE"
echo "GUI Backend: headless (no display)"
echo ""

if [ ! -x "$ROOT/MacOSX/arm64/bin/mk" ]; then
echo "ERROR: mk not found at $ROOT/MacOSX/arm64/bin/mk"

Check warning on line 30 in tests/host/build_test.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I5ev4af9OZ5YcwC&open=AZ1W3I5ev4af9OZ5YcwC&pullRequest=163
exit 1
fi

if [ ! -x "$ROOT/MacOSX/arm64/bin/limbo" ]; then
echo "ERROR: native limbo compiler not found at $ROOT/MacOSX/arm64/bin/limbo"

Check warning on line 35 in tests/host/build_test.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I5ev4af9OZ5YcwD&open=AZ1W3I5ev4af9OZ5YcwD&pullRequest=163
exit 1
fi

echo "=== Building Libraries ==="
for lib in lib9 libbio libmp libsec libmath libfreetype libmemdraw libmemlayer libdraw libinterp libkeyring; do
if [ -d "$ROOT/$lib" ]; then
echo " Building $lib..."
(cd "$ROOT/$lib" && mk install) || { echo "ERROR: $lib build failed"; exit 1; }

Check warning on line 43 in tests/host/build_test.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Redirect this error message to stderr (>&2).

See more on https://sonarcloud.io/project/issues?id=NERVsystems_infernode&issues=AZ1W3I5ev4af9OZ5YcwE&open=AZ1W3I5ev4af9OZ5YcwE&pullRequest=163
fi
done

echo ""

# Build emulator
cd "$ROOT/emu/MacOSX"

Expand Down