package/swupdate: add hash file
PATCH 1/3 package/swupdate: add hash file
--- package/swupdate/swupdate.hash | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 package/swupdate/swupdate.hash
package/swupdate/swupdate.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 1410f8967aad0f4d3b4561110dbfb2c1f8e337bdc332f6b120f4995762c8bf6b swupdate-2015.07.tar.gz
Signature · 1 line
2.6.1
PATCH 2/3 package/swupdate: add patch to fix build issue with some toolchains
Some toolchains used in Buildroot (x86-64 and mips64) have a problem to compile a set of object files into one object file as it is done for the builtin-target declared in swupdate's Kbuild Makefile.build. This target collects all object files from every subdirectory declared in objs-dir and compiles them into a single object file named build-in.o using the linker ld.
For the addressed toolchains the default emulation of ld is not the correct one leading to different kind of relocation errors:
/usr/bin/i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (core/swupdate.o) to format elf32-i386 (core/built-in.o) is not supported.
or
/usr/bin/mips-linux-gnu-ld: handlers/raw_handler.o: endianness incompatible with that of the selected emulation
or
/usr/bin/mips64el-linux-ld: core/swupdate.o: ABI is incompatible with that of the selected
As there is no need to have single object file built-in.o to be compiled for the subdirectories core and handlers we can easily allow swupdate to be built with these toolchains by compiling the source files from core and handlers with the lib-target target by assigning them to the libs-y variable as it is done for all other subdirectories. The lib-target compiles a set of object files into one archive file. With this target we avoid using the ld linker and use the ar archiver instead.
Add a patch from upstream to fix a whole bunch of autobuild errors.
Fixes:
http://autobuild.buildroot.net/results/de9/de920298075d32f3de83a0cfb7417846eb833425/
http://autobuild.buildroot.net/results/975/975915aa33005806e78260bae385cd4b3e359ca8/
http://autobuild.buildroot.net/results/c54/c54e7a2ea353d95d41a1e966de0dffa7b6ac432e/
http://autobuild.buildroot.net/results/019/0198596ebfed05ab86552b628da2274d55bf42ae/
and many more.
--- package/swupdate/swupdate.hash | 1 + package/swupdate/swupdate.mk | 1 + 2 files changed, 2 insertions(+)
package/swupdate/swupdate.hash +1 -0
@@ -1,2 +1,3 @@ # Locally calculated sha256 1410f8967aad0f4d3b4561110dbfb2c1f8e337bdc332f6b120f4995762c8bf6b swupdate-2015.07.tar.gz +sha256 ec633171e6a893506fad6b96fb2b258d60a023c03be5520b968a1d5cc6bafe6e c3467290925b2a833a68d9db12c198fdca752e32.patch
package/swupdate/swupdate.mk +1 -0
@@ -8,6 +8,7 @@ SWUPDATE_VERSION = 2015.07 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION)) SWUPDATE_LICENSE = GPLv2+, MIT, Public Domain SWUPDATE_LICENSE_FILES = COPYING +SWUPDATE_PATCH = https://github.com/sbabic/swupdate/commit/c3467290925b2a833a68d9db12c198fdca752e32.patch # swupdate bundles its own version of mongoose (version 3.8) and # lsqlite3 (version 0.8)
Signature · 1 line
2.6.1
PATCH 3/3 package/swupdate: add patch to fix link error for CONFIG_UBOOT and missing libz
In reply to Jörg KrauseCONFIG_UBOOT needs libz [1]. So CONFIG_UBOUT mustn't be available when HAVE_ZLIB=n.
Add patch from upstream to fix a link error for CONFIG_UBOOT and missing libz. Note, that this link error does not affect the default config provided by Buildroot.
[1] https://github.com/sbabic/swupdate/commit/cf495e23ad117f4cae9c429e80714fe9c18f2d6a
--- package/swupdate/swupdate.hash | 1 + package/swupdate/swupdate.mk | 1 + 2 files changed, 2 insertions(+)
package/swupdate/swupdate.hash +1 -0
@@ -1,3 +1,4 @@ # Locally calculated sha256 1410f8967aad0f4d3b4561110dbfb2c1f8e337bdc332f6b120f4995762c8bf6b swupdate-2015.07.tar.gz sha256 ec633171e6a893506fad6b96fb2b258d60a023c03be5520b968a1d5cc6bafe6e c3467290925b2a833a68d9db12c198fdca752e32.patch +sha256 6cffe115cad73c0d1095f7880b6d2b97fc12b7f7871f532e5b33717e863f03d7 5a5ef5909f5da5b2070d58ffaee924bb8e6a51e1.patch
package/swupdate/swupdate.mk +1 -0
@@ -9,6 +9,7 @@ SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION)) SWUPDATE_LICENSE = GPLv2+, MIT, Public Domain SWUPDATE_LICENSE_FILES = COPYING SWUPDATE_PATCH = https://github.com/sbabic/swupdate/commit/c3467290925b2a833a68d9db12c198fdca752e32.patch +SWUPDATE_PATCH += https://github.com/sbabic/swupdate/commit/5a5ef5909f5da5b2070d58ffaee924bb8e6a51e1.patch # swupdate bundles its own version of mongoose (version 3.8) and # lsqlite3 (version 0.8)
Signature · 1 line
2.6.1
PATCH 1/3 package/swupdate: add hash file
In reply to Jörg KrauseDear J?rg Krause,
Quoted 5 lines · J?rg Krause
Signed-off-by J?rg Krause <[email protected]>--- package/swupdate/swupdate.hash | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 package/swupdate/swupdate.hash
All three patches applied. For the last patch, I just changed a bit to use a single definition of <pkg>_PATCH.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com