1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-19 21:43:29 +01:00
Atmosphere/docs/building.md

33 lines
2 KiB
Markdown
Raw Permalink Normal View History

# Building Atmosphère
Building Atmosphère is a very straightforward process that relies almost exclusively on tools provided by the [devkitPro](https://devkitpro.org) organization.
## Dependencies
+ [devkitA64](https://devkitpro.org)
+ [devkitARM](https://devkitpro.org)
2020-10-10 01:37:51 +01:00
+ [Python 2](https://www.python.org) (Python 3 may work as well, but this is not guaranteed)
+ [LZ4](https://pypi.org/project/lz4)
2020-04-27 18:40:22 +01:00
+ [PyCryptodome](https://pypi.org/project/pycryptodome) (optional)
## Instructions
2020-04-27 18:40:22 +01:00
1. Follow the guide located [here](https://devkitpro.org/wiki/Getting_Started) to install and configure all the tools necessary for the build process.
2020-04-27 18:40:22 +01:00
2. Install the following packages via (dkp-)pacman:
2020-04-27 18:52:53 +01:00
+ `switch-dev`
+ `switch-glm`
2020-04-27 18:52:53 +01:00
+ `switch-libjpeg-turbo`
+ `devkitARM`
+ `devkitarm-rules`
3. Install the following library via python's package manager `pip`, required by [exosphere](components/exosphere.md):
+ `lz4`
4. (Optional) In order to build [sept](components/sept.md) the pycryptodome PyPi package is required, which can be installed by running `pip install pycryptodome` under the installed Python environment of your choice or by installing the complete zip package to support the `make dist` recipe. This is an optional step included for advanced users who have the ability to provide the necessary encryption/signing keys themselves.
5. It is, instead, possible to build [sept](components/sept.md) by providing previously encrypted/signed binaries distributed by official Atmosphère release packages. In order to do so, export the following variables in your current environment:
2020-04-27 18:52:53 +01:00
+ `SEPT_00_ENC_PATH` (must point to the `sept-secondary_00.enc` file)
+ `SEPT_01_ENC_PATH` (must point to the `sept-secondary_01.enc` file)
+ `SEPT_DEV_00_ENC_PATH` (must point to the `sept-secondary_dev_00.enc` file)
+ `SEPT_DEV_01_ENC_PATH` (must point to the `sept-secondary_dev_01.enc` file)
2020-04-27 18:40:22 +01:00
6. Finally, clone the Atmosphère repository and run `make` under its root directory.