OSDN Git Service

Fix file-size stats on OSX
authorKoushik Dutta <koushd@gmail.com>
Fri, 1 Jun 2012 20:30:25 +0000 (13:30 -0700)
committerSteve Kondik <steve@cyngn.com>
Sun, 4 Sep 2016 04:47:36 +0000 (21:47 -0700)
commit64b2cf3a4f7ee64b26fe088efe70b263de596e12
tree067579a3e6eb0fd9c46a581ed3057fe319d57f3d
parent94eae615d345269e8ea765568d8e9df88b7dbd14
Fix file-size stats on OSX

Kernel makefiles that the stat on the system is GNU stat. GNU stat uses the "-c" option to specify format.
Darwin stat uses the "-f" option to specify format. This discrepency will cause kernel build breaks.
On my system, I symlink stat to GNU stat. This causes the "get-file-size" define
to fail.
The fix for this is to detect "gstat", aka GNU stat, and use that appropriately.

Change-Id: I987c155b7dc3ff14ffe6da40edf834ca34b7df75

Fix up the get-file-size function that was broken due to the prior commit that made it utilize gnu stat (gstat)

Change-Id: I24bba2bfcb509ad1ad76d2260eedd685ba45c393
core/combo/HOST_darwin-x86.mk