build: use VPP_BUILD_TOPDIR from environment if set 01/41501/2
authorOleksandr Hnatiuk <[email protected]>
Thu, 29 Aug 2024 04:20:04 +0000 (21:20 -0700)
committerDamjan Marion <[email protected]>
Thu, 12 Dec 2024 15:48:32 +0000 (15:48 +0000)
commit20956385c7f5bd308f4a0f6a6fdca3a77425b300
tree8e74e5652a8fbaab146fd1c7892304246fac4183
parentaac5e686f30f241ad147dad3b939b0e267b3a3ea
build: use VPP_BUILD_TOPDIR from environment if set

Commit 3d14f036199d added the possibility to use `VPP_BUILD_USER` and
`VPP_BUILD_HOST` from environment (if they are set) to avoid
reproducibility issues by hard-coding such data in the build system.
However, there's no way to provide VPP_BUILD_TOPDIR externally. Add this
feature to improve binary reproducibility.

Type: improvement
Change-Id: I3a7ee47d75af9635b636fa3750a3688314eaa60d
Signed-off-by: Oleksandr Hnatiuk <[email protected]>
src/scripts/generate_version_h