Commit Graph

25 Commits

Author SHA1 Message Date
Matthias Schiffer
81f8b93e36
build: add $(STAGING_DIR) and $(BIN_DIR) preparation to target and package subdir compile dependencies
In a pristine build, these directories are created as dependencies of
the tools subdir compile, however this step never runs when the tools
compile stamp already exists. Since commit ed6ba2801c ("tools: keep
stamp file in $(STAGING_DIR_HOST)"), this will happen after `make clean`:
$(STAGING_DIR) has been deleted, but the tools stamp still exists, so
the next build will fail because $(STAGING_DIR) has not been set up
correctly.

Fix builds after `make clean` by adding the preparation as dependencies
for the target and package directories as well.

Fixes: ed6ba2801c ("tools: keep stamp file in $(STAGING_DIR_HOST)")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit fbb924abff)
2024-03-03 23:17:03 +01:00
Felix Fietkau
340c2ed2ef tools/llvm-bpf: move tarball packing to target/llvm-bpf
This ensures that the tarball is regenerated after make clean or after switching
to a different target

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-11-22 12:00:40 +01:00
Felix Fietkau
d826af2cbb build: make <subdir>/install opt-in, use it for target/ only
Fixes buildbot errors on running make target/install or
toolchain/install

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-02-09 13:51:35 +01:00
Jo-Philipp Wich
5a37d0601a sdk: depend on linux/install
Since commit 484cb91 "sdk: bundle required firmware files" there is an
implicit dependency of the SDK on a prior Kernel compilation.

Change target/Makefile to make this dependency explicit to avoid race
conditions with parallel builds.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-11-04 16:14:51 +01:00
Felix Fietkau
072bed4760 target: do not make target/*/install depend on target/*/compile - removes one redundant kernel build dir call on target/install
SVN-Revision: 32091
2012-06-06 17:24:05 +00:00
Gabor Juhos
6a57a1fbdb imagebuilder: fix parallel building (closes #11117)
SVN-Revision: 30927
2012-03-13 17:29:40 +00:00
Felix Fietkau
44aa03f2f9 Add a target (CONFIG_MAKE_CONFIG) that creates an exportable toolchain. The toolchain will zipped and saved under $(TOPDIR)/bin directory.
Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>

SVN-Revision: 18419
2009-11-14 17:51:32 +00:00
Felix Fietkau
bdb9c7351c some more build system cleanup
SVN-Revision: 12329
2008-08-17 11:14:13 +00:00
Felix Fietkau
4c665e6ca4 large improvement for parallel builds. works without V=99 now and without warnings. tested with -j on an 2x dual core opteron machine
SVN-Revision: 11414
2008-06-09 15:38:45 +00:00
Felix Fietkau
761dc0a0ae fix a dependency bug
SVN-Revision: 8561
2007-08-30 22:43:25 +00:00
Felix Fietkau
09c82d165a only build sdk and imagebuilder at target/install time
SVN-Revision: 8257
2007-07-31 08:24:29 +00:00
Felix Fietkau
d7f2cb1642 next round of cleanup, convert target/ - make -j works now ;)
SVN-Revision: 8242
2007-07-30 21:14:08 +00:00
Felix Fietkau
5f9838d5f9 don't run the image prereq check if the image directory does not exist
SVN-Revision: 7988
2007-07-16 00:42:19 +00:00
Felix Fietkau
9abbe7a033 Rename 'refresh' to 'update' and make the new 'refresh' actually refresh all the patches. Also added a target package/refresh which will do this to all packages in the buildroot
SVN-Revision: 7488
2007-06-04 11:14:08 +00:00
Felix Fietkau
3b6b7a2d1b implement quilt handling for the kernel tree ... and there was much rejoicing!
SVN-Revision: 7474
2007-06-03 08:28:05 +00:00
Felix Fietkau
1099e2d679 the default_subtargets template was a bad idea, since different makefiles require different types of dependencies for subtargets. nuke it...
SVN-Revision: 7003
2007-04-18 17:35:46 +00:00
Felix Fietkau
4e60cfe51f use default_subtargets in package/Makefile and target/Makefile
SVN-Revision: 6380
2007-02-26 00:41:53 +00:00
Felix Fietkau
653f61fb3e clean up a few things in image build makefiles and fix unnecessary grub rebuilds
SVN-Revision: 6360
2007-02-25 18:20:34 +00:00
Felix Fietkau
351d0d4b07 Fix config checks for Image Builder and SDK - only build them when requested. Clear all packages from bin/packages at the beginning of package/compile when the Image Builder is selected, because the Image Builder can't handle multiple versions of the same package.
SVN-Revision: 6102
2007-01-14 23:37:40 +00:00
Felix Fietkau
7a6a646497 Add initial version of the new Image Builder It's still a bit rough in a few places, but it seems to work for Broadcom at least - other targets untested.
SVN-Revision: 6071
2007-01-10 21:52:28 +00:00
Felix Fietkau
ebdcc6d40c move target/utils to tools/firmware-utils
SVN-Revision: 5702
2006-12-06 23:41:38 +00:00
Mike Baker
c3c4dfb57b move target/image/platform to target/linux/platform/image platform directories are now self contained
SVN-Revision: 5669
2006-11-28 20:14:41 +00:00
Felix Fietkau
aef03f09b5 add prereq checks for target/linux/* and target/image/*, check for fdisk for the x86 builds
SVN-Revision: 5569
2006-11-18 21:12:18 +00:00
Felix Fietkau
f1d6fb4be1 leave out the ccache directory when copying the staging dir into the sdk (#843)
SVN-Revision: 5081
2006-10-14 14:16:26 +00:00
Felix Fietkau
60c1f0f64d finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00