#!/bin/bash
# Copyright (c) 2000-2019 Synology Inc. All rights reserved.

source "${ScriptsDir}/include/exports"

if ! checkPlatformFunction SYNO_FEA_FIBRE_CHANNEL; then
	SkipThisProject
	return
fi

if [[ "linux-5.10.x" == "${SYNO_KERNEL_SOURCE_DIR}" ]]; then
	SkipThisProject
	return
fi

make remoteinstall DESTDIR="${TmpInstDir}"

if [ "x$NOSTRIP" != "xNOSTRIP" ]; then
	$STRIP --strip-debug ${TmpInstDir}/lib/modules/*.ko
fi
