[Buildroot] linux26 compile error

Rod Boyce buildroot at teamboyce.co.uk
Wed Jul 18 19:45:26 UTC 2007


Frank Kujawski wrote:
> As it would be, I do need the kernel.  Could I replace this:
>
> $(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
>         toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR)
>         touch $@
> endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))
>
> with something like
>
> $(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
>         toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR)
>         touch $@
> else # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))
> $(LINUX26_DIR)/.patched:
>         touch $@
> endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))
>
>
>   
>> On Wed, Jul 18, 2007 at 04:54:35AM -0500, Frank Kujawski wrote:
>>     
>>> I am getting a compile error on:
>>> linux26: cross-depmod26
>>> $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep
>>> $(TARGET_DIR)/boot/$(LINUX26_FORMAT)
>>>       
>> This is caused by a conditional check in target/linux/Makefile.in:
>> ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION)))
>> surrounding the part that defindes the $(LINUX26_DIR)/.patched
>> target.  You have LINUX26_VERSION matching LINUX_HEADERS_VERSION
>> and therefore all the code inside the "ifneq" is skipped.  This
>> results in the make error: "no rule to make target"
>>
>> If you do not need to build a kernel, the simplest fix would be
>> to disable the linux26 target entirely (turn off BR2_PACKAGE_LINUX).
>>
>> I'm not sure why the ifneq is there in the first place.  It may
>> have made sense prior to the BSP patch that was recently added.
>>
>> -R
>>
>>     
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>   
All,

I commented out the ifdef in the makefile until this patch was completed 
as this looks to me to be an incomplete BSP patch at the moment.  
Attached is my temporary fix until this is completed.

Regards,
Rod Boyce

-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux26-build.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20070718/37c6777b/attachment-0003.bin>


More information about the buildroot mailing list