aboutsummaryrefslogtreecommitdiffstats
path: root/platforms/rpi-aarch64/specialFunctions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/rpi-aarch64/specialFunctions.sh')
-rwxr-xr-xplatforms/rpi-aarch64/specialFunctions.sh19
1 files changed, 2 insertions, 17 deletions
diff --git a/platforms/rpi-aarch64/specialFunctions.sh b/platforms/rpi-aarch64/specialFunctions.sh
index 8209db3..f81a273 100755
--- a/platforms/rpi-aarch64/specialFunctions.sh
+++ b/platforms/rpi-aarch64/specialFunctions.sh
@@ -50,22 +50,7 @@ function bunrningBootloader()
function copyingCustomSystem()
{
print_info "copying firmware to ${BOOT}"
- cp -v --preserve=mode "${BUILD_PATH}/boot/start"* "${BOOT}/"
- cp -v --preserve=mode "${BUILD_PATH}/boot/fixup"* "${BOOT}/"
- cp -v --preserve=mode "${BUILD_PATH}/boot/bootcode.bin"* "${BOOT}/"
-
- print_info "copying u-boot binary to ${BOOT}"
- cp --preserve=mode "${BUILD_PATH}/usr/lib/u-boot/${U_BOOT}/u-boot.bin" "${BOOT}/"
-
- print_info "copying boot files to ${BOOT}"
- #As there is no ownership in FAT FS.
- cp -av --no-preserve=ownership ${CONFIG_PATH}/boot/* "${BOOT}/"
-
- print_info "copying dtb files to ${BOOT}"
- cp -v --preserve=mode "${BUILD_PATH}/boot/"*.dtb "${BOOT}/"
-# for f in ${DTB}; do
-# cp --preserve=mode ${BUILD_PATH}/usr/lib64/linux-*/${f} "${BOOT}/"
-# done
-
+ find "${BUILD_PATH}/boot/" -maxdepth 1 -regex '.*\.\(elf\|dat\|bin\|txt\|env\|dtb\)' -exec cp {} "${BOOT}/" ';'
+ cp -r "${BUILD_PATH}/boot/overlays" "${BOOT}/overlays"
return 0
}