From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB6D7C433F5 for ; Fri, 22 Oct 2021 11:52:19 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49D3D60FD8 for ; Fri, 22 Oct 2021 11:52:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 49D3D60FD8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 18AB140886; Fri, 22 Oct 2021 11:52:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SZYHtRZ4QKBM; Fri, 22 Oct 2021 11:52:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 7E41340878; Fri, 22 Oct 2021 11:52:17 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 14D211BF57B for ; Fri, 22 Oct 2021 11:51:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1089F40241 for ; Fri, 22 Oct 2021 11:51:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pGbhJaKaW7l1 for ; Fri, 22 Oct 2021 11:51:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by smtp2.osuosl.org (Postfix) with ESMTPS id 09E90401B7 for ; Fri, 22 Oct 2021 11:51:37 +0000 (UTC) Received: (Authenticated sender: kory.maincent@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 04E63240011; Fri, 22 Oct 2021 11:51:34 +0000 (UTC) From: Kory Maincent To: buildroot@buildroot.org Date: Fri, 22 Oct 2021 13:51:30 +0200 Message-Id: <20211022115134.345595-1-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/5] boot/grub2/grub2.mk: fix the installation of target tools X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aduskett@gmail.com, yann.morin.1998@free.fr, thomas.petazzoni@bootlin.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The tools were not installed anymore since we move from autotools to generic-package. This patch fixes their installation. We have decided to implement the install tool process by running the "make install" command for each tuple. This allows to have all different platforms Grub modules installed in the target. The drawback is the overwrite of Grub2 binaries tools during each "make install" command. This drawback is absolutely not important as it happens in the same package. This is the best option to avoid unnecessary and more complexity to this package. Signed-off-by: Kory Maincent Signed-off-by: Yann E. MORIN Tested-by: Adam Duskett --- boot/grub2/grub2.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk index e01ebb2edb..a18696b6cc 100644 --- a/boot/grub2/grub2.mk +++ b/boot/grub2/grub2.mk @@ -195,5 +195,13 @@ define GRUB2_INSTALL_IMAGES_CMDS ) endef +ifeq ($(BR2_TARGET_GRUB2_INSTALL_TOOLS),y) +define GRUB2_INSTALL_TARGET_CMDS + $(foreach tuple, $(GRUB2_TUPLES-y), \ + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build-$(tuple) DESTDIR=$(TARGET_DIR) install + ) +endef +endif + $(eval $(generic-package)) $(eval $(host-autotools-package)) -- 2.25.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot