aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorDavid Riley <davidriley@chromium.org>2015-02-05 19:22:49 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-11 23:05:39 +0000
commit05987b159acb9737707b9ef92b818ac434ef8c3d (patch)
tree8e5e48a674b6756bf62a5913d336efc9b7ea162b /host
parent2b0dc167451b151452b834f88dafd83d912a55cd (diff)
downloadvboot_reference-05987b159acb9737707b9ef92b818ac434ef8c3d.tar.gz
Changes to compile signing tools on darwin
The following works from a Mac with these changes: make Q= ARCH=arm HAVE_MACOS=1 `pwd`/build/futility/futility Only vbutil_keyblock and vbutil_kernel have been exercised. BUG=none TEST='make Q= ARCH=arm HAVE_MACOS=1 `pwd`/build/futility/futility' BRANCH=none Signed-off-by: David Riley <davidriley@chromium.org> Change-Id: Ie69cfee0c650d4ff96be6322083a2fea1543ee39 Reviewed-on: https://chromium-review.googlesource.com/246773 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: David Riley <davidriley@chromium.org> Commit-Queue: David Riley <davidriley@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/arch/arm/lib/crossystem_arch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index b032ed30..6cd4f2d2 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -7,7 +7,9 @@
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
+#ifndef HAVE_MACOS
#include <linux/fs.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
@@ -456,6 +458,7 @@ static int VbWriteNvStorage_disk(VbNvContext* vnc) {
__FUNCTION__, nvctx_path);
break;
}
+#ifndef HAVE_MACOS
/* Must flush buffer cache here to make sure it goes to disk */
rv = ioctl(nvctx_fd, BLKFLSBUF, 0);
if (rv < 0) {
@@ -463,6 +466,7 @@ static int VbWriteNvStorage_disk(VbNvContext* vnc) {
__FUNCTION__, nvctx_path);
break;
}
+#endif
rv = 0;
} while (0);