Some things that bug me
Subsystems (2)
cover Some things that bug me
These are some fixes to the current TOT that break my test building on OS X. Maybe some of them already addressed by some other patches. If so, please just drop the corresponding patch from the series.
Andreas Bie?mann (4):
tools: -Wno-deprecated-declarations for OpenSSL on darwin
mxsboot: remove unused include
samsung: fix mkorigenspl for darwin
pci_rom: fix may be used uninitialized warning
board/samsung/origen/tools/mkorigenspl.c | 4 ++-- drivers/pci/pci_rom.c | 2 +- tools/Makefile | 8 ++++++++ tools/mxsboot.c | 1 - 4 files changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 1/4 tools: -Wno-deprecated-declarations for OpenSSL on darwin
Since OpenSSL is deprecated on OS X in favour of Common Crypto API disable the warning for this host OS.
Another solution would be to add some glue layer for crypto stuff, but I think this is not worth the effort.
---
tools/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+)
tools/Makefile +8 -0
@@ -129,6 +129,14 @@ endif ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),) HOSTLOADLIBES_mkimage += \ $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto") + +# OS X deprecate openssl in favour of CommonCrypto, supress deprecation +# warnings on those systems +ifeq ($(HOSTOS),darwin) +HOSTCFLAGS_mxsimage.o += -Wno-deprecated-declarations +HOSTCFLAGS_image-sig.o += -Wno-deprecated-declarations +HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations +endif endif HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 1/4 tools: -Wno-deprecated-declarations for OpenSSL on darwin
Quoted 11 lines · Andreas Bie?mann
Since OpenSSL is deprecated on OS X in favour of Common Crypto API disable the warning for this host OS.
Another solution would be to add some glue layer for crypto stuff, but I think this is not worth the effort.
Signed-off-by Andreas Bie?mann <[email protected]>---
tools/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+)
PATCH 1/4 tools: -Wno-deprecated-declarations for OpenSSL on darwin
In reply to Andreas BießmannQuoted 8 lines · Andreas Bie?mann
Since OpenSSL is deprecated on OS X in favour of Common Crypto API disable the warning for this host OS.
Another solution would be to add some glue layer for crypto stuff, but I think this is not worth the effort.
Signed-off-by Andreas Bie?mann <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160225/405cde6d/attachment.sig>
PATCH 2/4 mxsboot: remove unused include
In reply to Andreas BießmannCommit 276d3ebb883024d753cd9c69ab2fd243ffa1262e removed htole32() but missed to remove the corresponding header. This is annoying, since BSD systems do not have endian.h.
---
tools/mxsboot.c | 1 - 1 file changed, 1 deletion(-)
tools/mxsboot.c +0 -1
@@ -7,7 +7,6 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include <endian.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h>
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 2/4 mxsboot: remove unused include
Quoted 5 lines · Andreas Bie?mann
Commit
276d3ebb883024d753cd9c69ab2fd243ffa1262eremovedhtole32()but missed to remove the corresponding header. This is annoying, since BSD systems do not haveendian.h.Signed-off-by Andreas Bie?mann <[email protected]>
Nice, thanks!
PATCH 2/4 mxsboot: remove unused include
In reply to Andreas BießmannAm Tuesday 16 February 2016, 23:29:29 schrieb Andreas Bie?mann:
Quoted 15 lines
Commit
276d3ebb883024d753cd9c69ab2fd243ffa1262eremovedhtole32()but missed to remove the corresponding header. This is annoying, since BSD systems do not haveendian.h.Signed-off-by Andreas Bie?mann <[email protected]>---
tools/mxsboot.c | 1 - 1 file changed, 1 deletion(-)tools/mxsboot.c +0
-0
tools/mxsboot.c line 12
Quoted 7 lines
tools/mxsboot.c +0
-1@@ -7,7 +7,6 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include <endian.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h>
PATCH 2/4 mxsboot: remove unused include
In reply to Andreas BießmannHi Andreas,
Quoted 16 lines · Andreas Bie?mann
Commit
276d3ebb883024d753cd9c69ab2fd243ffa1262eremovedhtole32()but missed to remove the corresponding header. This is annoying, since BSD systems do not haveendian.h.Signed-off-by Andreas Bie?mann <[email protected]>---
tools/mxsboot.c | 1 - 1 file changed, 1 deletion(-)tools/mxsboot.c +0
-0
tools/mxsboot.c line 12
Quoted 7 lines
tools/mxsboot.c +0
-1@@ -7,7 +7,6 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include <endian.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h>
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 3/4 samsung: fix mkorigenspl for darwin
In reply to Andreas BießmannCompiling the mkorigenspl tool on darwin complains about undefined ulong. Fix this by using the unified way.
---
board/samsung/origen/tools/mkorigenspl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/samsung/origen/tools/mkorigenspl.c +2 -2
@@ -83,8 +83,8 @@ int main(int argc, char **argv)for (i =0 ; i <IMG_SIZE -SPL_HEADER_SIZE ; i++) checksum += buffer[i+16 ]; - *(ulong *)buffer ^=0x1f ; - *(ulong *)(buffer+4 ) ^= checksum; + *(unsigned long *)buffer ^=0x1f ; + *(unsigned long *)(buffer+4 ) ^= checksum;for (i =1 ; i <SPL_HEADER_SIZE ; i++) buffer[i] ^= buffer[i-1 ];
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 3/4 samsung: fix mkorigenspl for darwin
Quoted 4 lines · Andreas Bie?mann
Compiling the mkorigenspl tool on darwin complains about undefined ulong. Fix this by using the unified way.
Signed-off-by Andreas Bie?mann <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160225/425555e5/attachment.sig>
PATCH 4/4 pci_rom: fix may be used uninitialized warning
In reply to Andreas BießmannBuilding pci_rom.c with my toolchain complains about may be used uninitialized rom varaible:
---8<---+drivers/pci/pci_rom.c:269:25: note: 'rom' was declared herew+drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios':w+drivers/pci/pci_rom.c:154:14: warning: 'rom' may be used uninitialized in this function [-Wmaybe-uninitialized] --->8---
Fix this as done in 55616b86c745fcac5a791268ab8e7cba36965c0f the ram variable.
---
drivers/pci/pci_rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci_rom.c +1 -1
@@ -266,7 +266,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), int exec_method) {struct pci_child_platdata *pplat =dev_get_parent_platdata (dev); -struct pci_rom_header *rom, *ram =NULL ; +struct pci_rom_header *rom =NULL , *ram =NULL ;int vesa_mode =-1 ;bool emulate, alloced;int ret;
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 4/4 pci_rom: fix may be used uninitialized warning
Quoted 9 lines · On Tue, 16 Feb 2016 23:29:31 +0100 Andreas Bie?mann andreas.devel at…
Building
pci_rom.cwith my toolchain complains about may be used uninitialized rom varaible:---8<---
+drivers/pci/pci_rom.c:269:25: note: 'rom' was declared herew+drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios':w+drivers/pci/pci_rom.c:154:14: warning: 'rom' may be used uninitialized in this function [-Wmaybe-uninitialized] --->8---
Quoted 3 lines
Fix this as done in
55616b86c745fcac5a791268ab8e7cba36965c0fthe ram variable.Signed-off-by Andreas Bie?mann <[email protected]>
PATCH 4/4 pci_rom: fix may be used uninitialized warning
In reply to Andreas BießmannQuoted 3 lines · Andreas Bie?mann
Building
pci_rom.cwith my toolchain complains about may be used uninitialized rom varaible:
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160225/3525d92b/attachment.sig>