build_package.sh: keep stm32 files when collecting build artefacts
For STM32MP1 platforms, BL2 is packaged with its DT in an *.stm32 file.
This file is the copied in the first stage boot loader partition of the
boot device.
To ease tests and debug it can be handy to keep this stm32 file in the
build artefacts.
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I5888ace39beb42d2a16c7381d26f6b7fc8292438
diff --git a/script/build_package.sh b/script/build_package.sh
index d219528..0738b4f 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2019-2022 Arm Limited. All rights reserved.
+# Copyright (c) 2019-2023 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -163,7 +163,7 @@
return
fi
- if ! find "$from" \( -name "*.bin" -o -name '*.elf' -o -name '*.dtb' -o -name '*.axf' \) -exec cp -t "${to:?}" '{}' +; then
+ if ! find "$from" \( -name "*.bin" -o -name '*.elf' -o -name '*.dtb' -o -name '*.axf' -o -name '*.stm32' \) -exec cp -t "${to:?}" '{}' +; then
echo "You probably are running local CI on local repositories."
echo "Did you set 'dont_clean' but forgot to run 'distclean'?"
die