From: claudius.heine.ext@siemens.com
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [RFC PATCH 0/1] Template system
Date: Thu, 31 Jan 2019 10:44:57 +0100 [thread overview]
Message-ID: <20190131094458.32223-1-claudius.heine.ext@siemens.com> (raw)
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
next reply other threads:[~2019-01-31 9:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 9:44 claudius.heine.ext [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190131094458.32223-1-claudius.heine.ext@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=ch@denx.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox