[Build] Fix the export variables issue (#13248)

Why I did it
It has impact on the march armhf build, see https://dev.azure.com/mssonic/build/_build/results?buildId=198154&view=logs&j=83fd383b-c589-57ca-3934-a41cc030c48f&t=ef066b7a-d14d-57c4-a316-d3d309bdbbd5

It is caused by the code merge, good in branch 202211 and master.

How I did it
Change the export variable location in the Makefile.

How to verify it
This commit is contained in:
xumia 2023-01-06 10:39:40 +08:00 committed by GitHub
parent 0693662da1
commit f0e88a2894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,13 +395,13 @@ SONIC_BUILD_INSTRUCTION := make \
.DEFAULT_GOAL := all
export MIRROR_URLS
export MIRROR_SECURITY_URLS
%::
ifeq ($(MULTIARCH_QEMU_ENVIRON), y)
@$(DOCKER_MULTIARCH_CHECK)
export MIRROR_URLS
export MIRROR_SECURITY_URLS
ifneq ($(BLDENV), )
@$(DOCKER_SERVICE_MULTIARCH_CHECK)
@$(DOCKER_SERVICE_DOCKERFS_CHECK)