uboot_env: Use canonicalized pathname when guessing device type
requested to merge github/fork/liuming50/use-canonicalized-pathname-when-guessing-device-type into master
Created by: liuming50
Some platform uses softlinks to the devices that hold environment data. The mechanism used to figure out the type of flash is not robust in this case. Calculating the canonicalized absolute pathname of the device before trying to guess the type of flash decreases the risk of guessing incorrectly.
Signed-off-by: Mathias Thore mathias.thore@atlascopco.com