diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-07 17:32:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-07 17:32:29 +0000 |
commit | 1f77bfff9608f97996bffdb28dabec4e787631f6 (patch) | |
tree | 9e624ddb58dffe5cae5af0ea17b7bd51116e3418 /tools/mkimage | |
parent | ed083586aaf8468794c87d65324cfe7ee015f38c (diff) | |
download | mtk-20170518-1f77bfff9608f97996bffdb28dabec4e787631f6.zip mtk-20170518-1f77bfff9608f97996bffdb28dabec4e787631f6.tar.gz mtk-20170518-1f77bfff9608f97996bffdb28dabec4e787631f6.tar.bz2 |
build: BSD compile fixes
following patch allows to build images for Qemu ARM on
OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64.
Mostly small pieces of code changes to get things right on the
specific platform.
Updated the README to describe better, which tools on the host
are required. Added some kind of prepare scripts to install needed
tools on BSD via packages.
Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de>
SVN-Revision: 35900
Diffstat (limited to 'tools/mkimage')
-rw-r--r-- | tools/mkimage/patches/020-openbsd_fixes.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/mkimage/patches/020-openbsd_fixes.patch b/tools/mkimage/patches/020-openbsd_fixes.patch new file mode 100644 index 0000000..31ee38f --- /dev/null +++ b/tools/mkimage/patches/020-openbsd_fixes.patch @@ -0,0 +1,19 @@ +diff -Nur u-boot-2012.04.01.orig/tools/mkimage.c u-boot-2012.04.01/tools/mkimage.c +--- u-boot-2012.04.01.orig/tools/mkimage.c Wed Apr 25 15:22:50 2012 ++++ u-boot-2012.04.01/tools/mkimage.c Wed Mar 6 17:09:29 2013 +@@ -449,6 +449,7 @@ + #if defined(_POSIX_SYNCHRONIZED_IO) && \ + !defined(__sun__) && \ + !defined(__FreeBSD__) && \ ++ !defined(__OpenBSD__) && \ + !defined(__APPLE__) + (void) fdatasync (ifd); + #else +@@ -492,6 +493,7 @@ + #if defined(_POSIX_SYNCHRONIZED_IO) && \ + !defined(__sun__) && \ + !defined(__FreeBSD__) && \ ++ !defined(__OpenBSD__) && \ + !defined(__APPLE__) + (void) fdatasync (ifd); + #else |