From patchwork Thu May 2 21:14:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Worth, Kevin" X-Patchwork-Id: 241102 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 516A42C00C8 for ; Fri, 3 May 2013 07:16:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 28201A028E; Thu, 2 May 2013 21:16:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jSdd4zZnnP2i; Thu, 2 May 2013 21:16:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 15AFBA0202; Thu, 2 May 2013 21:16:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6C9468F79A for ; Thu, 2 May 2013 21:16:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0FDFF8D20E for ; Thu, 2 May 2013 21:16:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nSEKGoWgvANj for ; Thu, 2 May 2013 21:15:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from g4t0017.houston.hp.com (g4t0017.houston.hp.com [15.201.24.20]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9F4088D192 for ; Thu, 2 May 2013 21:15:59 +0000 (UTC) Received: from G9W0364.americas.hpqcorp.net (g9w0364.houston.hp.com [16.216.193.45]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by g4t0017.houston.hp.com (Postfix) with ESMTPS id 8018238259 for ; Thu, 2 May 2013 21:15:58 +0000 (UTC) Received: from G9W3613.americas.hpqcorp.net (16.216.186.48) by G9W0364.americas.hpqcorp.net (16.216.193.45) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 2 May 2013 21:14:46 +0000 Received: from G9W0753.americas.hpqcorp.net ([169.254.1.151]) by G9W3613.americas.hpqcorp.net ([16.216.186.48]) with mapi id 14.03.0123.003; Thu, 2 May 2013 21:14:46 +0000 From: "Worth, Kevin" To: "buildroot@busybox.net" Thread-Topic: [PATCH] linux: Fix User-Mode Linux build failures Thread-Index: Ac5Heel7zvzhqibdTWq+z9lzC7id5g== Date: Thu, 2 May 2013 21:14:45 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.210.48.14] MIME-Version: 1.0 Subject: [Buildroot] [PATCH] linux: Fix User-Mode Linux build failures X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 --- 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