Go to file
Jörg Krause a8cc6eeec5 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.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-10-19 23:02:19 +02:00
arch arch: add support for mips32r6 and mips64r6 variants 2015-10-12 21:33:56 +02:00
board board/boundarydevices: update 6x_bootscript to use zImage 2015-10-19 22:33:36 +02:00
boot uboot: arm64 arch build support 2015-10-12 21:59:44 +02:00
configs nitrogen6*_defconfig: bump u-boot and kernel revisions 2015-10-19 22:33:36 +02:00
docs Revert "manual: Add notes about GitHub and hashes" 2015-10-18 17:59:40 +02:00
fs fs/axfs: fix URL indentation 2015-10-15 21:59:39 +02:00
linux
package package/swupdate: add patch to fix build issue with some toolchains 2015-10-19 23:02:19 +02:00
support support/mkusers: allow comments in users tables 2015-10-18 17:52:21 +02:00
system system/skeleton: finalize removal of ftp user 2015-10-18 17:56:14 +02:00
toolchain toolchain: like glibc, musl always provides SSP support 2015-10-18 15:35:42 +02:00
.defconfig
.gitignore
CHANGES
Config.in
Config.in.legacy Config.in.legacy: remove empty line 2015-10-18 23:41:08 +02:00
COPYING
Makefile ccache: allow for BR2_CCACHE_DIR environment override 2015-10-17 16:32:41 +02:00
Makefile.legacy
README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.