aboutsummaryrefslogtreecommitdiff
path: root/hb
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-04 23:55:09 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-04 23:55:09 +0200
commit2128ad182721b25ec349afd8dbe124d68f8aaee3 (patch)
treea7747c88c6e0222e4acf816f3834142804e9b72b /hb
parent6017481d736fd3ae7aa8b1055913e873c0d514c6 (diff)
add WIP TGDS setup notes
Diffstat (limited to 'hb')
-rw-r--r--hb/readme.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/hb/readme.md b/hb/readme.md
new file mode 100644
index 0000000..365d61c
--- /dev/null
+++ b/hb/readme.md
@@ -0,0 +1,33 @@
+# homebrew
+
+homebrew pictochat client WIP
+
+This project uses [TGDS][toolchaingenericds]
+
+
+## toolchain notes
+
+Setting up the toolchain was not straightforward :(
+
+- The provided readme\.md files are not properly formatted as markdown, and I
+ recommend you open them in a text editor/raw view instead of previewing them
+ on GitLab/GitHub.
+- To fix [newlib-nds][newlib-nds] not building (required for building
+ `toolchaingenericds`)
+ - First run `make` in the `newlib-nds` folder (inside the `newlib-nds`
+ repository)
+ - `cd` into the `temp/Coto88-toolchaingenericds-utils-*` folder
+ - Manually specify the target `libz.a` in the recursive `make` call inside
+ the `installzlib` target (i.e. append `libz.a` to the end of the line
+ containing `$(MAKE)` under `installzlib:`)
+ - Manually add a declaration for `crc32_z` at the top of `minizip.c`:
+ ```c
+ unsigned long crc32_z(unsigned long, const unsigned char *, unsigned long long);
+ ```
+ - Run `make` inside this folder (this will automatically install the
+ `toolchaingenericds-utils` binary under `/usr/arm-none-eabi/bin`)
+
+
+[toolchaingenericds]: https://bitbucket.org/Coto88/toolchaingenericds
+[newlib-nds]: https://bitbucket.org/Coto88/newlib-nds
+