From patchwork Mon Apr 20 21:52:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1273769 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=HogdX5sw; dkim-atps=neutral Received: from fraxinus.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 ozlabs.org (Postfix) with ESMTPS id 495gRf17fDz9sSG for ; Tue, 21 Apr 2020 07:53:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A52D4869F6; Mon, 20 Apr 2020 21:53:00 +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 1i_KJGQyjpQk; Mon, 20 Apr 2020 21:52:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E532086A39; Mon, 20 Apr 2020 21:52:45 +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 16AB31BF281 for ; Mon, 20 Apr 2020 21:52:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 111108785D for ; Mon, 20 Apr 2020 21:52:40 +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 lrsPJ3i8KuSs for ; Mon, 20 Apr 2020 21:52:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id 07F8787841 for ; Mon, 20 Apr 2020 21:52:39 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id s10so4942936wrr.0 for ; Mon, 20 Apr 2020 14:52:38 -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=w5kE5PJA5k0UWwb5wDhXQFwtkrPkGoPOIPuBlNkCSp8=; b=HogdX5swFQMu4DDU6ivSqqiBPR3pX4+OiFlVdmTX3HsrQ6CjOStMotzadHpq5X9SDd u7tIEahGsPUIjJvxgmSt+gvITPWj9TOQxn/r2CCg7TZ+8veKKyVHgVLSo3nXYTwFirvn jzISDgBJcBkaR4aj+cUmGAFjcO6E56AF63TG1ncRz0m/znnKojxXORfpiKw5vViR+Bmd 6+X7Xk/kYftov7RnyMwA6WpI9ZcUPOAHDbMulegtxJwuOS1XrsNeJ1ZSftqz/4BaDbv4 VjNBQoBYfVNaRhJKt3X6Njesd6LhaiHRgaaFeAlo4p4bE08ifDgGUNbfGoUbjUIiwMxv sHxg== 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=w5kE5PJA5k0UWwb5wDhXQFwtkrPkGoPOIPuBlNkCSp8=; b=iF40y5o1kxaQRJY3LVD6PT8tTQZmzZBIjJo+6qQqxPtmx3DQT4APIGhHnrwZDgcimY C6bubqA6kT3/uujMQ6yoCgKY2oDljAbRHAPSs2jMhKa2wufLsk+LqOFAjXiAkALkQm1w tiK/hVdsOnZMSZYGyfJty44NskImE+gED46TvubqO5UwQ9BDJYfRissFQyygyvpNV0eC eXXarloNvyG+Z1S0kwlSUxWFpHXE3rViwSZN/imrnTIslqL2lzKvEMah432vIwgws51m Ndck9y2tUrEGRjVz9OhW7wmXF2Ufn9mi3EtIiOAiaYV5RNskdVqr0OXP+ARxrWuHlMB2 k73g== X-Gm-Message-State: AGi0PuYnPgupFsrypXEsf/qbaHL5c4zCjo7ZygZeNs0IvkR44TLwtO+5 gAxfkRZmPqXePFfoRb7Gth96x/qKmrM= X-Google-Smtp-Source: APiQypJRpgJvEuBjY0kczxblSYr4lMl4cwDZ0jtg413Q6RExgw1mnB7oaxUiBOoSozObg7yRvpHXNg== X-Received: by 2002:adf:97de:: with SMTP id t30mr17692433wrb.135.1587419556753; Mon, 20 Apr 2020 14:52:36 -0700 (PDT) Received: from localhost.localdomain (host185100179096.static.fidoka.tech. [185.100.179.96]) by smtp.gmail.com with ESMTPSA id m14sm1007466wrs.76.2020.04.20.14.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 14:52:36 -0700 (PDT) From: Angelo Compagnucci X-Google-Original-From: Angelo Compagnucci To: buildroot@buildroot.org Date: Mon, 20 Apr 2020 23:52:28 +0200 Message-Id: <20200420215228.16175-4-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420215228.16175-1-angelo@amarulasolutions.com> References: <20200420215228.16175-1-angelo@amarulasolutions.com> Subject: [Buildroot] [PATCH v3 3/3] package/environment-setup: add cmake alias X-BeenThere: buildroot@busybox.net 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: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In order to simplify the usage of a buildroot toolchain within the buildroot shell, a "cmake" alias is provided to call cmake with the correct toolchain file and options. Signed-off-by: Angelo Compagnucci --- package/environment-setup/environment-setup | 1 + package/environment-setup/environment-setup.mk | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package/environment-setup/environment-setup b/package/environment-setup/environment-setup index 20a6ffb3af..66bb461e05 100644 --- a/package/environment-setup/environment-setup +++ b/package/environment-setup/environment-setup @@ -12,6 +12,7 @@ Some tips: * Target configure options are already exported * To configure do "./configure $CONFIGURE_FLAGS" * Alternatively use the alias "configure" +* A "cmake" alias is available EOF SDK_PATH=$(dirname "${BASH_SOURCE[0]}") diff --git a/package/environment-setup/environment-setup.mk b/package/environment-setup/environment-setup.mk index bd74dcb2f4..0f3c954b65 100644 --- a/package/environment-setup/environment-setup.mk +++ b/package/environment-setup/environment-setup.mk @@ -23,6 +23,9 @@ define ENVIRONMENT_SETUP_INSTALL_TARGET_CMDS --program-prefix=\"\n" >> $(ENVIRONMENT_SETUP_FILE) printf "alias configure=\"./configure \$${CONFIGURE_FLAGS}\"\n" \ >> $(ENVIRONMENT_SETUP_FILE) + printf "alias cmake=\"cmake \ + -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \ + -DCMAKE_INSTALL_PREFIX=/usr\"\n" >> $(ENVIRONMENT_SETUP_FILE) $(SED) $(ENVIRONMENT_SETUP_HOST_DIR_SED_EXP) $(ENVIRONMENT_SETUP_FILE) printf "PS1=\"\[\e[32m\]buildroot-$(BR2_VERSION)\[\e[m\]:\[\e[34m\]\w\[\e[m\]\$$ \"\n" \ >> $(ENVIRONMENT_SETUP_FILE)