All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linux: Fix User-Mode Linux build failures
@ 2013-05-02 21:14 Worth, Kevin
  2013-12-26 22:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Worth, Kevin @ 2013-05-02 21:14 UTC (permalink / raw)
  To: buildroot

Pass KERNEL_SUBARCH environment variable needed for User Mode Linux builds
 e.g. build with 'make KERNEL_ARCH=um KERNEL_SUBARCH=i386'
Create $(KERNEL_ARCH_PATH)/configs/ if it doesn't exist (for arches like uml)
 Otherwise build fails trying to cp to non-existent directory

Signed-off-by: Kevin Worth <kevin.worth@hp.com>
---
 linux/linux.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/linux/linux.mk b/linux/linux.mk
index 0352acd..db26fc6 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -44,6 +44,7 @@ LINUX_MAKE_FLAGS = \
 	HOSTCC="$(HOSTCC)" \
 	HOSTCFLAGS="$(HOSTCFLAGS)" \
 	ARCH=$(KERNEL_ARCH) \
+	SUBARCH=$(KERNEL_SUBARCH) \
 	INSTALL_MOD_PATH=$(TARGET_DIR) \
 	CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
 	DEPMOD=$(HOST_DIR)/usr/sbin/depmod
@@ -156,6 +157,7 @@ KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
 endif
 
 define LINUX_CONFIGURE_CMDS
+	mkdir -p $(KERNEL_ARCH_PATH)/configs/
 	cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
 	$(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig
 	rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig

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

end of thread, other threads:[~2013-12-26 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 21:14 [Buildroot] [PATCH] linux: Fix User-Mode Linux build failures Worth, Kevin
2013-12-26 22:37 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.