svn commit: trunk/buildroot/target/linux
Author: vanokuten
Date: 2008-11-10 02:45:46 -0800 (Mon, 10 Nov 2008) New Revision: 23987
Log:
Download Kernel.org minor patches at the same time as full sources.
Modified:
trunk/buildroot/target/linux/Makefile.in.advanced
Changeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================
buildroot/target/linux/Makefile.in.advanced +1 -1
@@ -205,7 +205,7 @@ $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE) endif -$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) +$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) $(DL_DIR)/$(LINUX26_PATCH_SOURCE) rm -rf $(LINUX26_DIR) @echo "*** Unpacking kernel source" $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
Quoted 6 lines · vanokuten at uclibc.org
Author: vanokuten
Date: 2008-11-10 02:45:46 -0800 (Mon, 10 Nov 2008) New Revision: 23987Log:
Download Kernel.org minor patches at the same time as full sources.
The comment is correct but the impl is wrong since you do not _download_ all required stuff at the proper time.
So: Iff there are patches, those patches are prerequesites of the _SOURCE which will automagically make 'make source' do the right thing.
Quoted 24 lines
Signed-off-by Julien Boibessot <[email protected]>Modified:
trunk/buildroot/target/linux/Makefile.in.advancedChangeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================buildroot/target/linux/Makefile.in.advanced +0
-0@@ -205,7 +205,7 @@ $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE)endif
-$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) +$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) $(DL_DIR)/$(LINUX26_PATCH_SOURCE)
rm -rf $(LINUX26_DIR) @echo "*** Unpacking kernel source" $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
Bernhard,
So I revert this, until Julien provide correct patch. Sorry I have no time to fix it myself.
BR,
Ivan
Bernhard Reutner-Fischer ?????:
Quoted 42 lines · vanokuten at uclibc.org
Quoted 6 lines
Author: vanokuten
Date: 2008-11-10 02:45:46 -0800 (Mon, 10 Nov 2008) New Revision: 23987Log:
Download Kernel.org minor patches at the same time as full sources.The comment is correct but the impl is wrong since you do not _download_ all required stuff at the proper time.
So: Iff there are patches, those patches are prerequesites of the_SOURCEwhich will automagically make 'make source' do the right thing.Quoted 17 lines
Signed-off-by Julien Boibessot <[email protected]>Modified:
trunk/buildroot/target/linux/Makefile.in.advancedChangeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================buildroot/target/linux/Makefile.in.advanced +0
-0@@ -205,7 +205,7 @@ $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE)endif
Quoted 6 lines
-$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) +$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) $(DL_DIR)/$(LINUX26_PATCH_SOURCE)
rm -rf $(LINUX26_DIR) @echo "*** Unpacking kernel source" $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Hi,
Bernhard Reutner-Fischer a ?crit :
Quoted 8 lines · vanokuten at uclibc.org
Quoted 6 lines
Author: vanokuten
Date: 2008-11-10 02:45:46 -0800 (Mon, 10 Nov 2008) New Revision: 23987Log:
Download Kernel.org minor patches at the same time as full sources.
Quoted 6 lines
The comment is correct but the impl is wrong since you do not _download_ all required stuff
at the proper time.
So: Iff there are patches, those patches are prerequesites of the_SOURCEwhich will
automagically make 'make source' do the right thing.
If patches are set as prerequesites of LINUX26_SOURCE then, each time a new set of patches are loaded, full sources will be reloaded again. (User can "dynamically" choose the patch revision he wants to use).
I can update the patch to have something like that:
linux/Makefile.in.advanced (copie de travail) renamed from linux/Makefile.in.advanced (r?vision 23996) +1 -1
@@ -205,7 +205,7 @@ $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE) endif -$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) +$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE)
$(DL_DIR)/$(LINUX26_PATCH_SOURCE)
rm -rf $(LINUX26_DIR)
@echo "*** Unpacking kernel source"
$(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C$(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
@@ -451,7 +451,7 @@
linux26-modules: cross-depmod26
$(PROJECT_BUILD_DIR)/autotools-stamps/linux_modules_target_installed
-linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)
+linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)
$(DL_DIR)/$(LINUX26_PATCH_SOURCE)
linux26-unpacked: $(LINUX26_DIR)/.patched
But I'm not sure I can do more :-(
Regards,
Julien
Quoted 31 lines · Julien Boibessot
Hi,
Bernhard Reutner-Fischer a ?crit :
Quoted 8 lines · vanokuten at uclibc.org
Quoted 6 lines
Author: vanokuten
Date: 2008-11-10 02:45:46 -0800 (Mon, 10 Nov 2008) New Revision: 23987Log:
Download Kernel.org minor patches at the same time as full sources.Quoted 6 lines
The comment is correct but the impl is wrong since you do not _download_ all required stuff
at the proper time.
So: Iff there are patches, those patches are prerequesites of the_SOURCEwhich will
automagically make 'make source' do the right thing.If patches are set as prerequesites of
LINUX26_SOURCEthen, each time a new set of patches are loaded, full sources will be reloaded again. (User can "dynamically" choose the patch revision he wants to use).I can update the patch to have something like that:
Index: target/linux/Makefile.in.advanced
===================================================================linux/Makefile.in.advanced (copie de travail) renamed from linux/Makefile.in.advanced (r?vision 23996) +0
-0@@ -205,7 +205,7 @@ $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE)endif
Quoted 3 lines
-$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) +$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) $(DL_DIR)/$(LINUX26_PATCH_SOURCE)
yes, except that you'll have to use some
ifneq ($(LINUX26_PATCH_SOURCE),) LINUX26_PATCH_SOURCE_FILE:=$(DL_DIR)/$(LINUX26_PATCH_SOURCE) endif
and use LINUX26_PATCH_SOURCE_FILE, otherwise you'd end up with the dl dir as a prereq and this wouldn't do any good if you downloaded anything.
Quoted 11 lines
rm -rf $(LINUX26_DIR) @echo "*** Unpacking kernel source" $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C$(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
linux/Makefile.in.advanced (copie de travail) renamed from linux/Makefile.in.advanced (r?vision 23996) +0
-0@@ -451,7 +451,7 @@linux26-modules: cross-depmod26 $(PROJECT_BUILD_DIR)/autotools-stamps/linux_modules_target_installed
linux/Makefile.in.advanced (copie de travail) renamed from linux/Makefile.in.advanced (r?vision 23996) +1
-1-linux26-source: $(DL_DIR)/$(LINUX26_SOURCE) +linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)
Quoted 1 line
$(DL_DIR)/$(LINUX26_PATCH_SOURCE)
close, yes.
Quoted 6 lines
linux26-unpacked: $(LINUX26_DIR)/.patched
But I'm not sure I can do more :-(
That would be the proper thing to do, modulo corrections mentioned above.