All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: <cip-dev@lists.cip-project.org>
Cc: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
Subject: [isar-cip-core][PATCH v3 5/6] customizations: Factor out a common.inc
Date: Thu, 27 Jan 2022 18:12:42 +0100	[thread overview]
Message-ID: <7f039c5d636de4d8d8e781dc384956c69e8d7716.1643303563.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1643303563.git.jan.kiszka@siemens.com>

From: Jan Kiszka <jan.kiszka@siemens.com>

This can be re-used by other customization recipes.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 .../{customizations.bb => common.inc}         |  4 +--
 recipes-core/customizations/customizations.bb | 27 ++-----------------
 2 files changed, 4 insertions(+), 27 deletions(-)
 copy recipes-core/customizations/{customizations.bb => common.inc} (90%)

diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/customizations/common.inc
similarity index 90%
copy from recipes-core/customizations/customizations.bb
copy to recipes-core/customizations/common.inc
index d302b4a..d3eb7b8 100644
--- a/recipes-core/customizations/customizations.bb
+++ b/recipes-core/customizations/common.inc
@@ -1,7 +1,7 @@
 #
 # CIP Core, generic profile
 #
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2019-2022
 #
 # Authors:
 #  Jan Kiszka <jan.kiszka@siemens.com>
@@ -11,7 +11,7 @@
 
 inherit dpkg-raw
 
-DESCRIPTION = "CIP Core image demo & customizations"
+FILESPATH_append := ":${FILE_DIRNAME}/files"
 
 SRC_URI = " \
     file://postinst \
diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/customizations/customizations.bb
index d302b4a..96e88dd 100644
--- a/recipes-core/customizations/customizations.bb
+++ b/recipes-core/customizations/customizations.bb
@@ -1,7 +1,7 @@
 #
 # CIP Core, generic profile
 #
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2019-2022
 #
 # Authors:
 #  Jan Kiszka <jan.kiszka@siemens.com>
@@ -9,29 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-inherit dpkg-raw
+require common.inc
 
 DESCRIPTION = "CIP Core image demo & customizations"
-
-SRC_URI = " \
-    file://postinst \
-    file://ethernet \
-    file://99-silent-printk.conf"
-
-WIRELESS_FIRMWARE_PACKAGE ?= ""
-INSTALL_WIRELESS_TOOLS ??= "0"
-
-DEPENDS += "sshd-regen-keys"
-
-DEBIAN_DEPENDS = " \
-    ifupdown, isc-dhcp-client, net-tools, iputils-ping, ssh, sshd-regen-keys \
-    ${@(', iw, wireless-regdb, ' + d.getVar('WIRELESS_FIRMWARE_PACKAGE')) \
-	if d.getVar('INSTALL_WIRELESS_TOOLS') == '1' else ''}"
-
-do_install() {
-	install -v -d ${D}/etc/network/interfaces.d
-	install -v -m 644 ${WORKDIR}/ethernet ${D}/etc/network/interfaces.d/
-
-	install -v -d ${D}/etc/sysctl.d
-	install -v -m 644 ${WORKDIR}/99-silent-printk.conf ${D}/etc/sysctl.d/
-}
-- 
2.31.1



  parent reply	other threads:[~2022-01-27 17:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 17:12 [isar-cip-core][PATCH v3 0/6] Add cip-core-image-kernelci building and uploading system Jan Kiszka
2022-01-27 17:12 ` [isar-cip-core][PATCH v3 1/6] Add cip-core-image-kernelci Jan Kiszka
2022-01-27 17:12 ` [isar-cip-core][PATCH v3 2/6] Add dmesg filter needed for lava test result Jan Kiszka
2022-01-27 17:12 ` [isar-cip-core][PATCH v3 3/6] Add script deploy-kernelci.py for upload the cip-core-image-kernelci Jan Kiszka
2022-09-01 10:54   ` Jan Kiszka
2022-09-02 15:27     ` Alice Ferrazzi
     [not found]     ` <1711151143769181.21591@lists.cip-project.org>
2022-09-03  7:59       ` [cip-dev] " Alice Ferrazzi
2022-01-27 17:12 ` [isar-cip-core][PATCH v3 4/6] enable cip-core-image-kernelci Jan Kiszka
2022-01-27 17:12 ` Jan Kiszka [this message]
2022-01-27 17:12 ` [isar-cip-core][PATCH v3 6/6] kernelci-customizations: Reuse common customizations Jan Kiszka

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=7f039c5d636de4d8d8e781dc384956c69e8d7716.1643303563.git.jan.kiszka@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=alice.ferrazzi@miraclelinux.com \
    --cc=cip-dev@lists.cip-project.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.