From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6652594697292218368 X-Received: by 2002:a19:ee0f:: with SMTP id g15mr968920lfb.3.1548927905371; Thu, 31 Jan 2019 01:45:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:41d9:: with SMTP id d25ls519979lfi.11.gmail; Thu, 31 Jan 2019 01:45:04 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib2abcyqgLcy6/aF5yiXidYQIiv7knV+IwICUaJazK3CZeLxBxdo7f2QYgDTf0ybN2L8oSD X-Received: by 2002:a19:5519:: with SMTP id n25mr974308lfe.1.1548927904752; Thu, 31 Jan 2019 01:45:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548927904; cv=none; d=google.com; s=arc-20160816; b=QOFHrC8vOD5woQpxwzDkmlQ2yypv++giq5UqHa81xwja10m91MforOzr36c/ZTfM7U DGPRCvF4eDk3E/DvQOTfN/8T/TN+sxAFGjryYLslFYyw0NfV2ZRC9BJJ6J7PeXtkVAOp JbADsSg0wzuq6faPLY79+PV3slr0MbhzVgDQhspaHNT8yChXieumVgzDWSgPwHOrCfV5 ffHWUJbx6koi9YZFlRnP0F6tM5qlu0bOz5sAodYBK3K0w13l19IbHtKDK+64gqXFvJtA P+XArdvSgIbyahmQJsN9yfE3udZgqakTUBj5G5WFYz09hGqiUPsWj8o1w7+YRbTb/h1F rHkQ== 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=Oc+NH8lVcwh5pzyQhlY+pTks8u8VsdUrCIxcTYWJ9E4=; b=AvOaA5xAT/I6qj3F42atWyVRxrWM0XrIt/RdV/zOD0NFOrodTjXXJdu3acs/SxCPPZ Hi7K7ePDAz/Q2otB+urzOsuaUHhvQBkN4aWFoWCgYyuALKLbeNK18frdAeQw+fsLA+Pa d4YLtAyt+vMiKIfbmEtMKTfmpM0x+AVXJ7brXAgzjbYy/ZzEohENnke7KT3uWHCYLTFB UMMc4okgcepDQGNgOHnt6fr8D384Jk/+XTcR/WDRg4TGJsC+w7qY2OfAggtuoERp4yia kiiCvNJz3uOW9eX7gVx12HieUBJHaVb2P+4mLesrahwnxip+EY5A/jNUeq7znAousUwL XSoA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 205si151501lfb.2.2019.01.31.01.45.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 01:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x0V9j3tg026651 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 10:45:03 +0100 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.181]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x0V9j3rU020590; Thu, 31 Jan 2019 10:45:03 +0100 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [RFC PATCH 0/1] Template system Date: Thu, 31 Jan 2019 10:44:57 +0100 Message-Id: <20190131094458.32223-1-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: RRpawz8mh/Jx From: Claudius Heine 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