public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/1] Template system
@ 2019-02-04 11:37 claudius.heine.ext
  2019-02-04 11:37 ` [RFC PATCH v2 1/1] meta: added do_transform_template task as templating system and switch claudius.heine.ext
  2019-02-04 11:59 ` [RFC PATCH v2 0/1] Template system Jan Kiszka
  0 siblings, 2 replies; 3+ messages in thread
From: claudius.heine.ext @ 2019-02-04 11:37 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-04 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 11:37 [RFC PATCH v2 0/1] Template system claudius.heine.ext
2019-02-04 11:37 ` [RFC PATCH v2 1/1] meta: added do_transform_template task as templating system and switch claudius.heine.ext
2019-02-04 11:59 ` [RFC PATCH v2 0/1] Template system Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox