rootdev: link against librootdev

We create a lib out of rootdev.c, so have our main program use it rather
than duplicate the code in the main program.

BUG=None
TEST=`emerge-x86-alex rootdev` still works and rootdev is linked against the prog (and works)

Change-Id: If649007ddb9499f2217ad0af3f1d30115587dd3d
Reviewed-on: https://chromium-review.googlesource.com/175521
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed