build libhardware

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>