[register_driver]
1. Improve makefile to fix license problem
2. Added file function for driver