Building kernel from source

You’ll need a minimum of 16GB to be able to build kernel or Kodi packages, you’re very likely to run out of space with 8GB especially if this same install is actively being used as a mediacenter.