[Buildroot] svn commit: trunk/buildroot/target/linux

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Nov 11 14:43:35 UTC 2008


On Tue, Nov 11, 2008 at 03:18:35PM +0100, Julien Boibessot wrote:
>Hi,
>
>Bernhard Reutner-Fischer a écrit :
>> On Mon, Nov 10, 2008 at 02:45:47AM -0800, vanokuten at uclibc.org wrote:
>>> 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.
>>
>> 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.
>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:
>
>Index: target/linux/Makefile.in.advanced
>===================================================================
>--- target/linux/Makefile.in.advanced   (révision 23996)
>+++ target/linux/Makefile.in.advanced   (copie de travail)
>@@ -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)

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.

>        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)

close, yes.
>
> 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.



More information about the buildroot mailing list