方法一 不需要framework部分
1.fm放到 \hardware\rk2x
2.FmRadio 放到 packages\apps
3.hardware\libhardware\include\hardware\fm.h 放到hardware\libhardware\include\hardware\fm.h
4.build\target\product中PRODUCT_PACKAGES :=加上 FmRadio \
5./bionic/libc/kernel/common/linux/Hw_fm.h拷贝过去
6./device/rockchip/rksdk/device.mk中加入PRODUCT_PACKAGES += fm.$(TARGET_BOARD_HARDWARE)让\hardware\rk2x\fm能够编译到
7.device\rockchip\rksdk\init.rc中加上权限chmod 0664 /dev/RADIO_FM8035 chown system system /dev/RADIO_FM8035这样Rk28_fm.c (hardware\rk2x\fm\primitive)中int fm_init(sighandler_t fm_sighandler)
方法二需要在上面移植以后多加framework的内容
1