svn commit: trunk/buildroot: package project
[Buildroot] improved per-project dependencies
In reply to aldot at uclibc.orgQuoted 8 lines · aldot at uclibc.org
Author: aldot
Date: 2007-08-21 10:56:47 -0700 (Tue, 21 Aug 2007) New Revision: 19624Log:
- 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)..
I hope that this didn't break too much, if so please holler. This will need some further massage. Help (patches) welcome
Author: aldot
Date: 2007-08-21 10:56:47 -0700 (Tue, 21 Aug 2007) New Revision: 19624
Log:
- 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)..
Modified:
trunk/buildroot/Makefile
trunk/buildroot/package/Makefile.in
trunk/buildroot/project/Makefile.in
Changeset:
Modified: trunk/buildroot/Makefile
===================================================================
buildroot/Makefile +13 -3
@@ -150,8 +150,6 @@ endif PREFERRED_LIB_FLAGS:=--enable-static --enable-shared -BR2_DEPENDS_DIR=$(BASE_DIR)/package/config/buildroot-config/ - ############################################################## # # The list of stuff to build for the target toolchain
@@ -165,7 +163,11 @@ endif TARGETS:= +# setup uor pathes include project/Makefile.in + +BR2_DEPENDS_DIR=$(PROJECT_BUILD_DIR)/buildroot-config + include toolchain/Makefile.in include package/Makefile.in
@@ -211,7 +213,12 @@ # all targets depend on the crosscompiler and it's prerequisites $(TARGETS): $(BASE_TARGETS) +$(BR2_DEPENDS_DIR): .config + rm -rf $@ + cp -dpRf $(CONFIG)/buildroot-config $@ + dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ + $(BR2_DEPENDS_DIR) \ $(BINARIES_DIR) $(PROJECT_BUILD_DIR) $(BASE_TARGETS): dirs
@@ -223,6 +230,7 @@ $(BASE_TARGETS) $(TARGETS) \ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ + $(BR2_DEPENDS_DIR) \ $(BINARIES_DIR) $(PROJECT_BUILD_DIR) #############################################################
@@ -260,7 +268,7 @@ -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf touch $@ -$(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root +$(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root erase-fakeroots: rm -f $(PROJECT_BUILD_DIR)/.fakeroot*
@@ -310,11 +318,13 @@ export HOSTCFLAGS $(CONFIG)/conf: + @mkdir -p $(CONFIG)/buildroot-config $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf - at if [ ! -f .config ] ; then \ cp $(CONFIG_DEFCONFIG) .config; \ fi $(CONFIG)/mconf: + @mkdir -p $(CONFIG)/buildroot-config $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf mconf - at if [ ! -f .config ] ; then \ cp $(CONFIG_DEFCONFIG) .config; \
Modified: trunk/buildroot/package/Makefile.in
===================================================================
buildroot/package/Makefile.in +0 -42
55 lines not on this page · raw message
Modified: trunk/buildroot/project/Makefile.in
===================================================================
buildroot/project/Makefile.in +44 -0
50 lines not on this page · raw message
[Buildroot] improved per-project dependencies
In reply to Bernhard Fischertis 2007-08-21 klockan 19:46 +0200 skrev Bernhard Fischer:
Quoted 5 lines · aldot at uclibc.org
Quoted 4 lines
Author: aldot
Date: 2007-08-21 10:56:47 -0700 (Tue, 21 Aug 2007) New Revision: 19624
Quoted 7 lines
Quoted 4 lines
Log:
- 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)..I hope that this didn't break too much, if so please holler. This will need some further massage. Help (patches) welcome
I have been thinking about this.
The idea of the BSP patch is to share a common toolchain and to share the build of packages
If you have two different toolchains, then you effectively lose the purpose of the toolchain, and could as well build the project in a different directory.
A possible approach would be to separate the configs of the packages from that of the toolchain
"make toolconfig" would create the .config'uration of the toolchain "make menuconfig" would create the .config'uration for the rest.
Then you can add a dependency on the toolconfig ".config" file which deletes
* build_<ARCH>
* binaries
* toolchain_build_<ARCH>
* project_build_<ARCH>
because they are really not valid.
A more difficult approach is to have the old .config available and compare that against the new ".config". Only changes affecting the builds of package should call for the battle-axe. Cosmetic changes should not be dramatic.
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Signature · 2 lines
Best Regards, Ulf Samuelsson