Skip to content

Commit 413703b

Browse files
committed
Aded mipsel support to YABB
1 parent 9743690 commit 413703b

File tree

11 files changed

+46
-41
lines changed

11 files changed

+46
-41
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
# SPDX-License-Identifier: 0BSD
22
# Copyright (c) 2023-2026 Aryan Ameri
33
#
4-
# This Source Code Form is subject to the terms of the Mozilla Public
5-
# License, v. 2.0. If a copy of the MPL was not distributed with this
6-
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
7-
#
84
# =============================================================================
95
# YABB Development Container
106
# Nim development environment with Zig cross-compilation support

.devcontainer/p10k.zsh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
# SPDX-License-Identifier: 0BSD
22
# Copyright (c) 2023-2026 Aryan Ameri
33
#
4-
# This Source Code Form is subject to the terms of the Mozilla Public
5-
# License, v. 2.0. If a copy of the MPL was not distributed with this
6-
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
7-
#
84
# Powerlevel10k Lean ASCII Configuration
95

106
'builtin' 'local' '-a' 'p10k_config_opts'

.devcontainer/post-create.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#!/bin/env bash
2-
# SPDX-License-Identifier: MPL-2.0
2+
# SPDX-License-Identifier: 0BSD
33
# Copyright (c) 2023-2026 Aryan Ameri
44
#
5-
# This Source Code Form is subject to the terms of the Mozilla Public
6-
# License, v. 2.0. If a copy of the MPL was not distributed with this
7-
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
8-
#
95
set -e
106

117
echo "========================================"

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
# SPDX-License-Identifier: 0BSD
22
# Copyright (c) 2023-2026 Aryan Ameri
33
#
4-
# This Source Code Form is subject to the terms of the Mozilla Public
5-
# License, v. 2.0. If a copy of the MPL was not distributed with this
6-
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
7-
#
84
# =============================================================================
95
# YABB CI Workflow
106
# Runs format check, lint, and tests on every push and PR

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
# SPDX-License-Identifier: 0BSD
22
# Copyright (c) 2023-2026 Aryan Ameri
33
#
4-
# This Source Code Form is subject to the terms of the Mozilla Public
5-
# License, v. 2.0. If a copy of the MPL was not distributed with this
6-
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
7-
#
84
# =============================================================================
95
# YABB Release Workflow
106
# Cross-compiles static binaries for all architectures
@@ -136,6 +132,11 @@ jobs:
136132
nimcpu: "--cpu:mips64"
137133
march: "-mcpu=mips64r2"
138134
toolchain: zig
135+
- arch: mipsel
136+
target: mipsel-linux-musleabihf
137+
nimcpu: "--cpu:mips"
138+
march: "-mcpu=mips32r2"
139+
toolchain: zig
139140
- arch: armv5l
140141
nimcpu: "--cpu:arm"
141142
toolchain: bootlin

Install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Installation Guide
77
REQUIREMENTS
88
------------
99
- Linux with BTRFS filesystems (source and destination must both be BTRFS)
10-
- Supported architectures: x86_64, aarch64, armv7l, armv5l, riscv64, ppc64le, loongarch64, mips64el
10+
- Supported architectures: x86_64, aarch64, armv7l, armv5l, riscv64, ppc64le, loongarch64, mips64el, mipsel
1111
- Root access (sudo) for backup operations
1212
- Bash 5.2 or newer (for automatic installer)
1313
- btrfs-progs 5.14 or newer

LICENSE-DEVOPS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Copyright (C) 2026 by Aryan Ameri public@ameri.coffee
2+
3+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,13 @@ I'm publishing this because it works for me, not because of how it was written.
220220

221221
Copyright 2023-2026 Aryan Ameri. All rights reserved.
222222

223-
This project uses two licenses:
223+
This project uses three licenses:
224224

225-
- **Code** (all files except those in `/docs` and `*.md` and `*.txt` files):
225+
- **Application Code** (all files except those in `/.devcontainer`, `/.github`, `/docs` and `*.md` and `*.txt` files):
226226
[Mozilla Public License 2.0](LICENSE)
227227

228-
- **Documentation** (contents of `/docs` directory and all `*.md` and `*.txt` files):
228+
- **DevOps Code** (all files in `/.devcontainer`, `/.github`):
229+
[BSD Zero Clause License](LICENSE-DEVOPS)
230+
231+
- **Documentation** (contents of `/docs` and all `*.md` and `*.txt` files):
229232
[Creative Commons Attribution 4.0 International](LICENSE-DOCS)

justfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ release: && _clean-cache
160160
ppc64le) nimble releasePpc64le && cp bin/yabb-linux-ppc64le bin/yabb ;;
161161
loongarch64) nimble releaseLoong64 && cp bin/yabb-linux-loong64 bin/yabb ;;
162162
mips64el) nimble releaseMips64el && cp bin/yabb-linux-mips64el bin/yabb ;;
163+
mipsel) nimble releaseMipsel && cp bin/yabb-linux-mipsel bin/yabb ;;
163164
*) echo "Unsupported architecture: $ARCH" && exit 1 ;;
164165
esac
165166
echo "Release build: bin/yabb (musl static, optimised, stripped)"
@@ -217,9 +218,14 @@ build-mips64el:
217218
@echo "Cross-compiling for MIPS64EL..."
218219
nimble releaseMips64el
219220

221+
# Build for MIPS32 LE Linux (static musl, o32 ABI, hard-float - ALT Linux mipsel)
222+
build-mipsel:
223+
@echo "Cross-compiling for MIPS32EL (ALT Linux mipsel)..."
224+
nimble releaseMipsel
225+
220226
# Release binaries for all Linux architectures
221227
# Note: armv5l is CI-only (Bootlin toolchain not available locally)
222-
release-all: build-amd64 build-arm64 build-armv7l build-riscv64 build-ppc64le build-loong64 build-mips64el
228+
release-all: build-amd64 build-arm64 build-armv7l build-riscv64 build-ppc64le build-loong64 build-mips64el build-mipsel
223229
@echo ""
224230
@echo "All architectures built (armv5l is CI-only):"
225231
@ls -lh bin/yabb-linux-* 2>/dev/null || echo "No binaries found"

scripts/setup-yabb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ declare -rA ARCH_MAP=(
172172
[ppc64le]="ppc64le"
173173
[loongarch64]="loong64"
174174
[mips64el]="mips64el"
175+
[mipsel]="mipsel"
175176
)
176177

177178
#-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)