Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels
@ 2010-11-20  3:38 Mike Frysinger
  2010-11-23 19:33 ` Thomas Petazzoni
  2010-12-11  0:45 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-11-20  3:38 UTC (permalink / raw)
  To: buildroot

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 <vapier@gentoo.org>
---
 linux/linux.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index 4ab519b..981edc5 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -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
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels
  2010-11-20  3:38 [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels Mike Frysinger
@ 2010-11-23 19:33 ` Thomas Petazzoni
  2010-12-11  0:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2010-11-23 19:33 UTC (permalink / raw)
  To: buildroot

On Fri, 19 Nov 2010 22:38:05 -0500
Mike Frysinger <vapier@gentoo.org> 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 <vapier@gentoo.org>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Peter, this should go in 2010.11.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels
  2010-11-20  3:38 [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels Mike Frysinger
  2010-11-23 19:33 ` Thomas Petazzoni
@ 2010-12-11  0:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2010-12-11  0:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> 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.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-11  0:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  3:38 [Buildroot] [PATCH] linux: set a few more initramfs opts for newer kernels Mike Frysinger
2010-11-23 19:33 ` Thomas Petazzoni
2010-12-11  0:45 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox