[elbe-devel] [PATCH v2 20/24] elbeproject/sdk: create env-setup file

Torben Hohn torben.hohn at linutronix.de
Thu Feb 8 16:46:30 CET 2018


On Thu, Feb 08, 2018 at 02:17:06PM +0100, Manuel Traut wrote:
> instead of writing a dummy file, create a env-setup file based
> on the mako template
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>

has to be applied together with patch 24.

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/elbeproject.py | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index 5dccd24f..cac3d88f 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -276,8 +276,12 @@ class ElbeProject (object):
>          with open(os.path.join(self.builddir, 'setup-sdk.sh'), 'w') as f:
>              f.write(template(t, sdkvalues))
>  
> +        t = os.path.join(mako_template_dir, 'environment-setup-elbe.mako')
> +        with open(os.path.join(self.sdkpath,
> +                               'environment-setup-elbe'), 'w') as f:
> +            f.write(template(t, sdkvalues))
> +
>          # create sdk tar and append it to setup script
> -        self.log.do("cd %s; touch environment-setup-elbe" % self.sdkpath)
>          self.log.do("cd %s; tar cJf ../sdk.txz ." % self.sdkpath)
>          self.log.do("cd %s; cat sdk.txz >> setup-sdk.sh" % self.builddir)
>          self.log.do("cd %s; chmod +x setup-sdk.sh" % self.builddir)
> -- 
> 2.15.1
> 

-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180208/ad63ece4/attachment.sig>


More information about the elbe-devel mailing list