nocturne_fp/hatch_fp: Fix getversion without private
nocturne_fp/hatch_fp: Fix getversion without private

Public builds do not have the private directory, thus they
cannot have a valid private version tag.

Without this fix, the following errors were emitted during build
and the build VERSION would have an invalid private version tag
appended to it:

./util/getversion.sh: line 114: pushd: ./private: No such file or directory
./util/getversion.sh: line 124: popd: directory stack empty

The invalid version would end up being the same git version as the root
repository, since the pushd fails.

An alternative would be to detect that the directory did not exist
and add a does-not-exist private VERSION tag, but I feel that that
simply degrades/taints a public build. Furthermore, other boards
may want a missing directory to cause an build error/warning.

BRANCH=nocturne,hatch
BUG=none
TEST=BOARD=nocturne_fp ./util/getversion.sh
     # Observe the #define VERSION line
TEST=BOARD=hatch_fp ./util/getversion.sh
     # Observe the #define VERSION line
TEST=make BOARD=nocturne_fp
TEST=make BOARD=hatch_fp

Change-Id: I242e19d35f34599639dee7e74ffd4199f6b34c89
Signed-off-by: Craig Hesling <383db090fd8ef907a606ac8a9eccd2962bc489cf@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2032789

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec