#!/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

case "${MakeClean}" in
	[Yy][Ee][Ss])
		make distclean ${MAKE_FLAGS}
		;;
esac

case "${CleanOnly}" in
	[Yy][Ee][Ss])
		return
		;;
esac

make $MAKE_FLAGS KSRC="$KSRC" SysRootPrefix="$SysRootPrefix" SysRootInclude="$SysRootInclude"
