linux_dsm_epyc7002/SynoBuildConf/build-virtual-qctool
AuxXxilium 5fa3ea047a init: add dsm gpl source
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
2024-07-05 18:00:04 +02:00

29 lines
598 B
Bash

#!/bin/bash
# Copyright (c) 2000-2022 Synology Inc. All rights reserved.
# shellcheck disable=SC2154
build_turbostat()
{
# shellcheck disable=SC2086
if [ "$PLATFORM_FAMILY" = "SYNOPLAT_F_X86_64" ]; then
case "$MakeClean" in
[Yy][Ee][Ss])
make turbostat_clean -C tools
;;
esac
make $MAKE_FLAGS turbostat -C tools
fi
}
case "$CleanOnly" in
[Yy][Ee][Ss])
return
;;
esac
env CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" NM="$NM" STRIP="$STRIP" \
CROSS_COMPILE="$ToolChainPrefix" LDFLAGS="$LDFLAGS" \
build_turbostat