1. transplanted a new GPS system will first need to remove the default GPS module, check whether the system generates a dynamic link library gps.default.so, generally OUT / target / Product / RK3288 / System / lib / hw / below ( the specific location depends on the source you use, generally in the system / lib / down), if so, remove it, including other relevant documents, and modify it to compile Android.mk prohibited.
2. The closed first copy the source code to hardware / libhardware / modules / gps / lower.
3. Modify Android.mk hardware / libhardware / modules / under.
4. Configure gps_cfg.inf, GPS setting types, interfaces, baud rate and the like.
5. gps_cfg.inf we want to copy the packaged system / etc / under: Add Android.mk gps / under the
$ (shell cp $ (LOCAL_PATH) /gps_cfg.inf $ (TARGET_OUT) / etc /) (This is done using shell commands Android.mk in, do so in the case of the source code has been translated well, there is no problem, because $ (TARGET_OUT) / etc directory already exists, but is not Copy as new compiler, so that the android had to follow the mechanism provided by the operating system compiled in the android, it is limited technology, using PRODUCT_COPY_FILES did not succeed, if there are good ways great God, seeking advice).
6. Use mmm compiler
Before using mmm command you need to run build / envsetup.sh script file
source ./build/envsetup.sh
Then use the command to compile mmm
mmm ./hardware/libhadwate/modules/gps/
This time you can put system.img downloaded to our board for testing, to ensure that there gps.default.so and gps_cfg.inf system on board the up / down
The above procedure are debugging in Android4.4 linux-kernel 3.10