VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Michael Forney <forney@google.com> 2018-03-18 17:54:02 -0700 committer: Masahiro Yamada <yamada.masahiro@socionext.com> 2018-03-26 02:01:24 +0900 commit: a670b0b4aed129dc11b465c1c330bfe9202023e5 parent: 3fdc7d3fe4c04bab0305838cf662ae30051cc192
Commit Summary:
kbuild: Use ls(1) instead of stat(1) to obtain file size
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/scripts/file-size.sh b/scripts/file-size.sh
new file mode 100755
index 000000000000..7eb7423416b5
--- /dev/null
+++ b/scripts/file-size.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+set -- $(ls -dn "$1")
+printf '%s\n' "$5"