Bug 2119

Summary: Tries to build kernel, although disabled in config
Product: buildroot Reporter: jsteckli
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Configuration

Description jsteckli 2010-06-25 15:22:58 UTC
My config contains:

#
# Kernel
#
# BR2_LINUX_KERNEL is not set

Yet, I get:

[... build output ...]
>>>   Downloading kernel
--2010-06-25 17:15:26--  http://www.kernel.org/pub//linux/kernel/v2.6//linux-.tar.bz2
Resolving www.kernel.org... 130.239.17.4, 199.6.1.164
Connecting to www.kernel.org|130.239.17.4|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-06-25 17:15:27 ERROR 404: Not Found.

--2010-06-25 17:15:27--  http://buildroot.net/downloads/sources//linux-.tar.bz2
Resolving buildroot.net... 140.211.167.224
Connecting to buildroot.net|140.211.167.224|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://sources.buildroot.net//linux-.tar.bz2 [following]
--2010-06-25 17:15:27--  http://sources.buildroot.net//linux-.tar.bz2
Resolving sources.buildroot.net... 88.198.64.109
Connecting to sources.buildroot.net|88.198.64.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-06-25 17:15:27 ERROR 404: Not Found.

make: *** [/home/julian/src/linux-dev/buildroot/output/build/linux-/.stamp_downloaded] Error 8


This is with the current version from git. Config is attached.
Comment 1 jsteckli 2010-06-25 15:23:27 UTC
Created attachment 2113 [details]
Configuration
Comment 2 Thomas Petazzoni 2010-06-25 21:15:40 UTC
It's because you have BR2_TARGET_ROOTFS_INITRAMFS enabled and that depends on building the kernel. But, granted, there is a bug: we shouldn't allow the selection of initramfs if Linux kernel isn't enabled. I'll cook a patch to fix this.

Thanks for the report!
Comment 3 Thomas Petazzoni 2010-06-25 22:07:27 UTC
See http://lists.busybox.net/pipermail/buildroot/2010-June/035737.html for the proposed fix.
Comment 4 Peter Korsgaard 2010-06-26 05:44:53 UTC
Committed Thomas' fix, thanks
Comment 5 jsteckli 2010-06-28 16:54:17 UTC
Actually that (building initramfs without kernel) was working fine for a while and I was using it. So the fix destroys a feature for me. Is this by design?
Comment 6 jsteckli 2010-06-28 17:06:57 UTC
Ok, I can use the cpio built by buildroot. Ignore me. :)