barebox: add prefunc
barebox: add prefunc

We add the package_get_auto_pr function to get resolve the PKGV variables
for builds from a git head. This is just to get better binaryoutput names.

Signed-off-by: Stefan Müller-Klieser <a3e08e35e4a42be768e7d0e76ae1ba321c2a66dd@phytec.de>

PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec