Adopt u-boot build to OS X
v2 cover Adopt u-boot build to OS X
Latest changes to mkimage, Makefile and added proftool broke compilation on OS X. This series makes u-boot build clean again with some little adoptions.
Patch 'lib/rsa/rsa-sig.c: compile on OS X' supersedes
http://patchwork.ozlabs.org/patch/255283/
Changes in v2:
- remove REG_NOERROR instead of defining it conditionally (as Jeroen suggested)
Andreas Bie?mann (3):
lib/rsa/rsa-sig.c: compile on OS X
tools/proftool: remove REG_NOERROR
Makefile: fix readelf usage
Makefile | 2 +- lib/rsa/rsa-sign.c | 1 - tools/proftool.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.3.1
PATCH v2 1/3 lib/rsa/rsa-sig.c: compile on OS X
Interfaces exposed by error.h seems not to be used in rsa-sig.c, remove it. This also fixes an compile error on OS X:
---8<---u-boot/lib/rsa/rsa-sign.c:23:19: error: error.h: No such file or directory --->8---
---
Changes in v2: None
lib/rsa/rsa-sign.c | 1 - 1 file changed, 1 deletion(-)
lib/rsa/rsa-sign.c +0 -1
@@ -20,7 +20,6 @@#include "mkimage.h" #include <stdio.h> #include <string.h> -#include <error.h> #include <image.h> #include <time.h> #include <openssl/rsa.h>
Signature · 1 line
1.8.3.1
PATCH v2 2/3 tools/proftool: remove REG_NOERROR
In reply to Andreas BießmannRemove non portable usage of REG_NOERROR.
BSD (like OS X) variants of regex.h do not declare REG_NOERROR, even GNU regex(3) do mention REG_NOERROR, just remove it.
---
Changes in v2:
- remove REG_NOERROR instead of defining it conditionally (as Jeroen suggested)
tools/proftool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/proftool.c +1 -1
@@ -333,7 +333,7 @@ static void check_trace_config_line(struct trace_configline_info *item)if (err ==REG_NOMATCH )continue ; -if (err !=REG_NOERROR ) { +if (err) {regex_report_error (&item->regex, err,"match" , item->name);break ;
Signature · 1 line
1.8.3.1
PATCH v2 2/3 tools/proftool: remove REG_NOERROR
Hello Andreas,
Quoted 3 lines · Andreas Bie?mann
Remove non portable usage of
REG_NOERROR.
BSD (like OS X) variants ofregex.hdo not declareREG_NOERROR, even GNU regex(3) do mentionREG_NOERROR, just remove it.
^ does _not_
Perhaps Tom can amend it while applying. Anyway ..
And compile tested on FreeBSD (the 3 of them).
Regards,
Jeroen
PATCH v2 2/3 tools/proftool: remove REG_NOERROR
In reply to Andreas BießmannQuoted 6 lines · Andreas Bie?mann
Remove non portable usage of
REG_NOERROR.
BSD (like OS X) variants ofregex.hdo not declareREG_NOERROR, even GNU regex(3) do mentionREG_NOERROR, just remove it.Signed-off-by Andreas Bie?mann <[email protected]>
PATCH v2 3/3 Makefile: fix readelf usage
In reply to Andreas BießmannSome OS (like OS X) do not provide a generic readelf. We should enforce to use the toochain provided readelf instead, to do so use $(CROSS_COMPILE)readelf.
---
Changes in v2: None
Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -747,7 +747,7 @@ endif # config.mk # ARM relocations should all be R_ARM_RELATIVE. checkarmreloc: $(obj)u-boot @if test "R_ARM_RELATIVE" != \ - "`readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \ + "`$(CROSS_COMPILE)readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \ then echo "$< contains relocations other than \ R_ARM_RELATIVE"; false; fi
Signature · 1 line
1.8.3.1
v2 cover Adopt u-boot build to OS X
In reply to Andreas BießmannQuoted 15 lines · Andreas Bie??mann
Latest changes to mkimage,
Makefileand added proftool broke compilation on OS X. This series makes u-boot build clean again with some little adoptions.Patch '
lib/rsa/rsa-sig.c: compile on OS X' supersedes
http://patchwork.ozlabs.org/patch/255283/Changes in v2:
- removeREG_NOERRORinstead of defining it conditionally (as Jeroen suggested)Andreas Bie??mann (3):
lib/rsa/rsa-sig.c: compile on OS X
tools/proftool: removeREG_NOERROR
Makefile: fix readelf usage
Quoted 4 lines
Makefile | 2 +- lib/rsa/rsa-sign.c | 1 - tools/proftool.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-)
Applied to u-boot/master, with the reword noted by Jeroen in 2/3, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130703/9165541e/attachment.pgp>