From patchwork Tue Apr 28 14:45:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1278544 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=m8hXH3gn; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49BPbZ2gPHz9sSG for ; Wed, 29 Apr 2020 00:46:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 589D48817D; Tue, 28 Apr 2020 14:46:16 +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 0WS6gcvK+KrJ; Tue, 28 Apr 2020 14:46:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A2ADD86D73; Tue, 28 Apr 2020 14:46:15 +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 7080C1BF3FF for ; Tue, 28 Apr 2020 14:46:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6CDC686DF4 for ; Tue, 28 Apr 2020 14:46:13 +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 mq9ahnDk2Wbs for ; Tue, 28 Apr 2020 14:46:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id BDA9784BA5 for ; Tue, 28 Apr 2020 14:46:11 +0000 (UTC) Received: by mail-lf1-f65.google.com with SMTP id m2so17101629lfo.6 for ; Tue, 28 Apr 2020 07:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iDBQwoPOhh44SH96AmyRh2eNSItMykqAHrYFH5SbBLA=; b=m8hXH3gn2X9O7EzjqLp48l9WmDZdWd7m50Mp5/LhuYDDqcpmJSlVlkFoucxH0lermn 5R8H+EDR6Wh/PUSdTLe8VxsZo7iAWcxoCpEsq+48baXGav6RnLX6qJoWdbmy75nnjxPy zgz+QM/cV1fQzh4yru1+f2RfXVT1h6jZylKTs= 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=iDBQwoPOhh44SH96AmyRh2eNSItMykqAHrYFH5SbBLA=; b=HftOltNvoWNngoYLHpDTecTKjzaip4wiUJG33w/xh622G7IUKPH2SpWp2l/YF0Filo wpAreiY/zWm2RZYd4h6klZAbbJnqsI+8LiogSSU30kweiP8VL+1CQATG2vEML0qPFMVh W9qDNrf3yCxw0t82EEOBhanpj4Vz6LrktswyAS2BE1JaVWovHtoB1ydVgsqh9fhwbzMw H6BDuqZ+Dg9QcFfRgz667fOl5546Ma6Vd6cWb9m47Ue1VvahvViA8aQNOgVlC1YxigWp 1bNHKgr4KNzq/S80a+uG+4FM11U7LoNyAMvzxQbZPsoIbThzIi3UO2UY7/n7b2ApjN3B c0qA== X-Gm-Message-State: AGi0PuaoGkgP8+9kWpafJQidu5WoHmC2TddD/Y7Q+37pUlDWtFQ6IOtb R5uu2BgfUsz2ZwtsZVMhFOgtj69FmPk= X-Google-Smtp-Source: APiQypKBS3BsBcIteSUtIO5QFhUOUngiIiUblPUVX7Qv+wGYKdlJYlB0HujFhv02YVYQ95dsewa5DQ== X-Received: by 2002:a19:4a15:: with SMTP id x21mr1579807lfa.22.1588085168657; Tue, 28 Apr 2020 07:46:08 -0700 (PDT) Received: from angelo-ThinkPad-T470p.powersoft.it (host185036129193.static.fidoka.tech. [185.36.129.193]) by smtp.gmail.com with ESMTPSA id t13sm12797609ljd.38.2020.04.28.07.46.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Apr 2020 07:46:07 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 28 Apr 2020 16:45:59 +0200 Message-Id: <1588085161-28104-2-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588085161-28104-1-git-send-email-angelo@amarulasolutions.com> References: <1588085161-28104-1-git-send-email-angelo@amarulasolutions.com> Subject: [Buildroot] [PATCH v6 2/4] package/environment-setup: add configure 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 , Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Angelo Compagnucci In order to simplify the usage of a buildroot toolchain within the buildroot shell, a "configure" alias is provided to call ./configure with the correct flags. Signed-off-by: Angelo Compagnucci --- docs/manual/using-buildroot-toolchain.txt | 4 ++-- package/environment-setup/environment-setup | 1 + package/environment-setup/environment-setup.mk | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/manual/using-buildroot-toolchain.txt b/docs/manual/using-buildroot-toolchain.txt index 98dae6c..fbe25a9 100644 --- a/docs/manual/using-buildroot-toolchain.txt +++ b/docs/manual/using-buildroot-toolchain.txt @@ -32,8 +32,8 @@ BR2_PACKAGE_HOST_ENVIRONMENT_SETUP, you can have a +setup-environment+ script installed in +output/host/+. This script can be sourced with +. your/sdk/path/environment-setup+ to launch the buildroot shell. Inside this shell, you will find an environment already -set up with the correct PATH and the complete list of +target configure -options+. +set up with the correct PATH, the complete list of +target configure +options+ and some useful commands. Alternatively, if you just want to prepare the SDK without generating the tarball (e.g. because you will just be moving the +host+ directory, diff --git a/package/environment-setup/environment-setup b/package/environment-setup/environment-setup index b48f197..db652fe 100644 --- a/package/environment-setup/environment-setup +++ b/package/environment-setup/environment-setup @@ -11,6 +11,7 @@ Some tips: * PATH is now pointing to the HOST_DIR path * Target configure options are already exported * To configure do "./configure $CONFIGURE_FLAGS" +* Alternatively use the alias "configure" EOF SDK_PATH=$(dirname $(realpath "${BASH_SOURCE[0]}")) diff --git a/package/environment-setup/environment-setup.mk b/package/environment-setup/environment-setup.mk index 6d2396f..138710c 100644 --- a/package/environment-setup/environment-setup.mk +++ b/package/environment-setup/environment-setup.mk @@ -22,6 +22,8 @@ define HOST_ENVIRONMENT_SETUP_INSTALL_CMDS --sysconfdir=/etc \ --localstatedir=/var \ --program-prefix=\"\n" >> $(ENVIRONMENT_SETUP_FILE) + printf "alias configure=\"./configure \$${CONFIGURE_FLAGS}\"\n" \ + >> $(ENVIRONMENT_SETUP_FILE) $(SED) $(ENVIRONMENT_SETUP_HOST_BIN_DIR_SED_EXP) \ -e $(ENVIRONMENT_SETUP_HOST_DIR_SED_EXP) \ -e '/^export "PATH=/c\' \