From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH 3/3] Append KERNEL_NAME to dependent custom modules and u-boot-script
Date: Fri, 23 Nov 2018 14:28:07 +0300 [thread overview]
Message-ID: <8b6db4ba-fcbe-9d1d-a8b4-ae9650f8604a@ilbers.de> (raw)
In-Reply-To: <6d0d7c60da76a1b7e83a665c4f4e4f14b85981a2.1542891520.git.jan.kiszka@siemens.com>
On 11/22/18 3:58 PM, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
This patch breaks CI's vm_smoke_test causing failure reports (for all
targets):
Check example module: FAIL
To reproduce the problem launch "fast" CI:
$ ./scripts/ci_build.sh -q -f
$ source isar-init-build-env
$ vm_smoke_test -q -f
Regards,
Maxim.
> When building different kernels for different images of the same
> distro/arch tuple via multiconfig, modules and u-boot-script packages
> become non-differentiable. Address this by appending the kernel name to
> their binary package names.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> RECIPE-API-CHANGELOG.md | 5 +++++
> meta-isar/conf/local.conf.sample | 2 +-
> meta-isar/conf/machine/de0-nano-soc.conf | 2 +-
> meta-isar/conf/multiconfig/bananapi-stretch.conf | 2 +-
> meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb | 2 ++
> meta/recipes-kernel/linux-module/module.inc | 2 ++
> 6 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> index c95c7ac..306971e 100644
> --- a/RECIPE-API-CHANGELOG.md
> +++ b/RECIPE-API-CHANGELOG.md
> @@ -106,3 +106,8 @@ isar-image-base-debian-stretch-qemuarm.vmlinuz-4.9.0-8-armmp
>
> It should be noted that the `KERNEL_IMAGE` and `INITRD_IMAGE` variables were
> updated hence recipes using them shouldn't be impacted per se.
> +
> +### Append kernel name to custom module and u-boot-script packages
> +
> +These packages depend on a specific kernel. Its identification is now appended
> +to the binary package names in the form "-${KERNEL_NAME}".
> diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
> index ffcb7ab..4a60068 100644
> --- a/meta-isar/conf/local.conf.sample
> +++ b/meta-isar/conf/local.conf.sample
> @@ -160,7 +160,7 @@ CONF_VERSION = "1"
>
> #
> # The default list of extra packages to be installed.
> -IMAGE_INSTALL = "example-hello example-raw example-module enable-fsck"
> +IMAGE_INSTALL = "example-hello example-raw example-module-${KERNEL_NAME} enable-fsck"
>
> #
> # Enable cross-compilation support
> diff --git a/meta-isar/conf/machine/de0-nano-soc.conf b/meta-isar/conf/machine/de0-nano-soc.conf
> index 63b2cfb..184da4a 100644
> --- a/meta-isar/conf/machine/de0-nano-soc.conf
> +++ b/meta-isar/conf/machine/de0-nano-soc.conf
> @@ -15,4 +15,4 @@ WKS_FILE ?= "de0-nano-soc"
> IMAGER_INSTALL += "u-boot-de0-nano-soc"
> IMAGER_BUILD_DEPS += "u-boot-de0-nano-soc"
>
> -IMAGE_INSTALL += "u-boot-tools u-boot-script"
> +IMAGE_INSTALL += "u-boot-tools u-boot-script-${KERNEL_NAME}"
> diff --git a/meta-isar/conf/multiconfig/bananapi-stretch.conf b/meta-isar/conf/multiconfig/bananapi-stretch.conf
> index 7fafe69..bf89652 100644
> --- a/meta-isar/conf/multiconfig/bananapi-stretch.conf
> +++ b/meta-isar/conf/multiconfig/bananapi-stretch.conf
> @@ -13,7 +13,7 @@ KERNEL_NAME ?= "armmp"
> DISTRO_APT_SOURCES_append = " conf/distro/debian-stretch-backports.list"
> DISTRO_APT_PREFERENCES += "conf/multiconfig/preferences.bananapi.conf"
>
> -IMAGE_INSTALL += "u-boot-script"
> +IMAGE_INSTALL += "u-boot-script-${KERNEL_NAME}"
>
> IMAGE_TYPE ?= "wic-img"
> WKS_FILE ?= "bananapi"
> diff --git a/meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb b/meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb
> index 2806ba7..a827c35 100644
> --- a/meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb
> +++ b/meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb
> @@ -12,6 +12,8 @@ WKS_FULL_PATH = "${@get_wks_full_path(d)}"
>
> DESCRIPTION = "Boot script generator for U-Boot"
>
> +PN .= "-${KERNEL_NAME}"
> +
> SRC_URI = " \
> file://update-u-boot-script \
> file://u-boot-script \
> diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc
> index 9af3a93..509dd96 100644
> --- a/meta/recipes-kernel/linux-module/module.inc
> +++ b/meta/recipes-kernel/linux-module/module.inc
> @@ -9,6 +9,8 @@ FILESPATH =. "${LAYERDIR_core}/recipes-kernel/linux-module/files:"
>
> DESCRIPTION ?= "Custom kernel module ${PN}"
>
> +PN .= "-${KERNEL_NAME}"
> +
> DEPENDS += "linux-headers-${KERNEL_NAME}"
>
> SRC_URI += "file://debian/"
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
next prev parent reply other threads:[~2018-11-23 11:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-22 12:58 [PATCH 0/3] Bitbake fix, kernel-specific package naming Jan Kiszka
2018-11-22 12:58 ` [PATCH 1/3] bitbake: Update to fixed master revision Jan Kiszka
2018-11-22 13:12 ` Henning Schild
2018-11-22 13:14 ` Jan Kiszka
2018-11-22 13:18 ` Henning Schild
2018-11-22 13:25 ` Jan Kiszka
2018-11-22 13:58 ` Henning Schild
2018-11-22 14:28 ` Jan Kiszka
2018-11-22 15:36 ` Henning Schild
2018-11-22 15:42 ` Jan Kiszka
2018-11-22 13:19 ` Jan Kiszka
2018-11-23 11:27 ` Maxim Yu. Osipov
2018-11-22 12:58 ` [PATCH 2/3] RECIPE-API-CHANGELOG: Reorder and capitalize sentences Jan Kiszka
2018-11-22 13:10 ` [PATCH v2 " Jan Kiszka
2018-11-23 11:28 ` Maxim Yu. Osipov
2018-11-22 12:58 ` [PATCH 3/3] Append KERNEL_NAME to dependent custom modules and u-boot-script Jan Kiszka
2018-11-23 11:28 ` Maxim Yu. Osipov [this message]
2018-11-23 11:34 ` Jan Kiszka
2018-11-23 11:38 ` [PATCH v2 " Jan Kiszka
2018-11-23 12:35 ` Maxim Yu. Osipov
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=8b6db4ba-fcbe-9d1d-a8b4-ae9650f8604a@ilbers.de \
--to=mosipov@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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