linux: set a few more initramfs opts for newer kernels
PATCH 1/1 linux: set a few more initramfs opts for newer kernels
Building with linux-2.6.36 and initramfs support causes the build to pause while it prompts for newer options (uid/gid/compression). So have the build system inject the newer options into the linux config automatically. Older versions should just ignore these.
--- linux/linux.mk | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
linux/linux.mk +3 -0
@@ -118,6 +118,9 @@ ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) touch $(BINARIES_DIR)/rootfs.initramfs $(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config) $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"$(BINARIES_DIR)/rootfs.initramfs\",$(@D)/.config) + $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0,$(@D)/.config) + $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0,$(@D)/.config) + $(call KCONFIG_DISABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_NONE,$(@D)/.config) $(call KCONFIG_ENABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_GZIP,$(@D)/.config) endif $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_SOURCE_DIR) oldconfig
Signature · 1 line
1.7.3.2
PATCH 1/1 linux: set a few more initramfs opts for newer kernels
Quoted 6 lines · On Fri, 19 Nov 2010 22:38:05 -0500 Mike Frysinger <[email protected]> wrote:
Building with linux-2.6.36 and initramfs support causes the build to pause while it prompts for newer options (uid/gid/compression). So have the build system inject the newer options into the linux config automatically. Older versions should just ignore these.
Signed-off-by Mike Frysinger <[email protected]>
Peter, this should go in 2010.11.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 linux: set a few more initramfs opts for newer kernels
In reply to Mike FrysingerQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Mike" == Mike Frysinger <[email protected]> writes:
Mike> Building with linux-2.6.36 and initramfs support causes the build to Mike> pause while it prompts for newer options (uid/gid/compression). So Mike> have the build system inject the newer options into the linux config Mike> automatically. Older versions should just ignore these.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard