From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6652594697292218368 X-Received: by 2002:a1c:ac87:: with SMTP id v129mr1112512wme.20.1549280262883; Mon, 04 Feb 2019 03:37:42 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:544c:: with SMTP id w12ls958056wrv.13.gmail; Mon, 04 Feb 2019 03:37:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IaA2pz33BguTyOV+dD4L8/XInw13M91DFLgqnCokcANSnbxNcdA5tz05Du8cTNbyBjJbjeX X-Received: by 2002:adf:f5c8:: with SMTP id k8mr694721wrp.26.1549280262499; Mon, 04 Feb 2019 03:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549280262; cv=none; d=google.com; s=arc-20160816; b=Rz9AKI1ysbmhX3MJqfP8xcPC/ngdukrT9PYV5J/gEHAnbEih4aBSv0Q8wswGqk6aVT 1ajpGXmjrp4yzNwG14vZkb5aL9thbXqlWEh1i6u6jLSyrcr5iILJnH0X7WCBABlYXF/y ySxVjGOXV8Vdv8Okp4yklqE2rnpqrn9O8gAAJVZj6hMMkAY5uc2/TZh+q8lSL38ETxFa FZRx2WzQivSjGiVQRpWW86pFoSZubR57lNUsdfhj1ScblLAboWnNZn3Z13bABUOnQ1Pj FNtNoTqweJ/cNGWCYWZKzsRkNjupoidvEQIgq9qUa0wku0Y9HFAoDs0zZ1vHJ1IDnZre zXFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=lLnGHsBg5ntI7z3lILETUXDfgI/5yqPC7a/Vdu2a+XA=; b=mvYglVyo21eC6QFwqFHmj+Pp/6KeuuYOoCdSfuXLRmyDGUqueT9f+NTqDFX29wzyCu xp2nJ1i3GMkbEFBnCimuur1ywnUpzPWN3d99OaeYogOMGPeB7ZlFnbEHjfa6LxYcdS32 ZvZjlfyTeV9aMH0DVMaFTNdVE8QnkWxqjXSTDK2IpH4f6uajl48HkuYN3dn7n8ii6YWl Bp1U5Xky+mxhqzOnGPLmuhHBkIcYf/pdW6wecy5gyZ2oJeHzCOcFyDz9yq3J+++gk3VH YZ8ZQaii1+3By9AaWk8TqFEwJiM0VZfb7oXilzxdA6AxYerpNEJ46C/cjaxollojkU6c NrnA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id f6si473014wmj.0.2019.02.04.03.37.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 03:37:42 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x14Bbfxj013720 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Feb 2019 12:37:42 +0100 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.181]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x14BbeRG010886; Mon, 4 Feb 2019 12:37:40 +0100 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [RFC PATCH v2 0/1] Template system Date: Mon, 4 Feb 2019 12:37:36 +0100 Message-Id: <20190204113737.19784-1-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: lfDKNmUlik8b From: Claudius Heine Hi, here is an alternative implementation of the template system. Instead of a shell function, here the templates are processed in one additional task. The interface to this task are two variables (TEMPLATE_FILES and TEMPLATE_VARS). The advantage of this additional task compared to the shell function is that the template variables are not exported, so only this task will be reexecuted if those are changed. Not other independent shell tasks. Cheers, Claudius Claudius Heine (1): meta: added do_transform_template task as templating system and switch meta/classes/base.bbclass | 44 +++++++++++++++++++ meta/classes/dpkg-base.bbclass | 2 +- .../debian/{changelog => changelog.tmpl} | 2 +- meta/recipes-bsp/u-boot/files/debian/control | 19 -------- .../u-boot/files/debian/control.tmpl | 19 ++++++++ meta/recipes-bsp/u-boot/u-boot-custom.inc | 12 ++--- .../debian/{changelog => changelog.tmpl} | 2 +- .../linux-module/files/debian/control | 11 ----- .../linux-module/files/debian/control.tmpl | 11 +++++ meta/recipes-kernel/linux-module/module.inc | 7 ++- 10 files changed, 86 insertions(+), 43 deletions(-) rename meta/recipes-bsp/u-boot/files/debian/{changelog => changelog.tmpl} (74%) delete mode 100644 meta/recipes-bsp/u-boot/files/debian/control create mode 100644 meta/recipes-bsp/u-boot/files/debian/control.tmpl rename meta/recipes-kernel/linux-module/files/debian/{changelog => changelog.tmpl} (74%) delete mode 100644 meta/recipes-kernel/linux-module/files/debian/control create mode 100644 meta/recipes-kernel/linux-module/files/debian/control.tmpl -- 2.20.1