From patchwork Tue Mar 14 18:30:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 738877 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vjNdd4rV4z9s1h for ; Wed, 15 Mar 2017 05:32:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="q7cGXIDe"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BEA3088A9B; Tue, 14 Mar 2017 18:32:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iTZpWaignWgW; Tue, 14 Mar 2017 18:32:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id ECB2688A40; Tue, 14 Mar 2017 18:32:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A32CA1BFCC3 for ; Tue, 14 Mar 2017 18:31:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9E7E8898B3 for ; Tue, 14 Mar 2017 18:31:48 +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 hMxg+54Wt0Ha for ; Tue, 14 Mar 2017 18:31:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id D18DB898DE for ; Tue, 14 Mar 2017 18:31:47 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id j5so20134580pfb.3 for ; Tue, 14 Mar 2017 11:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q/pqavq4OMy7KYw+d9cQf7NCWDpyfuYyFjFjMHMcewY=; b=q7cGXIDeFvNxwHuY8D75LUbps2IjUfBK/qUfgNqfouL3FMiv1QIPhNw05KS6gNC+af a/o/1APO4HWgLWLpBAmRFOfy6ZTyfhTG1eTsbI/yU4XepZGWHVzEfdw1p/NaKlx/Bj0A o1l7T8Oa2U6k8UxDX5n9tnaWAB4kjw01eVexQ1oNYTlqxjNFcRm80OxesqoF8lpttDcr UzRPP7OaA2v4Uxgw60LpMsAXvVvZzT99Z8UKP5OuW8jg84iIlQS0Cf/GNn8A3IPPNGeT Ri32Oa2K/tuS7VEv8Jyarj9dGKMwwnJmQowFiTv8lOVCgu8KNeIqGJ+ONjDjhO74lVhW Zttg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q/pqavq4OMy7KYw+d9cQf7NCWDpyfuYyFjFjMHMcewY=; b=GDL71QOEvFotsMd3SDmZN3xxscsygKDEc9HRoV/fCAXIIKvwn+/xT/5lK95vrrb84d JGwF0kOsMlyEpSMc9PTqmpUYx2xldfHjlO398buS9I2KeZxSk3BDprwQLEW3/BC9Dpgh +TF61302F5nOd/r6xkzQqOcZWGsuEgYjP9lt+faDKhaVwiyG03/+4RUApgKVH3z8lzjB anplzEkIYku6s/xlIGQsV0DPOJbLKwzo4AdEg1qxh8JbEqu3d/aKCUFu4dSdy+8woHqH ++AcPixUX3eHBqJVhrp2Slkud6NFqsYTNORZYk5RBokLbd2IRqC918ZCyIVFEwdS8Fh/ 0hBg== X-Gm-Message-State: AMke39mdx1Hz60/a9NmwPoc/G3UcFDQrsNp23D89CD1ZYgdLDwXQ65dYTEmgqlFiaCehig== X-Received: by 10.99.147.16 with SMTP id b16mr44802229pge.126.1489516307525; Tue, 14 Mar 2017 11:31:47 -0700 (PDT) Received: from octofox.metropolis (corp.Cadence.COM. [158.140.1.28]) by smtp.gmail.com with ESMTPSA id e13sm40192470pgn.38.2017.03.14.11.31.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 11:31:47 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Tue, 14 Mar 2017 11:30:51 -0700 Message-Id: <1489516252-3803-23-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1489516252-3803-1-git-send-email-jcmvbkbc@gmail.com> References: <1489516252-3803-1-git-send-email-jcmvbkbc@gmail.com> Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 22/23] uboot: apply xtensa overlay X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Xtensa core configuration must be added to U-Boot before it can be built for that xtensa CPU variant. Extract configuration files from the xtensa overlay as is done for other packages that need to be configured for a specific xtensa core. Signed-off-by: Max Filippov --- arch/arch.mk.xtensa | 5 +++-- boot/uboot/uboot.mk | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arch.mk.xtensa b/arch/arch.mk.xtensa index e09d487..4e9d33a 100644 --- a/arch/arch.mk.xtensa +++ b/arch/arch.mk.xtensa @@ -23,7 +23,8 @@ endif # arch-xtensa-overlay-extract -- extract an extensa overlay # # argument 1 is the path in which to extract -# argument 2 is the component to extract, one of: gcc, binutils, gdb, linux +# argument 2 is the component to extract, one of: gcc, binutils, gdb, linux, +# u-boot # # Example: # $(call arch-xtensa-overlay-extract,/path/to/overlay.tar,$(@D),gcc) @@ -43,7 +44,7 @@ endef # # Packages that call that macro shall define FOO_ARCH_XTENSA_OVERLAY_COMPONENT # and set it to one of the component to extract, one of: binutils, gcc, gdb, -# linux +# linux, u-boot # ################################################################################ define arch-xtensa-overlay-inner diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 1e22eaa..8cabc17 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -153,6 +153,9 @@ endef UBOOT_POST_EXTRACT_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE UBOOT_POST_RSYNC_HOOKS += UBOOT_COPY_OLD_LICENSE_FILE +UBOOT_ARCH_XTENSA_OVERLAY_COMPONENT = u-boot +$(eval $(arch-xtensa-overlay)) + # Analogous code exists in linux/linux.mk. Basically, the generic # package infrastructure handles downloading and applying remote # patches. Local patches are handled depending on whether they are