From: Henning Schild <henning.schild@siemens.com>
To: Cedric Hombourger <Cedric_Hombourger@mentor.com>
Cc: <isar-users@googlegroups.com>
Subject: Re: [PATCH 10/10] meta-isar: add creator-ci40-marduk machine (mipsel + mainline kernel)
Date: Thu, 24 Oct 2019 20:13:39 +0200 [thread overview]
Message-ID: <20191024201339.27779100@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <1571907744-1121-11-git-send-email-Cedric_Hombourger@mentor.com>
Am Thu, 24 Oct 2019 11:02:24 +0200
schrieb Cedric Hombourger <Cedric_Hombourger@mentor.com>:
> Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
> ---
> .../creator-ci40-image-extension.bbclass | 9 +++++++
> meta-isar/conf/local.conf.sample | 1 +
> .../conf/machine/creator-ci40-marduk.conf | 14 ++++++++++
> .../creator-ci40-marduk-buster.conf | 7 +++++
> ...tachio-set-KBUILD_IMAGE-to-uImage.gz.patch | 27
> +++++++++++++++++++ .../recipes-kernel/linux/files/no-display.cfg |
> 1 + .../recipes-kernel/linux/files/no-fs-nfs.cfg | 6 +++++
> .../recipes-kernel/linux/files/no-sound.cfg | 1 +
> .../linux/linux-mainline_4.19.80.bb | 6 +++++
> 9 files changed, 72 insertions(+)
> create mode 100644
> meta-isar/classes/creator-ci40-image-extension.bbclass create mode
> 100644 meta-isar/conf/machine/creator-ci40-marduk.conf create mode
> 100644 meta-isar/conf/multiconfig/creator-ci40-marduk-buster.conf
> create mode 100644
> meta-isar/recipes-kernel/linux/files/0001-MIPS-pistachio-set-KBUILD_IMAGE-to-uImage.gz.patch
> create mode 100644
> meta-isar/recipes-kernel/linux/files/no-display.cfg create mode
> 100644 meta-isar/recipes-kernel/linux/files/no-fs-nfs.cfg create mode
> 100644 meta-isar/recipes-kernel/linux/files/no-sound.cfg
>
> diff --git a/meta-isar/classes/creator-ci40-image-extension.bbclass
> b/meta-isar/classes/creator-ci40-image-extension.bbclass new file
> mode 100644 index 0000000..9879cd7
> --- /dev/null
> +++ b/meta-isar/classes/creator-ci40-image-extension.bbclass
> @@ -0,0 +1,9 @@
> +# This software is a part of ISAR.
> +# Copyright (C) Mentor Graphics, a Siemens business, 2019
> +
> +ROOTFS_POSTPROCESS_COMMAND =+ "image_postprocess_creator_ci40"
> +image_postprocess_creator_ci40() {
> + sudo mv ${IMAGE_ROOTFS}/boot/vmlinux-* ${IMAGE_ROOTFS}/uImage
> + sudo mv ${IMAGE_ROOTFS}/usr/lib/linux-*/img/*dtb ${IMAGE_ROOTFS}/
> + sudo rm -f ${IMAGE_ROOTFS}/vmlinux*
> +}
And this is what you needed the hacky feature for. I understand but i
guess is can be done with postinst. I think the symlinks in / are done
by postinst scripts. And the final location is really only interesting
for your bootloader, which should maybe look in /boot.
Moving these files around will cause an inconsistent view of your
package manager on your rootfs. Copies to /usr/local/ would maybe be
fine.
Henning
> diff --git a/meta-isar/conf/local.conf.sample
> b/meta-isar/conf/local.conf.sample index d73da1d..62218c2 100644
> --- a/meta-isar/conf/local.conf.sample
> +++ b/meta-isar/conf/local.conf.sample
> @@ -59,6 +59,7 @@ BBMULTICONFIG = " \
> hikey-stretch \
> nand-ubi-demo-buster \
> rpi-stretch \
> + creator-ci40-marduk-buster \
> "
>
> #
> diff --git a/meta-isar/conf/machine/creator-ci40-marduk.conf
> b/meta-isar/conf/machine/creator-ci40-marduk.conf new file mode 100644
> index 0000000..41c3b3d
> --- /dev/null
> +++ b/meta-isar/conf/machine/creator-ci40-marduk.conf
> @@ -0,0 +1,14 @@
> +#
> +# Copyright (c) Mentor Graphics, a Siemens business, 2019
> +#
> +# SPDX-License-Identifier: MIT
> +
> +DISTRO_ARCH ?= "mipsel"
> +
> +KERNEL_NAME ?= "mainline"
> +KERNEL_DEFCONFIG ?= "pistachio_defconfig"
> +KERNEL_FILE ?= "vmlinux"
> +KBUILD_DEPENDS_append = " u-boot-tools "
> +
> +IMAGE_TYPE ?= "ext4-img"
> +CUSTOM_IMAGE_EXTENSIONS_append = " creator-ci40-image-extension "
> diff --git
> a/meta-isar/conf/multiconfig/creator-ci40-marduk-buster.conf
> b/meta-isar/conf/multiconfig/creator-ci40-marduk-buster.conf new file
> mode 100644 index 0000000..b634a56 --- /dev/null
> +++ b/meta-isar/conf/multiconfig/creator-ci40-marduk-buster.conf
> @@ -0,0 +1,7 @@
> +#
> +# Copyright (c) Mentor Graphics, a Siemens business, 2019
> +#
> +# SPDX-License-Identifier: MIT
> +
> +MACHINE = "creator-ci40-marduk"
> +DISTRO = "debian-buster"
> diff --git
> a/meta-isar/recipes-kernel/linux/files/0001-MIPS-pistachio-set-KBUILD_IMAGE-to-uImage.gz.patch
> b/meta-isar/recipes-kernel/linux/files/0001-MIPS-pistachio-set-KBUILD_IMAGE-to-uImage.gz.patch
> new file mode 100644 index 0000000..33ee90f --- /dev/null
> +++
> b/meta-isar/recipes-kernel/linux/files/0001-MIPS-pistachio-set-KBUILD_IMAGE-to-uImage.gz.patch
> @@ -0,0 +1,27 @@ +From 7b8209dd21049d57e80ece10862d90105a1f6340 Mon
> Sep 17 00:00:00 2001 +From: Cedric Hombourger
> <Cedric_Hombourger@mentor.com> +Date: Thu, 13 Jun 2019 15:56:48 -0400
> +Subject: [PATCH] MIPS: pistachio: set KBUILD_IMAGE to uImage.gz
> +
> +scripts/package/builddep uses the image_name make target to determine
> +the kernel image binary to be included in the linux-image package. As
> +the u-boot binary expects a kernel in the uImage format, make sure
> +"make -s image_name" prints arch/mips/boot/uImage.gz.
> +
> +Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
> +---
> + arch/mips/pistachio/Platform | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/arch/mips/pistachio/Platform
> b/arch/mips/pistachio/Platform +index c3592b374ad2..ab3962b8c3b4
> 100644 +--- a/arch/mips/pistachio/Platform
> ++++ b/arch/mips/pistachio/Platform
> +@@ -7,3 +7,4 @@ cflags-$(CONFIG_MACH_PISTACHIO)
> += \
> + load-$(CONFIG_MACH_PISTACHIO) += 0xffffffff80400000
> + zload-$(CONFIG_MACH_PISTACHIO) += 0xffffffff81000000
> + all-$(CONFIG_MACH_PISTACHIO) := uImage.gz
> ++KBUILD_IMAGE := arch/mips/boot/uImage.gz
> +--
> +2.11.0
> +
> diff --git a/meta-isar/recipes-kernel/linux/files/no-display.cfg
> b/meta-isar/recipes-kernel/linux/files/no-display.cfg new file mode
> 100644 index 0000000..7310c1a
> --- /dev/null
> +++ b/meta-isar/recipes-kernel/linux/files/no-display.cfg
> @@ -0,0 +1 @@
> +# CONFIG_FB is not set
> diff --git a/meta-isar/recipes-kernel/linux/files/no-fs-nfs.cfg
> b/meta-isar/recipes-kernel/linux/files/no-fs-nfs.cfg new file mode
> 100644 index 0000000..00a1fd2
> --- /dev/null
> +++ b/meta-isar/recipes-kernel/linux/files/no-fs-nfs.cfg
> @@ -0,0 +1,6 @@
> +# CONFIG_NFS is not set
> +# CONFIG_NFS_COMMON is not set
> +# CONFIG_NFS_V2 is not set
> +# CONFIG_NFS_V3 is not set
> +# CONFIG_ROOT_NFS is not set
> +# CONFIG_LOCKD is not set
> diff --git a/meta-isar/recipes-kernel/linux/files/no-sound.cfg
> b/meta-isar/recipes-kernel/linux/files/no-sound.cfg new file mode
> 100644 index 0000000..c4f3666
> --- /dev/null
> +++ b/meta-isar/recipes-kernel/linux/files/no-sound.cfg
> @@ -0,0 +1 @@
> +# CONFIG_SOUND is not set
> diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.80.bb
> b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.80.bb index
> 83038f0..13018a4 100644 ---
> a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.80.bb +++
> b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.80.bb @@ -19,6
> +19,12 @@ SRC_URI[sha256sum] =
> "80a9ba764e088aa7fddfef5a97c0236905e291468a37832243b6f3828d
> SRC_URI_append_de0-nano-soc = " \
> file://0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch"
> +SRC_URI_append_creator-ci40-marduk = " \
> + file://0001-MIPS-pistachio-set-KBUILD_IMAGE-to-uImage.gz.patch \
> + file://no-display.cfg \
> + file://no-fs-nfs.cfg \
> + file://no-sound.cfg"
> +
> S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
>
> KERNEL_DEFCONFIG_qemuamd64 = "x86_64_defconfig"
next prev parent reply other threads:[~2019-10-24 18:13 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 9:02 [PATCH 00/10] add ci40 machine support + new Isar features Cedric Hombourger
2019-10-24 9:02 ` [PATCH 01/10] ci_build.sh: delay "set -x" for a clean --help output Cedric Hombourger
2019-10-24 9:02 ` [PATCH 02/10] linux-custom: honor KERNEL_FILE setting Cedric Hombourger
2019-10-24 17:57 ` Henning Schild
2019-10-24 9:02 ` [PATCH 03/10] bitbake.conf: set name of the qemu-static binary to use for mipsel Cedric Hombourger
2019-10-24 9:02 ` [PATCH 04/10] recipes-kernel/linux: make KERNEL_DEFCONFIG support in-tree defconfigs Cedric Hombourger
2019-10-24 18:02 ` Henning Schild
2019-11-06 16:03 ` Jan Kiszka
2019-11-06 16:17 ` Cedric Hombourger
2019-10-24 9:02 ` [PATCH 05/10] linux-mainline: fix stripping of .0 from the kernel version Cedric Hombourger
2019-11-06 16:04 ` Jan Kiszka
2019-10-24 9:02 ` [PATCH 06/10] linux-mainline: update from 4.19.0 to 4.19.80 Cedric Hombourger
2019-10-24 9:02 ` [PATCH 07/10] image: add CUSTOM_IMAGE_EXTENSIONS for user layers/machines to use Cedric Hombourger
2019-10-24 18:09 ` Henning Schild
2019-11-06 16:08 ` Jan Kiszka
2019-11-06 16:11 ` Cedric Hombourger
2019-11-06 16:16 ` Jan Kiszka
2019-11-06 16:19 ` Cedric Hombourger
2019-11-06 16:32 ` Jan Kiszka
2019-10-24 9:02 ` [PATCH 08/10] linux-custom: add support for kernel config fragments Cedric Hombourger
2019-10-24 18:21 ` Henning Schild
2019-10-24 18:25 ` Cedric Hombourger
2019-10-24 18:29 ` Henning Schild
2019-10-25 9:45 ` Cedric Hombourger
2019-10-24 9:02 ` [PATCH 09/10] linux-mainline: disable support for HFS to demonstrate use of " Cedric Hombourger
2019-10-24 9:02 ` [PATCH 10/10] meta-isar: add creator-ci40-marduk machine (mipsel + mainline kernel) Cedric Hombourger
2019-10-24 18:13 ` Henning Schild [this message]
2019-10-24 18:26 ` Henning Schild
2019-11-06 16:11 ` Jan Kiszka
2019-10-24 18:15 ` [PATCH 00/10] add ci40 machine support + new Isar features Henning Schild
2019-10-24 18:17 ` Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 0/7] custom kernel recipes enhancements (was Ci40 support) Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 1/7] linux-custom: honor KERNEL_FILE setting Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 2/7] bitbake.conf: set name of the qemu-static binary to use for mipsel Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 3/7] recipes-kernel/linux: make KERNEL_DEFCONFIG support in-tree defconfigs Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 4/7] linux-mainline: fix stripping of .0 from the kernel version Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 5/7] linux-mainline: update from 4.19.0 to 4.19.80 Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 6/7] linux-custom: add support for kernel config fragments Cedric Hombourger
2019-10-25 17:39 ` [PATCH v2 7/7] linux-mainline: disable support for HFS to demonstrate use of " Cedric Hombourger
2019-11-05 20:25 ` chombourger
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=20191024201339.27779100@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=Cedric_Hombourger@mentor.com \
--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