summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* external-toolchain: Support for multilib toolchainsThomas Petazzoni2010-04-171-11/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multilib toolchains provide different versions of the base libraries for different architecture variants. For example, the ARM Codesourcery toolchain provides base libraries for ARMv5 (default), ARMv4t and Thumb2. Depending on the -march= argument passed to gcc, the sysroot used by the compiler is therefore different. This means that the sysroot location in CROSS-gcc -v cannot be used. Instead, we must use CROSS-gcc -print-sysroot when available and fall back to the old way if unavailable. Moreover, we cannot simply copy the full sysroot as we used to do, because the sysroot organization of multilib toolchain is more complicated. In Codesourcery toolchains, we have : / etc -- for ARMv5 lib -- for ARMv5 sbin -- for ARMv5 usr -- for ARMv5 (includes headers) armv4t etc -- for ARMv4t lib -- for ARMv4t sbin -- for ARMv4t usr -- for ARMv4t (no headers!) thumb2 etc -- for Thumb2 lib -- for Thumb2 sbin -- for Thumb2 usr -- for Thumb2 (no headers!) So we have the default ARMv5 architecture variant that is installed in the main directory, and we have subdirectories for the ARMv4t and Thumb2 architecture variants. Copying the full sysroot to the staging directory doesn't work. All our packages are based on the fact that they should install libraries in staging/usr/lib. But if ARMv4t is used, the compiler would only look in staging/armv4t/usr/lib for libraries (even when overriding the sysroot with the --sysroot option, the multilib compiler suffixes the sysroot directory with the architecture variant if it matches a recognized one). Therefore, we have to copy only the sysroot that we are interested in. This is rendered a little bit complicated by the fact that the armv4t and thumb2 sysroot do not contain the headers since they are shared with the armv5 sysroot. So, this patch : * Modifies how we compute SYSROOT_DIR in order to use -print-sysroot if it exists. SYSROOT_DIR contains the location of the main sysroot directory, i.e the sysroot for the default architecture variant. * Defines ARCH_SUBDIR as the subdirectory in the main sysroot for the currently selected architecture variant (in our case, it can be ".", "armv4t" or "thumb2"). ARCH_SYSROOT_DIR is defined as the full path to the sysroot of the currently selected architecture variant. * Modifies copy_toolchain_lib_root (which copies a library to the target/ directory) so that libraries are taken from ARCH_SYSROOT_DIR instead of SYSROOT_DIR. This ensures that libraries for the correct architecture variant are properly copied to the target. * Modifies copy_toolchain_sysroot (which copies the sysroot to the staging/ directory), so that it copies the contents of ARCH_SYSROOT_DIR, and if needed, adds the headers from the main sysroot directory and a symbolic link (armv4t -> . or thumb2 -> .) to make the compiler believe that its sysroot is really in armv4t/ or thumb2/. Tested with Codesourcery 2009q1 ARM toolchain, Crosstool-NG ARM glibc and ARM uClibc toolchains. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* external-toolchain: support libraries outside of /libThomas Petazzoni2010-04-171-10/+13
| | | | | | | | | | | | | The copy_toolchain_lib_root function was making the assumption that all libraries were stored inside the /lib directory of the sysroot directory. However, this isn't true for certain toolchains, particularly for the libstdc++ library. The function is therefore reworked to find the library and its related symlink either in /lib or /usr/lib in the sysroot, and copies it at the same location in the target directory. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* external toolchains: take into account architecture variantThomas Petazzoni2010-04-171-11/+11
| | | | | | | | | Until now, many TARGET_CFLAGS where missing when using an external toolchain, due to how package/Makefile.in was written. Now, a lot more definitions are common between the Buildroot toolchain case and the external toolchain case. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openssl: fix build without ipv6 supportPeter Korsgaard2010-04-152-0/+56
| | | | | | Closes #1567 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pciutils: convert to the generic-tools infrastructureThomas Brandstetter2010-04-152-71/+31
| | | | | Signed-off-by: Thomas Brandstetter <thomas.brandstetter@me.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* mtd: host compilation needs host-zlibPeter Korsgaard2010-04-151-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* mtd: mkfs.jffs2 requires zlib to buildWill Wagner2010-04-151-0/+3
| | | | | | [Peter: lzo needed as well] Signed-off-by: Will Wagner <will_wagner@carallon.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* iso9660: menu.lst fixup after move to fsPeter Korsgaard2010-04-151-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: trivial fix following move to fsWill Wagner2010-04-151-1/+1
| | | | | Signed-off-by: Will Wagner <will_wagner@carallon.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* busybox: 1.16.1 dnsd / hwclock fixesPeter Korsgaard2010-04-142-0/+181
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libdrm: enable/disable features according to driver selectionPaulius Zaleckas2010-04-142-2/+12
| | | | | | | | Also cleanup autotools symbols and add libatomic_ops dependency for Intel part. Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add libatomic_ops 1.2 needed by libdrm Intel supportPaulius Zaleckas2010-04-144-1/+19
| | | | | Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Merge branch 'autotools-conversion' of ↵Peter Korsgaard2010-04-1323-1284/+128
|\ | | | | | | git://git.busybox.net/~tpetazzoni/git/buildroot
| * libid3tag: convert to the autotools infrastructureThomas Petazzoni2010-04-131-58/+4
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libmad: convert to the autotools infrastructureThomas Petazzoni2010-04-131-67/+10
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * aumix: convert to the autotools infrastructureThomas Petazzoni2010-04-132-51/+38
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * madplay: convert to the autotools infrastructureThomas Petazzoni2010-04-131-59/+5
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * findutils: convert to the autotools infrastructureThomas Petazzoni2010-04-131-74/+1
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * ipkg: remove useless configure optionsThomas Petazzoni2010-04-131-4/+1
| | | | | | | | | | | | | | These options are part of the default set of options passed to ./configure by the AUTOTARGETS infrastructure. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * argus: convert to the autotools infrastructureThomas Petazzoni2010-04-131-56/+8
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * tar: convert to the autotools infrastructureThomas Petazzoni2010-04-131-78/+4
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * bison: convert to the autotools infrastructureThomas Petazzoni2010-04-131-64/+5
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * Remove incorrect 'dummy' exampleThomas Petazzoni2010-04-132-100/+0
| | | | | | | | | | | | | | | | | | Since the introduction of the AUTOTARGETS infrastructure, the dummy example is no longer correct. Moreover, the documentation now contains extensive details about how new packages should be added, either using the GENTARGETS or the AUTOTARGETS infrastructures. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libcgi: convert to the autotools infrastructureThomas Petazzoni2010-04-131-65/+3
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libsysfs: convert to the autotools infrastructureThomas Petazzoni2010-04-131-57/+2
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libraw1394: convert to the autotools infrastructureThomas Petazzoni2010-04-131-62/+2
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libcgicc: convert to the autotools infrastructureThomas Petazzoni2010-04-131-59/+5
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * libosip2: convert to the autotools infrastructureThomas Petazzoni2010-04-131-77/+6
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * patch: convert to the autotools infrastructure and bump versionThomas Petazzoni2010-04-131-64/+5
| | | | | | | | | | | | | | Bumping the version from 2.5.9 to 2.6 allows to avoid adding a patch (merged upstream) to fix patch's Makefile install target. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * smartmontools: convert to the autotools infrastructureThomas Petazzoni2010-04-131-68/+1
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * setserial: convert to the autotools infrastructureThomas Petazzoni2010-04-131-66/+7
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * udpcast: convert to the autotools infrastructureThomas Petazzoni2010-04-131-79/+14
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * x11vnc: cleanup useless config optionsThomas Petazzoni2010-04-131-5/+2
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * vtun: convert to the autotools infrastructureThomas Petazzoni2010-04-131-71/+5
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | Update defconfigs after BR2_RECENT removalThomas Petazzoni2010-04-1226-26/+0
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | Remove the BR2_RECENT optionThomas Petazzoni2010-04-121-6/+0
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | Get rid of all usages of BR2_RECENTThomas Petazzoni2010-04-126-9/+0
|/ | | | | | | | | | | | Since BR2_RECENT was enabled by default, we do not want entries marked BR2_RECENT (and thus appearing by default in Buildroot) to disappear. Therefore, all the entries marked BR2_RECENT are converted as non-deprecated. We can later decide, on a per-entry basis, to add BR2_DEPRECATED to some of them. But at least, this commit doesn't change the default current behaviour of Buildroot. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Get rid of the OPTIMIZE_FOR_CPU variableThomas Petazzoni2010-04-112-5/+2
| | | | | | | | | | | | | | | This variable, together with the FIXME comment, has been added has part of Eric Andersen's « Major buildroot facelift, step one » commit that occured in October 2004. Since then, no real usage has been made of OPTIMIZE_FOR_CPU, and the initial intention has probably been lost in the memories of the implementors. Therefore, get rid of the variable, and just use $(ARCH) at the two locations the variable was used. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Get rid of useless OpenMP related codeThomas Petazzoni2010-04-112-8/+1
| | | | | | | | | | It seems that there was an intention to add BR2_ENABLE_OPENMP someday, but it was in June 2007 (commit c81807a9d71fba9f35eeb7e3f3b56bda4b2e0edd) and since then, nothing occured. Therefore, get rid of this code, and just pass --disable-openmp to gettext to keep the current behaviour. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Remove variables useless after BR2_PREFER_IMA removalThomas Petazzoni2010-04-111-4/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Get rid of unused variablesThomas Petazzoni2010-04-111-7/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Update defconfigs after BR2_ENABLE_LOCALE_PREGENERATED removalThomas Petazzoni2010-04-1111-11/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Remove BR2_ENABLE_LOCALE_PREGENERATEDThomas Petazzoni2010-04-112-30/+1
| | | | | | | | The option is marked broken since october 2009, and even the uClibc configuration help text says that using pregenerated locales is highly discouraged. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Get rid of now unused HOST_ARCH computation codeThomas Petazzoni2010-04-111-14/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Update defconfigs after BR2_GNU_BUILD_SUFFIX removalThomas Petazzoni2010-04-1127-27/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Guess build system and remove BR2_GNU_BUILD_SUFFIXThomas Petazzoni2010-04-114-19/+7
| | | | | | | Instead of having a configuration option BR2_GNU_BUILD_SUFFIX, let's use config.guess to guess the build system type. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Move the global config cache option to an Advanced submenuThomas Petazzoni2010-04-111-8/+12
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Bring the three path-related options togetherThomas Petazzoni2010-04-111-2/+2
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Move the command-related options to a submenuThomas Petazzoni2010-04-111-0/+4
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Update defconfigs after BR2_HAVE_{INFOPAGES,MANPAGES} removalThomas Petazzoni2010-04-1126-52/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>