buildroot.git
14 years agobusybox: make sure architecture flags are used at link time
Thomas Petazzoni [Thu, 17 Dec 2009 19:57:13 +0000 (20:57 +0100)]
busybox: make sure architecture flags are used at link time

When compiling Busybox, according to readelf -A, all object files were
properly compiled according to the select architecture (-march=armv4t
for example), but the final busybox binary could be of a different
architecture (ARMv5t even if ARMv4t was selected).

This patch changes the way we configure/compile Busybox so that our
CFLAGS aren't anymore passed through the make EXTRA_CFLAGS variable,
but through the .config CONFIG_EXTRA_CFLAGS variable. Unfortunately,
those variables don't have exactly the same semantic for the Busybox
build system.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoexternal-toolchain: Support for multilib toolchains
Thomas Petazzoni [Fri, 21 Aug 2009 23:13:22 +0000 (01:13 +0200)]
external-toolchain: Support for multilib toolchains

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>
14 years agoexternal-toolchain: support libraries outside of /lib
Thomas Petazzoni [Tue, 9 Feb 2010 20:34:49 +0000 (21:34 +0100)]
external-toolchain: support libraries outside of /lib

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>
14 years agoexternal toolchains: take into account architecture variant
Thomas Petazzoni [Fri, 21 Aug 2009 23:12:02 +0000 (01:12 +0200)]
external toolchains: take into account architecture variant

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>
14 years agoopenssl: fix build without ipv6 support
Peter Korsgaard [Thu, 15 Apr 2010 14:26:15 +0000 (16:26 +0200)]
openssl: fix build without ipv6 support

Closes #1567

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopciutils: convert to the generic-tools infrastructure
Thomas Brandstetter [Sun, 11 Apr 2010 08:26:24 +0000 (10:26 +0200)]
pciutils: convert to the generic-tools infrastructure

Signed-off-by: Thomas Brandstetter <thomas.brandstetter@me.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agomtd: host compilation needs host-zlib
Peter Korsgaard [Thu, 15 Apr 2010 12:02:22 +0000 (14:02 +0200)]
mtd: host compilation needs host-zlib

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agomtd: mkfs.jffs2 requires zlib to build
Will Wagner [Wed, 14 Apr 2010 22:24:26 +0000 (23:24 +0100)]
mtd: mkfs.jffs2 requires zlib to build

[Peter: lzo needed as well]
Signed-off-by: Will Wagner <will_wagner@carallon.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoiso9660: menu.lst fixup after move to fs
Peter Korsgaard [Thu, 15 Apr 2010 11:51:33 +0000 (13:51 +0200)]
iso9660: menu.lst fixup after move to fs

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoinitramfs: trivial fix following move to fs
Will Wagner [Wed, 14 Apr 2010 21:41:56 +0000 (22:41 +0100)]
initramfs: trivial fix following move to fs

Signed-off-by: Will Wagner <will_wagner@carallon.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agobusybox: 1.16.1 dnsd / hwclock fixes
Peter Korsgaard [Wed, 14 Apr 2010 18:41:15 +0000 (20:41 +0200)]
busybox: 1.16.1 dnsd / hwclock fixes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agolibdrm: enable/disable features according to driver selection
Paulius Zaleckas [Wed, 14 Apr 2010 12:31:02 +0000 (15:31 +0300)]
libdrm: enable/disable features according to driver selection

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>
14 years agoAdd libatomic_ops 1.2 needed by libdrm Intel support
Paulius Zaleckas [Wed, 14 Apr 2010 12:30:52 +0000 (15:30 +0300)]
Add libatomic_ops 1.2 needed by libdrm Intel support

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'autotools-conversion' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Tue, 13 Apr 2010 19:50:46 +0000 (21:50 +0200)]
Merge branch 'autotools-conversion' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agolibid3tag: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 19:59:42 +0000 (21:59 +0200)]
libid3tag: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibmad: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 19:58:12 +0000 (21:58 +0200)]
libmad: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoaumix: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 19:54:59 +0000 (21:54 +0200)]
aumix: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomadplay: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 19:53:56 +0000 (21:53 +0200)]
madplay: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agofindutils: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 19:50:22 +0000 (21:50 +0200)]
findutils: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoipkg: remove useless configure options
Thomas Petazzoni [Sat, 10 Apr 2010 17:20:07 +0000 (19:20 +0200)]
ipkg: remove useless configure options

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>
14 years agoargus: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:18:57 +0000 (19:18 +0200)]
argus: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotar: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:11:47 +0000 (19:11 +0200)]
tar: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agobison: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:11:03 +0000 (19:11 +0200)]
bison: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove incorrect 'dummy' example
Thomas Petazzoni [Sat, 10 Apr 2010 17:07:48 +0000 (19:07 +0200)]
Remove incorrect 'dummy' example

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>
14 years agolibcgi: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:04:26 +0000 (19:04 +0200)]
libcgi: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibsysfs: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:03:27 +0000 (19:03 +0200)]
libsysfs: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibraw1394: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 17:01:15 +0000 (19:01 +0200)]
libraw1394: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibcgicc: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:59:34 +0000 (18:59 +0200)]
libcgicc: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibosip2: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:58:28 +0000 (18:58 +0200)]
libosip2: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agopatch: convert to the autotools infrastructure and bump version
Thomas Petazzoni [Mon, 12 Apr 2010 13:06:55 +0000 (15:06 +0200)]
patch: convert to the autotools infrastructure and bump version

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>
14 years agosmartmontools: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:50:08 +0000 (18:50 +0200)]
smartmontools: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosetserial: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:48:53 +0000 (18:48 +0200)]
setserial: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoudpcast: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:45:07 +0000 (18:45 +0200)]
udpcast: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agox11vnc: cleanup useless config options
Thomas Petazzoni [Sat, 10 Apr 2010 16:39:35 +0000 (18:39 +0200)]
x11vnc: cleanup useless config options

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agovtun: convert to the autotools infrastructure
Thomas Petazzoni [Sat, 10 Apr 2010 16:34:47 +0000 (18:34 +0200)]
vtun: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after BR2_RECENT removal
Thomas Petazzoni [Sat, 10 Apr 2010 20:53:23 +0000 (22:53 +0200)]
Update defconfigs after BR2_RECENT removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove the BR2_RECENT option
Thomas Petazzoni [Sat, 10 Apr 2010 20:52:53 +0000 (22:52 +0200)]
Remove the BR2_RECENT option

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoGet rid of all usages of BR2_RECENT
Thomas Petazzoni [Sat, 10 Apr 2010 20:52:38 +0000 (22:52 +0200)]
Get rid of all usages of BR2_RECENT

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>
14 years agoGet rid of the OPTIMIZE_FOR_CPU variable
Thomas Petazzoni [Sat, 10 Apr 2010 21:50:45 +0000 (23:50 +0200)]
Get rid of the OPTIMIZE_FOR_CPU variable

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>
14 years agoGet rid of useless OpenMP related code
Thomas Petazzoni [Sat, 10 Apr 2010 21:46:54 +0000 (23:46 +0200)]
Get rid of useless OpenMP related code

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>
14 years agoRemove variables useless after BR2_PREFER_IMA removal
Thomas Petazzoni [Sat, 10 Apr 2010 21:44:11 +0000 (23:44 +0200)]
Remove variables useless after BR2_PREFER_IMA removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoGet rid of unused variables
Thomas Petazzoni [Sat, 10 Apr 2010 21:42:02 +0000 (23:42 +0200)]
Get rid of unused variables

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after BR2_ENABLE_LOCALE_PREGENERATED removal
Thomas Petazzoni [Sat, 10 Apr 2010 21:39:14 +0000 (23:39 +0200)]
Update defconfigs after BR2_ENABLE_LOCALE_PREGENERATED removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove BR2_ENABLE_LOCALE_PREGENERATED
Thomas Petazzoni [Sat, 10 Apr 2010 21:37:18 +0000 (23:37 +0200)]
Remove BR2_ENABLE_LOCALE_PREGENERATED

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>
14 years agoGet rid of now unused HOST_ARCH computation code
Thomas Petazzoni [Sat, 10 Apr 2010 21:19:24 +0000 (23:19 +0200)]
Get rid of now unused HOST_ARCH computation code

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after BR2_GNU_BUILD_SUFFIX removal
Thomas Petazzoni [Sat, 10 Apr 2010 21:18:41 +0000 (23:18 +0200)]
Update defconfigs after BR2_GNU_BUILD_SUFFIX removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoGuess build system and remove BR2_GNU_BUILD_SUFFIX
Thomas Petazzoni [Sat, 10 Apr 2010 21:17:25 +0000 (23:17 +0200)]
Guess build system and remove BR2_GNU_BUILD_SUFFIX

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>
14 years agoMove the global config cache option to an Advanced submenu
Thomas Petazzoni [Sat, 10 Apr 2010 20:56:52 +0000 (22:56 +0200)]
Move the global config cache option to an Advanced submenu

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoBring the three path-related options together
Thomas Petazzoni [Sat, 10 Apr 2010 20:55:38 +0000 (22:55 +0200)]
Bring the three path-related options together

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoMove the command-related options to a submenu
Thomas Petazzoni [Sat, 10 Apr 2010 20:55:01 +0000 (22:55 +0200)]
Move the command-related options to a submenu

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after BR2_HAVE_{INFOPAGES,MANPAGES} removal
Thomas Petazzoni [Sat, 10 Apr 2010 20:48:23 +0000 (22:48 +0200)]
Update defconfigs after BR2_HAVE_{INFOPAGES,MANPAGES} removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoGet rid of BR2_HAVE_{MANPAGES,INFOPAGES} config options
Thomas Petazzoni [Sat, 10 Apr 2010 20:47:28 +0000 (22:47 +0200)]
Get rid of BR2_HAVE_{MANPAGES,INFOPAGES} config options

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUse BR2_HAVE_DOCUMENTATION instead of BR2_HAVE_{MANPAGES,INFOPAGES}
Thomas Petazzoni [Sat, 10 Apr 2010 20:47:05 +0000 (22:47 +0200)]
Use BR2_HAVE_DOCUMENTATION instead of BR2_HAVE_{MANPAGES,INFOPAGES}

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoDo not remove documentation on a per-package basis
Thomas Petazzoni [Sat, 10 Apr 2010 20:44:37 +0000 (22:44 +0200)]
Do not remove documentation on a per-package basis

Since the documentation cleanup is done by the main Makefile in a
global way, there's no need to do that on a per-package basis in the
generic package infrastructure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove all documentation when BR2_HAVE_DOCUMENTATION is not set
Thomas Petazzoni [Sat, 10 Apr 2010 20:42:45 +0000 (22:42 +0200)]
Remove all documentation when BR2_HAVE_DOCUMENTATION is not set

Until now, we had BR2_HAVE_MANPAGES, BR2_HAVE_INFOPAGES and
BR2_HAVE_DOCUMENTATION, but there's no need to have such a
fine-grained control over what documentation gets kept or not.

Therefore, just remove all the documentation (man pages, info pages
and documentation in $(TARGET_DIR)/usr/doc and
$(TARGET_DIR)/usr/share/doc) when BR2_HAVE_DOCUMENTATION is not set.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoDo not let packages remove man pages, info pages and documentation
Thomas Petazzoni [Sat, 10 Apr 2010 20:39:53 +0000 (22:39 +0200)]
Do not let packages remove man pages, info pages and documentation

The cleanup of $(TARGET_DIR)/usr/share/man, $(TARGET_DIR)/usr/man,
$(TARGET_DIR)/usr/share/info, $(TARGET_DIR)/usr/info,
$(TARGET_DIR)/usr/share/doc and $(TARGET_DIR)/usr/doc is already done
globally in the main Makefile. Therefore, there's no need to handle
that on a per-package basis.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after BR2_UPDATE_CONFIG removal
Thomas Petazzoni [Sat, 10 Apr 2010 20:21:54 +0000 (22:21 +0200)]
Update defconfigs after BR2_UPDATE_CONFIG removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate config.{guess,sub} unconditionally
Thomas Petazzoni [Sat, 10 Apr 2010 20:18:28 +0000 (22:18 +0200)]
Update config.{guess,sub} unconditionally

Remove the BR2_UPDATE_CONFIG option which allowed to globally
enable/disable the replacement of config.{guess,sub} for
autotools-based packages. Doing it unconditionnally just works.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfig after BR2_PREFER_IMA removal
Thomas Petazzoni [Sat, 10 Apr 2010 20:15:46 +0000 (22:15 +0200)]
Update defconfig after BR2_PREFER_IMA removal

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove BR2_PREFER_IMA
Thomas Petazzoni [Sat, 10 Apr 2010 20:14:39 +0000 (22:14 +0200)]
Remove BR2_PREFER_IMA

This option is barely used, no-one is maintaining it or extending
it. So let's remove it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocramfs: fix help text typo
Peter Korsgaard [Fri, 9 Apr 2010 14:19:13 +0000 (16:19 +0200)]
cramfs: fix help text typo

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'squashfs3' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 9 Apr 2010 14:17:57 +0000 (16:17 +0200)]
Merge branch 'squashfs3' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoMerge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 9 Apr 2010 14:16:44 +0000 (16:16 +0200)]
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoAdd version selection for the SquashFS root filesystem
Thomas Petazzoni [Fri, 9 Apr 2010 10:15:59 +0000 (12:15 +0200)]
Add version selection for the SquashFS root filesystem

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosquashfs3: new package
Thomas Petazzoni [Fri, 9 Apr 2010 10:15:25 +0000 (12:15 +0200)]
squashfs3: new package

Add support for the old squashfs 3.x tools, so that squashfs 3.x root
filesystems can be generated.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agofs/*/Config.in: remove useless configuration comments
Thomas Petazzoni [Wed, 10 Mar 2010 22:05:14 +0000 (23:05 +0100)]
fs/*/Config.in: remove useless configuration comments

The dependency on gzip, bzip2 and lzma are properly handled
automatically. No need to tell the user about this.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate defconfigs after fs cleanup
Thomas Petazzoni [Wed, 10 Mar 2010 21:56:06 +0000 (22:56 +0100)]
Update defconfigs after fs cleanup

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoCoherent naming for .mk files in fs/
Thomas Petazzoni [Wed, 10 Mar 2010 21:31:32 +0000 (22:31 +0100)]
Coherent naming for .mk files in fs/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoMove all filesystem generation code to fs/
Thomas Petazzoni [Wed, 10 Mar 2010 21:30:06 +0000 (22:30 +0100)]
Move all filesystem generation code to fs/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove IMAGE and related configuration options
Thomas Petazzoni [Wed, 10 Mar 2010 21:13:47 +0000 (22:13 +0100)]
Remove IMAGE and related configuration options

Now, we just hardcode the image filenames to be rootfs.$(FSTYPE), in
the $(BINARIES_DIR).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoiso9660: rework in a similar way to ROOTFS_TARGET
Thomas Petazzoni [Wed, 10 Mar 2010 21:12:24 +0000 (22:12 +0100)]
iso9660: rework in a similar way to ROOTFS_TARGET

Unfortunately, it cannot use the ROOTFS_TARGET infrastructure, due to
the specifities of the iso9660 build process.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/common: do not use IMAGE
Thomas Petazzoni [Wed, 10 Mar 2010 21:11:21 +0000 (22:11 +0100)]
target/common: do not use IMAGE

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agobusybox initramfs: do not use the IMAGE variable
Thomas Petazzoni [Wed, 10 Mar 2010 21:10:23 +0000 (22:10 +0100)]
busybox initramfs: do not use the IMAGE variable

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoinitramfs: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:23:58 +0000 (00:23 +0100)]
initramfs: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoubifs: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:16:30 +0000 (00:16 +0100)]
ubifs: convert to ROOTFS_TARGET infrastructure

We also remove the BR2_TARGET_ROOTFS_UBIFS_OUTPUT option, that could
be used to specify an alternate name for the generated image file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agojffs2: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:16:01 +0000 (00:16 +0100)]
jffs2: convert to ROOTFS_TARGET infrastructure

We also remove the BR2_TARGET_ROOTFS_JFFS2_OUTPUT option, that could
be used to specify an alternate name for the generated image file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoext2: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:15:15 +0000 (00:15 +0100)]
ext2: convert to ROOTFS_TARGET infrastructure

We also remove the BR2_TARGET_ROOTFS_EXT2_OUTPUT option, that could be
used to specify an alternate name for the generated image file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosquashfs: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:14:29 +0000 (00:14 +0100)]
squashfs: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotar: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:14:16 +0000 (00:14 +0100)]
tar: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoromfs: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:14:06 +0000 (00:14 +0100)]
romfs: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocramfs: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:13:39 +0000 (00:13 +0100)]
cramfs: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocpio: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:13:24 +0000 (00:13 +0100)]
cpio: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocloop: convert to ROOTFS_TARGET infrastructure
Thomas Petazzoni [Tue, 9 Mar 2010 23:13:12 +0000 (00:13 +0100)]
cloop: convert to ROOTFS_TARGET infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget: Add new infrastructure for filesystem generation
Thomas Petazzoni [Tue, 9 Mar 2010 23:11:58 +0000 (00:11 +0100)]
target: Add new infrastructure for filesystem generation

In order to avoid code duplication between the different filesystem
generation makefile, we introduce a ROOTFS_TARGET macro. Documentation
for this macro is contained in the patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/: remove the COPYTO mess
Thomas Petazzoni [Tue, 2 Mar 2010 22:10:49 +0000 (23:10 +0100)]
target/: remove the COPYTO mess

There's no need to provide options to copy the filesystem image after
the build. Just use 'cp' outside of Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agofakeroot: remove all references to BR2_HOST_FAKEROOT
Thomas Petazzoni [Tue, 2 Mar 2010 21:57:58 +0000 (22:57 +0100)]
fakeroot: remove all references to BR2_HOST_FAKEROOT

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agofakeroot: convert to the autotools infrastructure
Thomas Petazzoni [Tue, 2 Mar 2010 21:56:33 +0000 (22:56 +0100)]
fakeroot: convert to the autotools infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/ubifs: cleanup, unbroken
Thomas Petazzoni [Tue, 2 Mar 2010 21:45:43 +0000 (22:45 +0100)]
target/ubifs: cleanup, unbroken

Use package/mtd to build the host mtd-utils, which contains
mkfs.ubifs. Remove dependency on BR2_HOST_FAKEROOT.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/tar: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:45:15 +0000 (22:45 +0100)]
target/tar: cleanup

Remove dependency on BR2_HOST_FAKEROOT.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/squashfs: cleanup, remove support for 3.x
Thomas Petazzoni [Tue, 2 Mar 2010 21:43:50 +0000 (22:43 +0100)]
target/squashfs: cleanup, remove support for 3.x

Remove the code to build squashfs-tools for the host, since they can
now be built using package/squashfs.

We also remove support for Squashfs 3.x, because the Squashfs driver
merged inside the mainline kernel is a 4.x driver. So 3.x is only
useful for old kernels using a Squashfs patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/romfs: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:43:21 +0000 (22:43 +0100)]
target/romfs: cleanup

Remove the code needed to build host genromfs, since it can now be
done using package/genromfs.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/jffs2: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:43:01 +0000 (22:43 +0100)]
target/jffs2: cleanup

Remove the code to build host MTD utils, since they can now be built
using package/mtd.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/iso9660: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:42:20 +0000 (22:42 +0100)]
target/iso9660: cleanup

Remove the mkisofs host tools building process, which is now in
package/cdrkit.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/ext2: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:41:26 +0000 (22:41 +0100)]
target/ext2: cleanup

Remove the genext2fs host tools building process, which is now in
package/genext2fs.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/cramfs: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:40:45 +0000 (22:40 +0100)]
target/cramfs: cleanup

Remove the cramfs host tools building process, which is now in
package/cramfs.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/cpio: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:39:25 +0000 (22:39 +0100)]
target/cpio: cleanup

 * Remove the dependency on BR2_HOST_FAKEROOT, since we don't have
   config option for host tools.

 * Remove a few useless things.

 * Check that cpio is available on the host in
   toolchain/dependencies/dependencies.sh.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agotarget/cloop: cleanup
Thomas Petazzoni [Tue, 2 Mar 2010 21:38:04 +0000 (22:38 +0100)]
target/cloop: cleanup

Remove the code to build the cloop utilities for the host (it is now
in package/cloop).

Use fakeroot instead of ugly sudo. The cloop filesystem generation
code is now much more similar to other filesystems code.

Remove empty Makefile.in.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolzma: convert the host package to the autotools infrastructure
Thomas Petazzoni [Tue, 2 Mar 2010 21:36:43 +0000 (22:36 +0100)]
lzma: convert the host package to the autotools infrastructure

Note that we loose the ability to use a lzma command available on the
host and we now always build your own if a package needs it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocloop: new package
Thomas Petazzoni [Tue, 2 Mar 2010 21:35:44 +0000 (22:35 +0100)]
cloop: new package

Only the host variant is supported, which explains why there is no
Config.in file. Will be used by the filesystem generation code.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomtd: convert to gentargets, add host package
Thomas Petazzoni [Tue, 2 Mar 2010 21:34:58 +0000 (22:34 +0100)]
mtd: convert to gentargets, add host package

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>