Go to file
Vicente Olivert Riera d2da85c396 toolchain-external.mk: fix ARCH_SUBDIR calculation
ARCH_SUBDIR is computed based on the value of ARCH_SYSROOT_DIR and
SYSROOT_DIR. For nested toolchains ARCH_SYSROOT_DIR is a subdir of
SYSROOT_DIR, so a sed command like this one...

  sed -r -e "s:^${SYSROOT_DIR}(.*)/$:\1:"

...basically removes the leading SYSROOT_DIR part from ARCH_SYSROOT_DIR.

But, for side-by-side sysroot toolchains ARCH_SYSROOT_DIR and
SYSROOT_DIR are at the same level, so the above sed command doesn't
make any effect.

This patch therefore improves the calculation of ARCH_SUBDIR to
clearly handle the three possible cases:

 - There is a single sysroot, or the selected architecture sysroot is
   the main one (i.e SYSROOT_DIR == ARCH_SYSROOT_DIR). In this case,
   ARCH_SUBDIR is empty.

 - There are side-by-side sysroots, such as
   SYSROOT_DIR=.../sysroot/mips-r2-hard/ and
   ARCH_SYSROOT_DIR=.../sysroot/mipsel-r2-hard/.

 - The arch-sysroot is nested, such as SYSROOT_DIR=.../sysroot and
   ARCH_SYSROOT_DIR=.../sysroot/armv4t/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
[Thomas: improve the logic to handle the SYSROOT_DIR==ARCH_SYSROOT_DIR
case.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-10-28 14:28:49 +02:00
arch MIPS: add support for M6201 cores 2016-10-19 23:31:29 +02:00
board board: fix indentation in zybo readme.txt 2016-10-26 12:30:14 +02:00
boot boot-wrapper-aarch64: Allow users to select the PSCI SMP boot method 2016-10-25 23:59:36 +02:00
configs configs/imx28evk: Update U-Boot and kernel versions 2016-10-25 19:58:49 +02:00
docs website: add Free Electrons as a current sponsor 2016-10-20 21:33:32 +02:00
fs fs/common: add option to execute custom scripts under fakeroot 2016-07-03 20:58:46 +02:00
linux linux: bump default to version 4.8.4 2016-10-23 14:25:01 +02:00
package bridge-utils: bump to version 1.6 2016-10-27 21:54:12 +02:00
support support/download: make the git wrapper more robust 2016-10-25 23:49:35 +02:00
system system: fix typo 2016-10-13 08:06:11 +02:00
toolchain toolchain-external.mk: fix ARCH_SUBDIR calculation 2016-10-28 14:28:49 +02:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.gitignore
CHANGES toochainfile.cmake: rework the way Buildroot sets flags 2016-10-22 16:23:44 +02:00
Config.in Config.in: add BR2_HOST_GCC_AT_LEAST_4_5 2016-10-26 21:11:34 +02:00
Config.in.legacy legacy: add missing select 2016-10-24 22:42:07 +02:00
COPYING
DEVELOPERS DEVELOPERS: add entry for mfgtools 2016-10-26 21:26:56 +02:00
Makefile core/graph-depends: add option to graph reverse dependencies 2016-10-25 22:59:05 +02:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
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.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches