aboutsummaryrefslogtreecommitdiff
path: root/hb/readme.md
blob: 365d61c7035c47449ea7815cf88941fa36fc4b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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