Prepare Makefile, boot.img and recovery.img or recovery.fstab.

1. Using the command "makeconfig" to generate Makefile.
2. Find a original boot.img or cat the boot.img from your own device.
3. Find a useful recovery.img such as the cwm recovery or a correct recovery.fstab.

Note: If you have to modify the boot.img, don't forget to add "vendor_modify_images := boot"
      in the Makefile.
make newproject for the base device with the command "make newproject".

Connect your device and PC with an USB cable.
And also, make sure you have root permission for your device.
make patchall for the base device with the command "make patchall".

Note: The command "make patchall" can auto-patch files according to the aosp and bosp
      in the autopatch folder in your device directory, please wait a moment.
add aosp folder for patchall quickly.