public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] Template system
@ 2019-01-31  9:44 claudius.heine.ext
  2019-01-31  9:44 ` [RFC PATCH 1/1] meta: added template file system and switched recipes to it claudius.heine.ext
  0 siblings, 1 reply; 5+ messages in thread
From: claudius.heine.ext @ 2019-01-31  9:44 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

Hi,

this patch replaces the sed usage with envsubst usage, that should be
overall more robust, see base.bbclass.

I converted most sed usage, where it makes sense, to the new format for
demonstration.

Currently it is necessary to export all variables to the environment
that should be replaced in the template file.

I added exports for some commonly used variables to the base.bbclass.

Thanks for all comments,
Claudius

Claudius Heine (1):
  meta: added template file system and switched recipes to it

 meta/classes/base.bbclass                     | 30 +++++++++++++++++++
 .../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     | 17 ++++-------
 .../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 ++---
 9 files changed, 70 insertions(+), 48 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] 5+ messages in thread

end of thread, other threads:[~2019-01-31 11:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-31  9:44 [RFC PATCH 0/1] Template system claudius.heine.ext
2019-01-31  9:44 ` [RFC PATCH 1/1] meta: added template file system and switched recipes to it claudius.heine.ext
2019-01-31 10:23   ` Jan Kiszka
2019-01-31 11:25     ` Henning Schild
2019-01-31 11:35     ` Claudius Heine

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