#!/bin/sh
#
# ===========================================================================
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2014-2015, Marvell International Ltd.
#
# Alternatively, this software may be distributed under the terms of the GNU
# General Public License Version 2, and any use shall comply with the terms and
# conditions of the GPL.  A copy of the GPL is available at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
# IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
# ARE EXPRESSLY DISCLAIMED.  The GPL license provides additional details about
# this warranty disclaimer.
# ================================================================================

DIR=/media/sf_virtual_box_share/bsp/0828r

rm $DIR/scan/*
rm $DIR/scan_pipe/*
rm $DIR/bin/*
rm $DIR/dros/*

find . -name *.ko -exec cp {} $DIR/scan/ \;
find ../scan-pipe-mod -name *.ko -exec cp {} $DIR/scan_pipe/ \;

cp ../scan-pipe-mod/oem/marvell/config/loadscan $DIR/bin/
cp ../scan-pipe-mod/common/scan/lsp/apps/runscan $DIR/bin/
cp ../scan-pipe-mod/common/scan/lsp/apps/scancmd $DIR/bin/
cp ../scan-pipe-mod/common/scan/lsp/apps/mkdev* $DIR/bin/

cp $DROS_PATH_OBJ/*.ko $DIR/dros/

