hdmi: cat66121: set i2s freq 44.1k to fix sound too small on some tv
[firefly-linux-kernel-4.4.55.git] / scripts / gcc-version.sh
index cc767b388baf7b30ef04b61650911069818d7ba0..7f2126df91f2a876a5c8374339f22a6f6f4387ed 100644 (file)
@@ -18,14 +18,14 @@ compiler="$*"
 
 if [ ${#compiler} -eq 0 ]; then
        echo "Error: No compiler specified."
-       echo -e "Usage:\n\t$0 <gcc-command>"
+       printf "Usage:\n\t$0 <gcc-command>\n"
        exit 1
 fi
 
-MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1)
-MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
+MAJOR=$(echo __GNUC__ | $compiler -E -x c - | tail -n 1)
+MINOR=$(echo __GNUC_MINOR__ | $compiler -E -x c - | tail -n 1)
 if [ "x$with_patchlevel" != "x" ] ; then
-       PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -xc - | tail -n 1)
+       PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -x c - | tail -n 1)
        printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL
 else
        printf "%02d%02d\\n" $MAJOR $MINOR