ddimage: Support Mac OS
authorDarren Hart <dvhart@linux.intel.com>
Tue, 27 May 2014 19:47:45 +0000 (12:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 May 2014 07:19:30 +0000 (08:19 +0100)
commit5880a59b623c4f40b049fb038899bca3a92755e2
treeeb07ad70f7ce413b3610027418391d98ab996e23
parent0f86fa4006ebf0b6903d15053032eff88add0ff1
ddimage: Support Mac OS

Update the ddimage script to allow it to work on Mac OS too. The biggest
difference is sysfs vs diskutil and in the syntax of the stat command
between Mac OS and Linux, unfortunately. Workarounds using ls, cut, and
columns got really fragile really quickly. Relying on stat and switching
on uname seemed the more robust solution.

(From OE-Core rev: 8962fe11a0697348affb8a1ab95abca4995470a6)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/ddimage