Commit Graph

306 Commits

Author SHA1 Message Date
Peter Korsgaard
e7b38c71ce package: add STAMP_DIR and use for host builds
Move stamp (dependency) files outside the (version specific) source
directories, so other packages can hardcode dependencies on them instead
of having to use <PACKAGE>_VERSION variables.

This is important as the variables in the make rules are evaluated when
the rules is seen, which might be before the dependent makefile is parsed
(and hence <PACKAGE>_VERSION variable is known, screwing up stuff.

The downside of this is that the package isn't automatically rebuilt
when the version changes (E.G. by a svn update) and you now also have to
remove the stamp files next to $(BUILD_DIR)/<PACKAGE>-* to force a rebuild.
2009-03-19 11:06:47 +00:00
Peter Korsgaard
bd07d92aad Makefile: introduce $(HOST_DIR) for host binaries
Add HOST_DIR directory handling. HOST_DIR should be used just like
STAGING_DIR, but for host files instead of target ones.
2009-03-16 15:48:43 +00:00
Ulf Samuelsson
8a446caa89 make update shoudl save to PROJECT_defconfig 2009-01-31 20:38:55 +00:00
Ulf Samuelsson
260d3b4ac2 make flush, should always be visible 2009-01-29 09:34:11 +00:00
Peter Korsgaard
b30d673c06 Makefile: fix typo introduced in r25601 2009-01-26 19:42:47 +00:00
Ulf Samuelsson
cf7d9872f2 Fix spelling error in Makefile comment 2009-01-26 19:37:54 +00:00
Peter Korsgaard
e03683e066 libglib2: move HOST_GLIB detection to glib package
Makes more sense to have it here, and easier to change once we start
building host-glib.
2009-01-26 19:10:41 +00:00
Ulf Samuelsson
13a85e3c04 Flush configuration cache, needed if config has changed 2009-01-25 23:01:22 +00:00
Peter Korsgaard
f85f2de174 Makefile: globally define variables used at different places
$(comma) and $(space) are used in packages and the toolchain.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
2009-01-25 20:19:01 +00:00
Ulf Samuelsson
7b2ec61074 Add help for make configured 2009-01-22 23:03:17 +00:00
Peter Korsgaard
2671be4d64 Makefile: update copyright 2009-01-16 10:27:27 +00:00
Peter Korsgaard
e62d2ecda0 Makefile: implement make release 2009-01-15 19:36:06 +00:00
Hans-Christian Egtvedt
386b8139ea Mention the saveconfig and getconfig targets in make help
I often find myself forgetting what those targets were called, and I imagine
others may not even be aware of their existence.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2009-01-08 13:16:24 +00:00
Peter Korsgaard
69f8592407 buildroot: set SHELL instead of messing around with CONFIG_SHELL
Simply set SHELL to bash instead of adding CONFIG_SHELL to all shell
invocations. CONFIG_SHELL is still set, as it is used by kconfig.
2009-01-01 21:20:35 +00:00
Peter Korsgaard
95e165c2bc Makefile: revert HOST_GLIB_BIN staging_dir fix (r23920,23923)
It causes more trouble than it's worth, and we should move to building those
host tools ourselves to not get into version issues anyway.
2008-11-07 08:57:59 +00:00
Hans-Christian Egtvedt
7167dedea2 Build $(PROJECT_BUILD_DIR)/autotools-stamps with normal Makefile rules
This patch will add a rule to top level Makefile to depend on the
$(PROJECT_BUILD_DIR)/autotools-stamps as a required directory. Hence it will be
generated if missing in stead of made when the $(PROJECT_BUILD_DIR)/.root rule
is triggered.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-11-05 11:39:46 +00:00
Hans-Christian Egtvedt
d86faadff9 Move creation of $(PROJECT_BUILD_DIR)/autotools-stamps into top level Makefile
This patch will create the autotools-stamps directory early in the build
process, thus making it possible for non Makefile.autotools.in packages to use
this directory to hold stamp files.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-11-05 10:41:31 +00:00
Peter Korsgaard
d1a7ffe8f9 Makefile: glib-genmarshal: use BR2_STAGING_DIR instead of hardcoded staging_dir 2008-11-04 12:50:38 +00:00
Peter Korsgaard
b948fdba22 Makefile: ignore glib-genmarshal in staging_dir
HOST_GLIB is set to the path that contains the host glib tool set and is
used when building packages using glib. The buildroot top level Makefile
sets HOST_GLIB using which to find the path where glib-genmarshal is
located.

The problem is that a cross compiled version of glib-genmarshal is also
put in the build_ARCH/staging_dir/usr/bin directory when the package
libglib2 is built. This cross compiled version will typically not run on
the host system.

Fix it by ignoring staging_dir in the which output.

Closes #5934

jacmet: fixed to work correctly if it's only found in staging_dir.
2008-11-03 20:11:03 +00:00
Peter Korsgaard
51f5f62754 External toolchain support improvements
Improve external toolchain support

 * Do not put kernel-headers in the dependencies of BASE_TARGETS in
   the case where BR2_TOOLCHAIN_SOURCE is not y. The kernel headers
   are already supposed to be part of the external toolchain, so
   there's no need to download, extract and install them.

 * In the configuration system, don't display the kernel headers
   version selection list when an external toolchain is selected. This
   is implemented by moving the source
   "toolchain/kernel-headers/Config.in" inside the if
   BR2_TOOLCHAIN_SOURCE in toolchain/Config.in.2.

 * Change the description and help message of the BR2_LARGEFILE,
   BR2_INET_IPV6, BR2_INET_RPC, and BR2_SOFT_FLOAT option in
   toolchain/external-toolchain/Config.in. In the case of an external
   toolchain, the semantic of these options is not to enable large
   file support, IPV6 or RPC (since the toolchain is already compiled,
   it has been decided previously). Their semantic is to let Buildroot
   know about the characteristics of the external toolchain being
   used.

   As an improvement, we could guess these values automatically:

    - for BR2_LARGEFILE, look at the value of __UCLIBC_HAS_LFS__ in
      bits/uClibc_config.h in the libc headers directory.

    - for BR2_INET_RPC, look at the value of __UCLIBC_HAS_RPC__ in the
      same file

    - for BR2_INET_IPV6, look at the value of __UCLIBC_HAS_IPV6__ in
      the same file

    - for BR2_SOFT_FLOAT, look at the output of $(CC) -v 2>&1 | grep
      -- "--with-float=soft"

   But I'm not sure how this would be possible, since these values are
   used at configuration-time by other configuration options, not only
   at build time.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2008-11-03 10:18:39 +00:00
Hamish Moffatt
346844d057 Applied patch from Brian Foster <brian.foster@innova-card.com>:
make "make clean" remove the .root stamp, so that everything will
be reinstalled properly on a subsequent build. (bug id 4304)
Also remove new autotools-stamps directory.
2008-09-11 02:22:47 +00:00
Peter Korsgaard
02a623ddf9 buildroot: remove trailing spaces
for i in `find -name 'Config*' -o -name 'Makefile*' -o -name '*.mk'`;
do
	sed -i 's/ \+$//' $i;
done
2008-08-04 19:07:05 +00:00
Peter Korsgaard
bcad6288f5 Makefile.autotools.in: fix make source-check/external-deps differently
The MAKELEVEL test is not that robust; It fails with the recent log
support or if buildroot is driven from an external Makefile.

Rework it to instead detect source-check/external-deps by the fact that
they set SPIDER.
2008-07-24 13:38:39 +00:00
Ulf Samuelsson
552c0d197b Fix log 2008-07-07 23:20:09 +00:00
Ulf Samuelsson
9220e90b0a Fix log 2008-07-07 18:32:41 +00:00
Ulf Samuelsson
2ad346abb7 Add slashes to allow TOPDIR to end without a slash in the future 2008-07-07 18:26:09 +00:00
Ulf Samuelsson
84518dc8d7 Remove some debug messages 2008-07-07 17:48:27 +00:00
Ulf Samuelsson
54e9332892 Replace configuring GLIB with autodetect 2008-07-06 07:34:41 +00:00
Ulf Samuelsson
50cbb4a188 Add configuration possibility for host Gnome Lib installation 2008-07-05 09:22:38 +00:00
Ulf Samuelsson
def8b8d12d Add version number to log 2008-07-05 06:58:53 +00:00
Ulf Samuelsson
195df2e1a0 Add 'build with log' 2008-07-04 22:29:50 +00:00
Ulf Samuelsson
126bb72fa0 Add prepatched AVR32 gcc-4.2.2 toolchain from www.atmel.no, move patch locations for prepatched toolchain to be under the toolchain directory 2008-07-04 08:39:35 +00:00
Peter Korsgaard
926646d9ca Makefile: remove target pkgconfig files if BR2_HAVE_DEVFILES isn't enabled 2008-07-01 12:04:28 +00:00
Peter Korsgaard
d45f355db1 Makefile: don't include .config from TOPDIR
If we ever want to support building out of tree, having the .config in the
tree is probably not what we want.
2008-06-23 13:47:37 +00:00
Peter Korsgaard
2c2796719a package/config: cygwin fix
- pass HOST_LOADLIBES down to make mconf for cygwin
- fix link-order WRT HOST_LOADLIBES

From Bernhards tree (91018d95)
2008-06-19 08:11:35 +00:00
Peter Korsgaard
f85cd12c17 toolchain: also setup kernel headers when ext toolchain is used
Provide kernel headers when ext toolchain is used, so we can compile
packages which need them.
2008-06-13 14:28:57 +00:00
Peter Korsgaard
db8eecfcea distclean: Don't delete $(IMAGE)
There is not much point in deleting $(IMAGE) as the entire binaries dir
is removed. Furthermore, $(IMAGE) is a prefix rather than a file name.
2008-05-31 07:27:47 +00:00
Ulf Samuelsson
a8ee124036 Use local time (Thanks Mike) 2008-05-11 06:55:04 +00:00
Peter Korsgaard
d55b283ce7 Makefile: revert broken ccache (r21525) for now. 2008-03-31 09:06:26 +00:00
Peter Korsgaard
e013773645 Makefile: merge CVS and .svn find invocation 2008-03-30 20:52:33 +00:00
Peter Korsgaard
6a262b14ac Makefile: fix typo (.empty files, not dirs) 2008-03-30 20:48:13 +00:00
Peter Korsgaard
01c5168579 target_skeleton: mark empty directories with .empty files
Mark empty directories in target skeletons with .empty files
and remove them while copying to target (like it's already done for
svn and cvs files) to better support version control system which don't
handle empty directories (E.G. git-svn).
2008-03-30 20:45:42 +00:00
Ulf Samuelsson
efd8576c2e Ensure shell environment is handled correctly 2008-03-30 06:38:46 +00:00
Ulf Samuelsson
82c92e1e1a Easy update of defconfig 2008-03-30 06:29:30 +00:00
Ulf Samuelsson
a1b0651a5a Use BUSYBOX_LOCAL shell variable, if defined 2008-03-28 07:31:28 +00:00
Jason Spence
0d17acf4cf Added ccache support and removed grub from defconfig due to brokenness at the moment. 2008-03-28 02:50:42 +00:00
John Voltz
d45de0ca0c more robust development files in target handler 2008-03-11 13:12:39 +00:00
John Voltz
f5b96fc71d renamed variable, removed uppercase config text 2008-03-10 16:34:19 +00:00
John Voltz
bc67ca29d3 added dev files in target option 2008-03-10 15:22:43 +00:00
Peter Korsgaard
3d8919a184 buildroot: add kernel-headers to base targets so it gets handled by external-deps 2008-03-04 12:19:19 +00:00
Peter Korsgaard
155971e08f buildroot: add external-deps target
Add external-deps target to show what external files are needed to recreate
the build.
2008-03-04 12:19:16 +00:00
Ulf Samuelsson
f5905dc9eb Do not create new directories in external toolchain 2007-10-07 18:23:43 +00:00
Bernhard Reutner-Fischer
cfe511b268 - Nowadays there is no need to strip the config symbols anymore 2007-09-29 13:58:30 +00:00
Bernhard Reutner-Fischer
5f97580e50 - add FC, remove some duplicate entries, cleanup
- fixup after Ulf: CXX doesn't take CFLAGS but CXXFLAGS
2007-09-28 20:10:22 +00:00
Ulf Samuelsson
356133b4f3 Add some more host tools 2007-09-28 19:46:58 +00:00
Ulf Samuelsson
5459a9c5e0 Cleanup cross toolchain admin, split uclibc-menuconfig into same + uclibc-update to avoid overwriting board support file 2007-09-28 19:43:26 +00:00
Ulf Samuelsson
b8f28d656b Add administration for linux,uclibc and main 2007-09-28 16:18:16 +00:00
Bernhard Reutner-Fischer
57310ec605 - for various reasons i will need an explicit ordering of the toolchain includes 2007-09-27 21:24:15 +00:00
Bernhard Reutner-Fischer
4b0d5a80f8 - revert some bad checkins, fixup bad settings in atmel targets and move the gcc target abi back to a place where the other arch-specific settings live 2007-09-26 21:12:38 +00:00
Ulf Samuelsson
8820d63a13 Ensure make %_defconfig works without error - now silently 2007-09-23 14:36:04 +00:00
Ulf Samuelsson
e41b76e91c fix error when doing 'make %_defconfig 2007-09-23 10:57:15 +00:00
Bernhard Reutner-Fischer
4909da4156 - rename the gcc base_target to the more appropriate term cross_compiler 2007-09-22 21:38:15 +00:00
Bernhard Reutner-Fischer
1669b6ed83 - set and export VERBOSE if V= was requested 2007-09-22 14:19:22 +00:00
Bernhard Reutner-Fischer
3b08e64d6f - forgot to put base-target's sources into the source target.
Thanks to Ulf for pointing out this error of mine..
2007-09-18 13:12:25 +00:00
Ulf Samuelsson
633c8cbf5b Remove some debug info + add uclibc-target-utils-source target 2007-09-17 12:49:46 +00:00
Ulf Samuelsson
c8240ca3bf make source should include BASE_TARGETS 2007-09-17 12:40:42 +00:00
Ulf Samuelsson
7521f37372 Add hooks for creating your own board support package 2007-09-12 04:34:16 +00:00
Bernhard Reutner-Fischer
18d979c780 - whitespace cleanup (Cristian Ionescu-Idbohrn) 2007-09-01 18:21:09 +00:00
Bernhard Reutner-Fischer
b3efde23cc - rephrase r19284 -- explicitely list base targets for World
Needed for toplevel parallel builds to work properly.
2007-09-01 17:10:55 +00:00
Bernhard Reutner-Fischer
232fa7eeaa - README even. 2007-08-27 21:51:27 +00:00
Bernhard Reutner-Fischer
663dee48ac - allow me to point people at 'make help' 2007-08-27 21:40:42 +00:00
Bernhard Reutner-Fischer
6547bced93 - global whitespace trimming 2007-08-22 12:35:41 +00:00
Bernhard Reutner-Fischer
1dbe6e3396 - our dependencies are project specific. First (untested) attempt to take this fact into account.
Will need to try to copy eventual pre-existing project-specific deps back
  to package/config in order not to mess up the corresponding timestamps (to avoid superfluous rebuilds)..
2007-08-21 17:56:47 +00:00
Bernhard Reutner-Fischer
7b403ada37 - sed -i -e "/\-[[:space:]]*mkdir[[:space:]][[:space:]]*-p/s/-[[:space:]]*mkdir/mkdir/g"
(want to know about errors if mkdir failed). Thanks to Cristian Ionescu-Idbohrn for pointing this out
2007-08-21 11:25:30 +00:00
Bernhard Reutner-Fischer
f0ca4b8205 - fix incorrect invocation of non-existing binary named "-find"
This bloated the target needlessly (and used to work before)
2007-08-21 10:56:38 +00:00
Bernhard Reutner-Fischer
7547c7ebae - fix whitespace damage.. 2007-08-21 10:53:39 +00:00
Bernhard Reutner-Fischer
0338040243 - cosmetic adjustment in help text 2007-08-21 10:42:05 +00:00
Ulf Samuelsson
adbc5a18cb Add BUILDROOT_DL_DIR to dependencies.sh and fix whitespace damage (sorry) 2007-08-20 15:47:42 +00:00
Ulf Samuelsson
3c567e6466 Add support for BUILDROOT_DL_DIR environment variable, overriding DL_DIR 2007-08-19 23:32:33 +00:00
Ulf Samuelsson
5d2be04979 Move fakeroot temps from STAGING_DIR to PROJECT_BUILD_DIR 2007-08-16 18:19:42 +00:00
Ulf Samuelsson
ceef40146f Dont create TARGET_DIR if it exists 2007-08-16 11:18:29 +00:00
Ulf Samuelsson
c6771dfb84 Avoid copying TARGET_SKELETON on every 'make' 2007-08-16 05:44:55 +00:00
Ulf Samuelsson
c2fc93bcf2 Remove fakeroot files after use to avoid rerun 2007-08-15 09:47:49 +00:00
Ulf Samuelsson
f958d89724 Move project related info from main Makefile to project dir 2007-08-14 07:45:01 +00:00
Ulf Samuelsson
74cda1e49b Avoid continuous rebuilds of TARGET_DIR and /etc/* project files 2007-08-14 07:24:45 +00:00
Bernhard Reutner-Fischer
6ad072032a - add variable BR2_DEPENDS_DIR to point to the Kconfig depend hierarchy 2007-07-31 15:02:06 +00:00
Bernhard Reutner-Fischer
69d692e4ae - explicitely list base targets for World 2007-07-27 15:29:12 +00:00
Bernhard Reutner-Fischer
7603183a87 - put dependency checking right to the start where any later stages can rely on the being ok. 2007-07-27 15:10:45 +00:00
Bernhard Reutner-Fischer
5ef9e52b8e - fix directory dependencies
- BASE_TARGET depends on dirs
2007-07-27 14:57:34 +00:00
Bernhard Reutner-Fischer
fb2c8fec6c - remove passing down the goals 2007-07-27 14:16:00 +00:00
Bernhard Reutner-Fischer
153b1beaeb - fix building mconf with curses flags
- make sure to rm .config when the first 'make menuconfig' was interrupted and thus no .config.cmd was created.
2007-07-27 12:37:30 +00:00
Bernhard Reutner-Fischer
acc706b7b6 - the external-toolchain.mk is not parallel-safe, so ignore it.
- first step of minor adjustments to allow for a toplevel 'make -j128' (regardless of BR2_JLEVEL)
2007-07-23 11:29:38 +00:00
Ulf Samuelsson
e7c08c297d make source-check without permanently changing WGET command 2007-07-20 07:34:28 +00:00
"Steven J. Hill"
62b5ae4b66 Fix INITRAMFS target that was broken. Get rid of config stuff out of the top-level directory. Finally fix Linux kernel module building such that modules are built and installed first followed by rest of packages. This allows for packages to build external Linux kernel modules. 2007-07-18 18:07:19 +00:00
Ulf Samuelsson
0f9c5b1129 Define HOSTLN to allow gzip to build for non-x86 target 2007-07-15 21:54:11 +00:00
Bernhard Reutner-Fischer
e0dd5309bd - use established style 2007-07-13 12:21:19 +00:00
Ulf Samuelsson
fe1bd1ae1b Workaround for vi bug in syntax highlighting 2007-07-12 16:57:47 +00:00
Ulf Samuelsson
e327a1f0a7 Change HOSTNAME to TARGET_HOSTNAME to avoid superseeding build host HOSTNAME 2007-07-12 15:28:58 +00:00
Ulf Samuelsson
412ca2a4d4 BSP Patch:
=========================================================
	The purpose of the BSP patch is to allow building
	several boards inside the same buildroot tree.
	For this to work, each board has to have its
	own "$(TARGET_DIR)" and all *configurable* packages
	must be rebuilt for each board.
	They are now built in the "$(PROJECT_BUILD_DIR)"
	All non configurable packages can and should still
	be built in the "$(BUILD_DIR)".
	If a package is built for one board, then when
	you build for a second board of the same architecture
	the build becomes a simple copy of the resulting
	binaries.

	-----
	Define BR2_PROJECT which will be used as the selector
	between different boards. Note that BR2_PROJECT allow
	you to build multiple root file systems for a single 
	board, and should not be confused with BR2_BOARD_NAME
	which relates to the H/W.

	-----
	Define PROJECT_BUILD_DIR as 	"PROJECT_BUILD_DIR/$(PROJECT)"
	Define BINARIES_DIR as 		"binaries/$(PROJECT)"
	Define TARGET_DIR as		"$(PROJECT_BUILD_DIR)/root"
	(some prefix/postfix may apply)

	Resulting images are stored in	"$(BINARIES_DIR)"

	-----
	Define a few new environment variables in Makefile

	PROJECT:	Stripped BR2_PROJECT
	DATE:		Date of build in YYYY-MM-DD format
	HOSTNAME:	Stripped BR2_HOSTNAME	=> /etc/hostname
	BANNER:		Stripped BR2_BANNER	=> /etc/issue

	Linux and Busybox will be built in $(PROJECT_BUILD_DIR)
	More patches will be needed later to ensure all
	configurable packages are built in this directory.
2007-07-12 13:11:03 +00:00
Ulf Samuelsson
7def55591d Define date of build as DATE, use in mtd/mtd.mk 2007-07-11 15:01:42 +00:00