#!/bin/sh

[% IF ! CONFIG_WMDRMPD -%]
  # No WMDRM files are transferred to the DSP
  [% SKIPFILE %]
[% END -%]

echo "Transferring DRM files..."
mkdir -p /tmp/WMDRM-PD
cp -f /opt/nxp/share/WMDRM-PD/priv.dat \
      /opt/nxp/share/WMDRM-PD/devcerttemplate.dat /tmp/WMDRM-PD/ 2>/dev/null

# TODO: Remove these lines before final release
mkdir -p /tmp/wmt
cp -f /opt/nxp/share/WMDRM-PD/devcert.dat /tmp/WMDRM-PD/ 2>/dev/null
cp -f /opt/nxp/share/wmt/*.hds /tmp/wmt/ 2>/dev/null
