cd to driver souce code make file directory:
kernel/drivers/XXX/
make -C $ANDROID_PRODUCT_OUT/obj/KERNEL_OBJ/ M=`pwd` ARCH=arm CROSS_COMPILE=arm-eabi- modules
make -C /home/user_name/XXX/XXX/out/target/product/xxx/obj/KERNEL/ M=`pwd` ARCH=arm CROSS_COMPILE=arm-eabi- modules