Prepare Build Environment

You can download and set up pre-built environments by using EnvDeploy with the following commands. Use -v to specify DSM version, -p to specify desired platform, and -t to specify the file location when you stored the toolkit locally on your development machine. If -p is not given, all available platforms for given versions will be set up.


cd /toolkit/pkgscripts/
./EnvDeploy -v 6.0 -p x64 # for example

The working directory will look like the following figure.The chroot environment to build your own projects will be ds.${platform}-${version}. As mentioned before, this toolkit contains some pre-built libraries and headers which can be found under cross gcc sysroot. Sysroot is default search path of compiler. If gcc can not find header or library from path user given, gcc will search sysroot/usr/{lib,include}.

Available Platforms

You can use one of the following commands to show available platforms. If -v is not given, available platforms for all versions will be listed.


./EnvDeploy -v 6.0 --list
./EnvDeploy -v 6.0 --info platform

Update Environment

Use EnvDeploy again to update your environments. For example, you can update x64 for DSM 6.0 by using the following command.


./EnvDeploy -v 6.0 -p x64

Remove Environment

To remove a build environment, you need to apply chroot to the build environment. Unmount the /proc folder and exit chroot. After that, remove the build environment folder. The following commands illustrate how to remove a build environment with version 6.0 and platform x64.


chroot /toolkit/build_env/ds.x64-6.0 umount /proc
rm -rf /toolkit/build_env/ds.x64-6.0