# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)

SRCDIR="$BUILD/image/system/usr/share/bootloader"
DSTDIR="$RELEASE_DIR/3rdparty/bootloader"

mkdir -p "$DSTDIR"
  if [ -n "$UBOOT_SYSTEM" ]; then
    cp -a "$SRCDIR/u-boot.img" "$DSTDIR"
    cp -a "$SRCDIR/SPL" "$DSTDIR"
  fi

  cp -a "$SRCDIR"/*.dtb "$DSTDIR"
