New: Linux fails to build unless make linux-menuconfig is run first
https://bugs.busybox.net/show_bug.cgi?id=10786
Bug ID: 10786
Summary: Linux fails to build unless make linux-menuconfig is
run first
Product: buildroot
Version: 2017.08
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: adyke at harris.com
CC: buildroot at uclibc.org
Target Milestone: ---
Created attachment 7476
--> https://bugs.busybox.net/attachment.cgi?id=7476&action=edit
defconfig
When selecting BR2_TARGET_ROOTFS_ISO9660 and BR2_TARGET_SYSLINUX_ISOLINUX, Linux fails to build until "make linux-menuconfig" is run. It would seem that the kernel is expecting output/images/rootfs.cpio to exist, but it does not unless linux-menuconfig is run.
Once linux-menuconfig has been run once, the problem disappears until I rm -rf everything in output/images. Then running linux-menuconfig again solves the issue.
Obviously the workaround is to run linux-menuconfig, but trying to build in a freshly checked out copy of our repo always fails.
A branch of our repo that is identical except it does not have BR2_TARGET_ROOTFS_ISO9660 and BR2_TARGET_SYSLINUX_ISOLINUX set does not see this issue.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10786] Linux fails to build unless make linux-menuconfig is run first
https://bugs.busybox.net/show_bug.cgi?id=10786
--- Comment #1 from adyke at harris.com ---
Created attachment 7481
--> https://bugs.busybox.net/attachment.cgi?id=7481&action=editlinux_defconfig
linux_defconfig used when bug was discovered
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10786] Linux fails to build unless make linux-menuconfig is run first
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10786
--- Comment #2 from Thomas Petazzoni <[email protected]> --- I'm indeed able to reproduce, I'll try to have a look. Thanks for the bug report.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10786] Linux fails to build unless make linux-menuconfig is run first
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10786
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED--- Comment #3 from Thomas Petazzoni <[email protected]> --- You have CONFIG_INITRAMFS_SOURCE defined in your linux_defconfig, but you have not enabled initramfs support in Buildroot. So obviously this cannot work.
If you enable initramfs support in Buildroot, then Buildroot will make sure to have a dummy rootfs.cpio when the kernel is first built, will make sure to set CONFIG_INITRAMFS_SOURCE to the correct value, and will rebuild the kernel image at the end of the build with the final rootfs.cpio.
Therefore, there is no bug per se: there is just a mis-use of the initramfs support.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.