Make UBI stuff optional

Change-Id: I3515dd23e53d9a84ecfda6a71a222232ff5f3067
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>