Openbmc clone occurs in build script using a repo cache

Will be adding a new variable for a directory that acts as a cache for
the OpenBMC repo. If this directory doesn't exists it will clone in like
before. If it exists it will not clone in the repo. There is a need for
the openbmc build directory to not be mounted externally in the
Kubernetes implementation. To satisfy this constraint the cache will be
used as a mounted directory which is used as a reference for the git
clone that will now occur in the build.sh to speed up the clone. Doing
it in the build.sh portion so that docker caching doesn't affect the
process. The old obmcdir will now be an internal directory in the build
container, it can be hardcoded into the build.sh/dockerfiles. Will be
leaving it intact in case we need it to be a variable.

Change-Id: I0446fa42a17ac9d577b3a3b26bd60fad890265ad
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>
1 file changed