From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DF022E006C7; Mon, 7 Nov 2016 05:17:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.67 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (mario.goulart[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [74.125.82.67 listed in dnsbl.sorbs.net] Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7E829E00563 for ; Mon, 7 Nov 2016 05:17:50 -0800 (PST) Received: by mail-wm0-f67.google.com with SMTP id u144so16435920wmu.0 for ; Mon, 07 Nov 2016 05:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QKSeKPRJSqx/Ftu16k3TXNInK6xTzorcz8LhYMpasKY=; b=sVcETgcCIfMs/2jWxMIirTJPXeSagJr9W14TORxGrzr+e3a3O+djrd5k1fssvWrwGA wD65NewbCIz5YsdVgCM8PgnHy934zCZZpC+fFKzPM5cW9iNaLMum82yT3qgp8WucOeUL +idvGNVUJJT4i1tL933n5IEefLo9aTiKVLmPtGkElkSpaZGbjHWmg4V2kxwFa2XZlO/g pqieV4Oqj055rhTw1yjHGoRE2lT1N77evcalmdBkeqNXKndz/7Q/D6L6hzLglkYgEFVN 7/L0Oi5UW0gTtt3Z8AnK1imhS3YYnXPHNpFWVH/IogSkjMhwVvKCPKh0hUjk9vWz2yf6 Fn3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QKSeKPRJSqx/Ftu16k3TXNInK6xTzorcz8LhYMpasKY=; b=CS751posaVVeibYm53x3WR9SHuH4Mcvvb8FyOAQiQ8EO0GnqPGNg7UZYHq1K7v7cVr pNgIkWLH6HZYnEUkF78mvC19C5hMmaJ7wJoaSGU5GSxOdQ8YYt1qVw2bRh6hSm+OAr+L EA5JcIPNV7UjMHZyMMuiO3TZLqXZxW5pJsMTyEN8CJ0A+1Xlns5ehosVGUE8I7TvmIe/ 18IL+113Qsyvj/J393DBT88gEdUkADDoRfyBcMYuOZVAsVkO5FhdL5j+tQewjJt9+k8B vwoejCU+CGfsx2769QkIWilOrXkjVvIgJ4FZyAVo47uMrzMQkhtWgs+OzXoQUfHxDQfh C3tA== X-Gm-Message-State: ABUngvdF59joM4BHtLd1f+px/dl9qTrx4SMwt523bC3W7I/tFciYM2/0RJ+O4pM8CPirlQ== X-Received: by 10.28.31.65 with SMTP id f62mr7568721wmf.108.1478524669987; Mon, 07 Nov 2016 05:17:49 -0800 (PST) Received: from parenteses.gmail.com (email.parenteses.org. [5.9.149.108]) by smtp.gmail.com with ESMTPSA id k74sm13539486wmd.18.2016.11.07.05.17.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 05:17:49 -0800 (PST) From: Mario Domenech Goulart To: Fabio Berton References: <1478519672-1615-1-git-send-email-fabio.berton@ossystems.com.br> Date: Mon, 07 Nov 2016 14:17:48 +0100 In-Reply-To: <1478519672-1615-1-git-send-email-fabio.berton@ossystems.com.br> (Fabio Berton's message of "Mon, 7 Nov 2016 09:54:31 -0200") Message-ID: <87wpgfpgxv.fsf@parenteses.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Cc: meta-freescale@yoctoproject.org Subject: Re: [base][PATCH 1/2] setup-environment: Add support for set distro X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2016 13:17:54 -0000 Content-Type: text/plain Hi Fabio, On Mon, 7 Nov 2016 09:54:31 -0200 Fabio Berton wrote: > To run setup-environment you need to set one of distros listed on > supported distros using command like: > > MACHINE=imx6qsabresd DISTRO=fslc-framebuffer source setup-environment build > > Note that DISTRO is a required variable and won't be set if not defined. > > Signed-off-by: Fabio Berton > --- > setup-environment | 26 ++++++++++++++++++++++---- > 1 file changed, 22 insertions(+), 4 deletions(-) > > diff --git a/setup-environment b/setup-environment > index 099b21b..a955182 100755 > --- a/setup-environment > +++ b/setup-environment > @@ -27,19 +27,25 @@ usage() > { > echo -e "\nUsage: source $PROGNAME > : specifies the build directory location (required) > + : specifies the disto name Small typo: s/disto/distro/ > If undefined, this script will set \$MACHINE to 'imx6qsabresd'. > +You need to set DISTRO to use this environment. > " > > ls sources/*/conf/machine/*.conf > /dev/null 2>&1 > + ls sources/meta-freescale-distro/conf/distro/fslc-*.conf > /dev/null 2>&1 > if [ $? -eq 0 ]; then > echo -e " > Supported machines: `echo; ls sources/*/conf/machine/*.conf \ > | sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%"` > > -To build for a machine listed above, run this script as: > -MACHINE= source $PROGNAME > -" > +Supported distros: `echo; ls sources/meta-freescale-distro/conf/distro/fslc-*.conf \ > +| sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%"` > + > +To build for a distro and machine listed above, run this script as: > +MACHINE= DISTRO= source $PROGNAME > +Ex: MACHINE=imx6qsabresd DISTRO=fslc-framebuffer source $PROGNAME build" > fi > } > > @@ -105,7 +111,19 @@ if [ -z "$SDKMACHINE" ]; then > fi > > if [ -z "$DISTRO" ]; then > - DISTRO='poky' > + echo "You must set DISTRO before setting up the environment." > +fi > +# Check the machine type specified > +LIST_DISTROS=`ls -1 $CWD/sources/meta-freescale-distro/conf/distro` > +VALID_DISTRO=`echo -e "$LIST_DISTROS" | grep ${DISTRO}.conf$ | wc -l` > +if [ "x$DISTRO" = "x" ] || [ "$VALID_DISTRO" = "0" ]; then > + echo -e "The \$DISTRO you have specified ($DISTRO) is not supported by this build setup\n" > + usage && clean_up > + return 1 > +else > + if [ ! -e $1/conf/local.conf.sample ]; then > + echo "Configuring for ${DISTRO}" > + fi > fi > > OEROOT=$PWD/sources/poky > -- > 2.1.4 -- http://parenteses.org/mario