Keep LB_ARCHITECTURES environment variable for backwards compatibility

Custom hook scripts may use the variable. And conditional package lists
can also rely on this variable.
This commit is contained in:
Raphaël Hertzog 2020-04-23 15:58:59 +02:00
parent 6cc7250954
commit 047885bf7e
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ New_configuration ()
LB_ARCHITECTURE="${LB_ARCHITECTURE:-${CURRENT_IMAGE_ARCHITECTURE}}"
export LB_ARCHITECTURE
# For backwards compat with custom hooks and conditional includes
LB_ARCHITECTURES=${LB_ARCHITECTURE}
export LB_ARCHITECTURES
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-$(Get_configuration config/build Archive-Areas)}"
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-main}"
LB_ARCHIVE_AREAS="$(echo "${LB_ARCHIVE_AREAS}" | tr "," " ")"