]> code.ossystems Code Review - openembedded-core.git/commit
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:01 +0000 (08:19 +0100)
commit8962fe11a0697348affb8a1ab95abca4995470a6
tree4a547d10328be25f72248150c90e0ead1c2e2c49
parent9948e4239b88026804c33d84830dbfe6b0ed3e59
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.

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