This is a container-based development environment intended for compiling SPK packages for Synology devices.
The environment is managed using Docker and Docker Compose (see docker-compose.yml
).
There are also several helper commands defined in the Makefile
.
Start the Docker development container environment:
make dev
Initialize a terminal session within the container:
make shell
Clone the Synology development tools:
git clone https://github.com/SynologyOpenSource/pkgscripts-ng.git /data/toolkit/pkgscripts-ng
ℹ️ You will need to know the architecture of your Synology device. Refer to the Synology documentation to find yours.
Deploy the development environment for your target DSM version and device architecture:
# Move to the developer tools directory
cd /data/toolkit/pkgscripts-ng
# Checkout the version tag for your target DSM version
git checkout DSM7.2
# Optionally, see the available target architectures for your target DSM version
/data/toolkit/pkgscripts-ng/EnvDeploy -v 7.2 -l
# Deploy the target architecture for your target DSM version
# (this will take some time - if it fails, try running again)
/data/toolkit/pkgscripts-ng/EnvDeploy -v 7.2 -p apollolake
I have included an example for building vim
.
Refer to the Synology documentation for more on building packages.