only compile recovery:
$source build/envsetup.sh
$lunch
chose your device
$make recoveryimage
after build finish, find the recovery.img in SourceCode/out/target/product/legend
flash recovery.img to device:
$adb reboot bootloader
$fastboot flash recovery recovery.img
there has one issue when I use official release of CWM-recovery v5.0.2.8 in my htc_legend:
No Go back menu and the power key doesn`t work.
the solution is recompile the CMW recovery and change the option for legend:
add the Option "BOARD_HAS_NO_SELECT_BUTTON := true" into BoardConfig.mk in the DIR:SourceCode/system/device/htc/legend
References:
a): http://wiki.cyanogenmod.org/w/Build_for_legend?setlang=zh-tw