Commit Graph

52 Commits

Author SHA1 Message Date
Thomas Petazzoni
397fe5cc0b Remove the "project" feature
The "project" feature was designed to allow to several projects to be
built inside the same Buildroot source tree and allowing the toolchain
and non-configurable packages to be shared between the different
projects on the same architecture. While being interesting in theory,
this feature adds a level of complexity to Buildroot, both from an
user perspective and from a developer perspective, while one of the
main Buildroot strengh is to be simple. Moreover, this feature is only
seldomly used by our users.

From a user-level perspective, this for example allows to remove the
project_build_ARCH directory, which was very confusing. The
autotools-stamps directory is also removed, since these stamps are
back at their normal location.

Description of the changes involved :

 * project/, directory removed

 * Makefile

    - Don't include project/Makefile.in and project/project.mk anymore

    - Grab a copy of the contents of project/Makefile.in at the
      location it was imported, but remove the definition related to
      PROJECT_BUILD_DIR. The TARGET_DIR is now in
      $(BUILD_DIR)/target_dir

    - Remove the creation/removal of the $(PROJECT_BUILD_DIR) and
      $(PROJECT_BUILD_DIR)/autotools-stamps directories

    - Don't make world depends on target-host-info. This target was
      defined by project/project.mk to customize /etc/issue,
      /etc/hostname and create /etc/br-version depending on the
      project definitions. We can of course imagine re-adding such a
      feature later.

    - Replace PROJECT_BUILD_DIR by BUILD_DIR everywhere

    - Remove the update, log and lognr.$(PROJECT) target, they were
      specific to the project feature.

 * package/Makefile.autotools.in

    - Replace PROJECT_BUILD_DIR by BUILD_DIR for the location of the
      configure cache

    - Move the INSTALL_TARGET and HOOK_POST_INSTALL stamps to the same
      directory as the other stamps (i.e, in the package directory).

 * package/Makefile.in

    - Replace PROJECT_BUILD_DIR by BUILD_DIR for the location of the
      configure cache

 * package/at/at.mk,
   package/busybox/busybox.mk,
   package/busybox/initramfs.mk,
   package/customize/customize.mk,
   package/linux-fusion/linux-fusion.mk,
   package/ltp-testsuite/ltp-testsuite.mk,
   package/nfs-utils/nfs-utils.mk,
   target/cpio/cpioroot.mk,
   target/cramfs/cramfs.mk,
   target/device/Atmel/DataFlashBoot/DataflashBoot.mk,
   target/device/Atmel/Makefile.in,
   target/device/Atmel/at91bootstrap/at91bootstrap.mk,
   target/device/KwikByte/Makefile.in,
   target/ext2/ext2root.mk,
   target/initramfs/initramfs.mk,
   target/iso9660/iso9660.mk,
   target/jffs2/jffs2root.mk,
   target/linux/Makefile.in,
   target/romfs/romfs.mk,
   target/squashfs/squashfsroot.mk,
   target/tar/tarroot.mk,
   target/ubifs/ubifsroot.mk

    - Replace PROJECT_BUILD_DIR by BUILD_DIR

 * target/device/Config.in

    - Do not include project/Config.in anymore

 * target/linux/Makefile.in.advanced

    - Replace PROJECT_BUILD_DIR by BUILD_DIR

    - Store the stamps file in $(STAMP_DIR) instead of
      $(PROJECT_BUILD_DIR)/autotools-stamps

 * target/u-boot/Makefile.in

    - Replace PROJECT_BUILD_DIR by BUILD_DIR

    - Remove $(PROJECT) from the U-Boot target binary name

    - Remove the insertion in the configuration of the project name as
      the hostname

    - The u-boot-autoscript target now generates
      $(U_BOOT_AUTOSCRIPT).img instead of
      $(U_BOOT_AUTOSCRIPT).$(PROJECT)

 * toolchain/gcc/gcc-uclibc-3.x.mk
   toolchain/gcc/gcc-uclibc-4.x.mk

    - Move the stamps files to $(STAMP_DIR)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-09-16 20:28:25 +02:00
Peter Korsgaard
76aaac62a6 squashfs: fix for mksquashfs 4.0 race condition
Fix for the race condition in mksquashfs recently seen.
Patch by Phillip Lougher.

See http://thread.gmane.org/gmane.comp.file-systems.squashfs.devel/76
for details.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-14 15:56:34 +02:00
Thomas Petazzoni
79c213fbe5 target: use qstrip
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-09-05 14:43:17 +02:00
Peter Korsgaard
32faf35112 Makefile: add target-finalize for common filesystem cleanup
And remove from each rootfs variant.
2009-04-07 21:04:31 +00:00
Peter Korsgaard
7092bd901d squashfs: add v4.0 support and version selection
Squashfs 4.0 is needed to create file systems for the mainline squashfs
version (mainline from 2.6.29). This is unfortunately not compatible with
the old 3.x version and the external kernel patches, so add a choice
between the 2 versions.
2009-04-06 09:21:36 +00:00
Peter Korsgaard
d290edadb9 fakeroot: install into HOST_DIR 2009-04-01 14:15:19 +00:00
Peter Korsgaard
7737b360df makedevs: install into HOST_DIR 2009-04-01 13:02:07 +00:00
Peter Korsgaard
ed5f6093c0 target/: convert to DOWNLOAD helper 2009-01-16 11:48:43 +00:00
Peter Korsgaard
4b72854dde target/: get rid of unneeded $(strip ..) 2008-12-08 08:15:58 +00:00
Peter Korsgaard
dc8423d97f squashfs: bump version 2008-08-27 07:46:55 +00:00
Peter Korsgaard
4683420c4c Kconfig: remove 'default n'
'default n' is the default, so there's no need to say it explicitly.
2008-07-17 20:01:44 +00:00
Peter Korsgaard
a25b193708 squashfs: set sensible permissions on squashfs image 2008-04-25 12:04:04 +00:00
Peter Korsgaard
4f375bc050 squashfs: bump version 2008-03-04 11:36:20 +00:00
Bernhard Reutner-Fischer
14a71561a3 - just use the strip binary to avoid confusing libtool (quotes)
- use $(STRIPCMD) in packages to avoid clashes with $(STRIP)
2007-10-01 16:15:31 +00:00
Bernhard Reutner-Fischer
3649fd504d - workaround for broken external toolchains 2007-08-25 11:13:20 +00:00
Bernhard Reutner-Fischer
956d3eb78b - semicolon touchup. No other changes 2007-08-22 09:56:41 +00:00
Bernhard Reutner-Fischer
1afb8226cb - start to use BR2_HAVE_MANPAGES and BR2_HAVE_INFOPAGES
- always error out if ldconfig for the target fails (was inconsistent..)
2007-08-21 14:32:38 +00:00
Bernhard Reutner-Fischer
f88b8e0bf3 - a few more cleanups (Cristian Ionescu-Idbohrn) 2007-08-21 10:40:18 +00:00
Ulf Samuelsson
5d2be04979 Move fakeroot temps from STAGING_DIR to PROJECT_BUILD_DIR 2007-08-16 18:19:42 +00:00
Peter Korsgaard
6c0c83fb56 Use cross ldconfig instead of host version 2007-08-08 14:58:47 +00:00
Peter Korsgaard
45ac6df37c Use BR2_ENDIAN for big/little endianness detection 2007-06-12 15:30:32 +00:00
Peter Korsgaard
4cdef5138d s/FAKEROUTE/FAKEROOT/ 2007-05-03 08:25:17 +00:00
Bernhard Reutner-Fischer
73be7f9ef4 - make sure to download fakeroot if needed 2007-04-06 16:36:48 +00:00
Bernhard Reutner-Fischer
f94a44c3ad - use numeric values for the superuser to be more portable.
Closes #1250
2007-03-20 16:52:44 +00:00
Bernhard Reutner-Fischer
0091f181ef - do not use TARGET_DEVICE_TABLE if is is empty 2007-02-15 16:49:39 +00:00
Peter Korsgaard
297cae9359 Bump version 2007-01-18 12:39:05 +00:00
Bernhard Reutner-Fischer
6342c83201 - use $(ZCAT) as configured by the user instead of hardcoded 'zcat' that may not exist; Closes #971
Silly, unchecked sed -i -e "/[^b]zcat/s/zcat/\$\(ZCAT\)/g" $(svngrep "[^b]zcat" * -rl | grep -v Config.in)
2006-10-01 15:17:52 +00:00
Peter Korsgaard
611b040535 Bump to upstream v3.1 2006-08-21 07:24:22 +00:00
Peter Korsgaard
194b234748 Bump to upstream v3.0
Notice that this uses a new NON-compatible filesystem format, so you need
the v3.0 kernel patch to access it!
2006-05-24 18:07:33 +00:00
Mike Frysinger
b81bcbd229 Alessio Massaro writes: The syntax $VAR_NAME is used in several places. The correct syntax is actually $(VAR_NAME) 2006-04-21 01:23:35 +00:00
Eric Andersen
674d61d84b yet again... rework fakeroot handling to ensure fakeroot is invoked just once,
as it seems to sometimes lose values logged during from earlier invocations.
2006-04-10 22:49:48 +00:00
Eric Andersen
8cfa7aa965 As noted by jacmet in bug 824:
svn 14777 seems to have broken cramfs/squashfs/tarroot.

The problem is that $(IMAGE) is the absolute path of the image including
directories, so the build tries to access
$(STAGING_DIR)/_fakeroot.</full/path/to/buildroot/directory> which doesn't
exist.

The fix is to define CRAMFS/SQUASHFS/TAR_TARGET as $(notdir
$(IMAGE).<extension>) instead.
2006-04-10 17:48:53 +00:00
Eric Andersen
5418a92350 make sure things still work even when fakeroot is not in active use 2006-04-07 22:42:15 +00:00
Eric Andersen
ee66f55213 rework fakeroot handling to avoid races during parallel make causing several
fakeroot instances stomping eachother's temp files.
2006-04-07 20:30:43 +00:00
Mike Frysinger
2e31d32a0c touchup target menu display 2005-09-09 00:12:13 +00:00
Eric Andersen
d70e7f4f1e Prevent problems with fakeroot possibly trying to use stale host filesystem
inodes by carefully regenerating fakeroot.env from package specific files.
2005-08-08 07:53:10 +00:00
Eric Andersen
06c5ff4e82 minor cleanup for target handling 2005-08-08 06:57:43 +00:00
Eric Andersen
d1345f067e Allow packages to use fakeroot. To accomodate this, convert all
target filesystem creation tools to also use fakeroot.
2005-08-04 06:32:52 +00:00
Eric Andersen
5ef0c31bf4 Run ldconfig on the target rootfs to generate /etc/ld.so.cache 2005-07-14 23:30:39 +00:00
Eric Andersen
050e27b985 don't use the older 2.0 squashfs format 2005-06-24 14:29:10 +00:00
Eric Andersen
a8572703c5 Upgrade to latest, handle endianness automagically 2005-06-24 10:30:09 +00:00
Eric Andersen
93e6e0735a The '-r' option has gone away 2005-06-24 08:48:06 +00:00
Eric Andersen
369864cf10 be a bit more consistant with naming, always escape wildcards 2005-06-24 08:36:13 +00:00
Eric Andersen
eb0ee4509d Finish implementing fakeroot handling so mksquashfs properly
inherits device table settings and device nodes, exactly as
per mkfs* applications that support device tables natively.
2005-06-24 07:26:33 +00:00
Eric Andersen
afcdf8a01a Use fakeroot and makedevs to fake mksquashfs into building properly setup file
permissions and device nodes into the target rootfs without needing to be root.
2005-06-24 05:02:00 +00:00
Eric Andersen
e83529ad36 mksquashfs is always rebuilt before generating rootfs image. The attached
patch avoids this issue, by creating a .unpacked file in the squashfs directory
after the source tarball is unpacked, and making the mksquashfs target depend
on the .unpacked file.

http://bugs.busybox.net/view.php?id=234
2005-06-24 03:14:20 +00:00
Eric Andersen
1d63e8a8d9 Make the sourceforge mirror site a config option, as sourceforge
mirrors tend to change, move, go down, etc from time to time.
2005-06-09 12:15:00 +00:00
Eric Andersen
d06645d8ed There is no need to have a separate 'Makefile.in' file in the
general case, therefore, combine the toplevel Makefile options
such as setting TARGETS into the per-package *.mk file
2005-02-10 03:06:39 +00:00
Tim Riker
aabea2803d use fs type as file extension 2004-10-27 18:12:49 +00:00
Eric Andersen
275fcee617 Fix it so we once again build the target root_fs 2004-10-09 04:46:15 +00:00