[PATCH v9 1/4] Move bootorder and bootoption apis to lib