In order to build and install Yocto for SMA-IMX6, I  created a folder  and then ran sudo apt-get install git.I could not download the source code directly, so I first downloaded the kernel linux-imx6-imx_3.14.28_1.0.0_ga-bcm,then  downloaded  the patch  file REV-SA01-KERNEL-PATCH-3.14.28-1.0.0.After that, I tried to  apply the  patch to the kernel:$ git am ../REV-SA01-KERNEL-PATCH-3.14.28-1.0.0/*.patchBut I got this error:fatal: Not a git repository (or any of the parent directories): .gitHow can I solve  this? Is there any other method to patch?
fatal: Not a git repository?
git;patch;yocto