Commit Graph

262 Commits

Author SHA1 Message Date
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
Bernhard Reutner-Fischer
c0d7d4e035 - fix evaluation of HOSTCFLAGS for kconfig. Closes #1415 2007-07-09 18:23:20 +00:00
Bernhard Reutner-Fischer
81df22641f - wipe config related files in distclean 2007-07-09 08:06:27 +00:00
Ulf Samuelsson
83832cdafd sh needs '-c' to run a binary 2007-07-09 04:26:49 +00:00
Bernhard Reutner-Fischer
e491fba221 - add help target 2007-07-08 12:20:58 +00:00
Bernhard Reutner-Fischer
f987b7a541 - silence a cosmetic warning (closes several issues in mantis).
This also provides a nice up-to-date filestamp if something got reconfigured (e.g. c++ support got toggled) that can be used in the future to depend accordingly.
2007-07-08 00:00:17 +00:00
Ulf Samuelsson
4df454e974 Remove some unwanted white space in Makefile 2007-07-06 12:19:35 +00:00
Bernhard Reutner-Fischer
afc61c6e8e - adjust infrastructure for new kconfig 2007-06-28 10:47:05 +00:00
Bernhard Reutner-Fischer
ba2e7e02d1 - Search for defconfigs in target, not entire tree
This patch changes the way the top level Makefile searches for a
  <board>_defconfig file, it will only look in the target/ directory and its sub
  directories.

  The patch also enables loading a defconfig even if there already is a .config.
  (Hans-Christian Egtvedt)
2007-06-25 10:56:13 +00:00
Bernhard Reutner-Fischer
7e0c890c72 - forgot to apply this hunk that should have belonged to r18904 2007-06-24 12:27:08 +00:00
Bernhard Reutner-Fischer
8027784c35 - add full sysroot support for non-ancient toolchains.
- start to separate usr/lib and lib to match normal system-layout
2007-06-20 11:26:36 +00:00
Peter Korsgaard
2c64904519 Hide troublesome environment variables from sub processes
(E.G. screws up gdb, busybox, ..)
2007-06-19 15:19:27 +00:00
Bernhard Reutner-Fischer
825ff341da - provide a "source-check" target that tries to download all packages with
wget's spider-mode (i.e. just see if the server says the file is there without
  actually downloading the files.
  Convenient to check for unavailable source-packages.
2007-06-07 12:57:03 +00:00
Bernhard Reutner-Fischer
c6e43c9da3 - fixup the extension for the host and start to honor BR2_PREFER_STATIC_LIB 2007-06-02 11:22:17 +00:00
Bernhard Reutner-Fischer
7dcbbfbbd8 - move setting up the extensions to correct place (like i said but tom didn't do..) 2007-06-02 09:05:40 +00:00
Bernhard Reutner-Fischer
fc9566ef23 - correct extensions for apple (thanks Heikki Lindholm for pointing this out) 2007-06-02 08:49:45 +00:00
Bernhard Reutner-Fischer
3096f34d27 - add BR2_PREFER_STATIC_LIB config option to be able to select if we prefer to build static or dynamic libs/bins.
- depending on the BR2_GNU_BUILD_SUFFIX, set the respective EXEEXT, LIBEXT, SHREXT extensions for use on the target.
Thanks to Tom for suplying a diff which implements these.
2007-06-01 22:16:28 +00:00
"Steven J. Hill"
9c865d752e Create 'bin' directory in staging area. 2007-05-07 03:56:47 +00:00
"Steven J. Hill"
4b2ebdb6d9 Create symlink for 'usr/include' in the staging directory so that packages like zlib and others who expect that to exist will install properly. 2007-04-28 17:09:44 +00:00
Bernhard Reutner-Fischer
73be7f9ef4 - make sure to download fakeroot if needed 2007-04-06 16:36:48 +00:00
Bernhard Reutner-Fischer
99cf7293f9 - add cc-option and use it to check for stuff that is benefical for PREFER_IMA
- backport the libbackend.o gcov-iov.h dependency fixup from 4.2 to 4.0
2007-02-12 13:38:06 +00:00
"Steven J. Hill"
02f71aab47 Support building using an external toolchain. Questions to the mailing list and all other comments to <biteme@devnull.com>. 2007-02-06 18:19:38 +00:00
Bernhard Reutner-Fischer
8d583fc01a - generalize the menuconfig linux kernel support
- simplify toplevel mkdir rules a tiny bit
2007-01-30 00:58:18 +00:00
Bernhard Reutner-Fischer
41697b7a46 - make sure to add board specific targets before the final generation of the filesystems/tarballs.
Until now, we did created the fs and only after that built/installed grub et al
2007-01-28 17:35:11 +00:00
Bernhard Reutner-Fischer
b5136193e6 - make distclean didn't clean dialog binaries. Closes #1039 2007-01-19 18:00:49 +00:00
Eric Andersen
3da708e479 link $(STAGING_DIR)/usr/lib to $(STAGING_DIR)/lib
to make glib2 (and packages with similar confusion) work
properly, while still being able to cross compile
2007-01-10 06:55:27 +00:00
Bernhard Reutner-Fischer
9e2503563a - andersee, what was that good for? It just slows down rebuilds as it delves into each sub-file needlessly.. Ripping out. 2006-12-02 19:01:10 +00:00
Bernhard Reutner-Fischer
6e2823c1fa - add and use BR2_BZCAT config option. 2006-11-17 15:43:51 +00:00
Bernhard Reutner-Fischer
870cb9e826 - check if busybox' Rules.mak exists.
- add target dirs to ensure that all required dirs do exist so make busybox-menuconfig works in a pristine checkout.
2006-11-17 11:21:23 +00:00
Eric Andersen
a4c685f165 make certain the target directory exists 2006-11-15 21:00:07 +00:00
Eric Andersen
ba70f94e62 subversion makes it so we do not need a separate tarball
to store empty directories and symlinks for the target_skeleton.
2006-11-15 06:52:00 +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
Eric Andersen
98bc6dac2a configuring uClibc depends on first having kernel headers in place 2006-07-18 23:43:58 +00:00
Eric Andersen
8c709551ff put sed check in the correct place 2006-07-18 23:39:39 +00:00
Eric Andersen
ddb5ebab06 move TAR_OPTIONS to its rightful place 2006-07-18 22:58:58 +00:00
"Steven J. Hill"
0c1e709edb Resolves Bug #182 for buildroot. It works nice to pull in default
configuration files for targets. More information on the bug database
page at <http://bugs.uclibc.org/view.php?id=182>.
2006-06-22 02:24:08 +00:00
Mike Frysinger
d99c31c646 s/dependancies/dependencies/ 2006-05-26 01:18:09 +00:00
Eric Andersen
a71258c161 when copying, be forceful about it to gratuitously overwrite symlinks 2006-04-19 17:24:47 +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
David Anders
d4aab02a04 removed clean and distclean from the noconfig targets per case 0000232 2006-01-25 13:36:51 +00:00
Bernhard Reutner-Fischer
7df4de6cbb - remove BR2_TAR_VERBOSITY and add helptext to BR2_TAR_OPTIONS.
default to no additional tar options.
2005-12-10 15:36:43 +00:00
Bernhard Reutner-Fischer
ce90aae17c - add option to pass to tar for unpacking the source.
Set it to exclude .svn per default (please default to "" if inappropriate)
2005-12-10 14:59:02 +00:00
Mike Frysinger
5bc1f0c323 Allan Clark writes:
Quick patch to avoid deleting my directory of RPM Sources.

I tend to use buildroot as "make DL_DIR=/.rh/SOURCES", with the rpm 
topdir set to $HOME/.rh in my .rpmmacros -- allows me to build RPMs as 
non-root, and share the source with buildroot.  Problem is, buildroot 
likes to delete my directory :(
2005-09-09 02:49:10 +00:00
Mike Frysinger
8c2fc60997 only build host-file if we need it 2005-09-08 00:03:33 +00:00
"Steven J. Hill"
6b632ad624 Build 'file' for the host as well as the target. If the host system has a version older than that being built for buildroot, the target build will fail. So, we build 'file' for the host and add actually add '$(TOOL_BUILD_DIR)/bin' to the TARGET_PATH so that it takes precedence over the host system version. 2005-08-30 03:35:37 +00:00