If you are using the image 159.devkit you will only need to upgrade the CMake version, for this you need to modify the /etc/opkg/iotkit.conf file with the following lines:
src/gz all-dev http://iotdk.intel.com/repos/3.0/iotdk/all
src/gz core2-32-dev http://iotdk.intel.com/repos/3.0/iotdk/core2-32
src/gz core2-32-intel-common http://iotdk.intel.com/repos/3.0/iotdk/core2-32-intel-common
Then, run the command opkg update && opkg install cmake
Once you have installed cmake, you can install git and download the files for tinyB in order to continue with the installation.
opkg install git
I hope this helps