From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v2 1/4] meta-isar: Switch phyboard-mira to mainline kernel
Date: Tue, 25 Jun 2024 18:02:07 +0300 [thread overview]
Message-ID: <20240625150210.417117-2-amikan@ilbers.de> (raw)
In-Reply-To: <20240625150210.417117-1-amikan@ilbers.de>
As the board is already supported by currently available 6.6.11 kernel.
Config fragment verification was moved to the separate function
check_fragments_applied() so it can be omitted.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta-isar/conf/machine/phyboard-mira.conf | 2 +-
...bsinstall-fix-installing-DT-overlays.patch | 30 -------------------
.../linux/linux-mainline_6.6.11.bb | 8 +++--
.../linux/linux-phy_5.10.76-phy4.bb | 16 ----------
.../recipes-kernel/linux/linux-phy_6.6.11.bb | 14 +++++++++
5 files changed, 21 insertions(+), 49 deletions(-)
delete mode 100644 meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch
delete mode 100644 meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb
create mode 100644 meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb
diff --git a/meta-isar/conf/machine/phyboard-mira.conf b/meta-isar/conf/machine/phyboard-mira.conf
index 0bc60cb0..feec4e54 100644
--- a/meta-isar/conf/machine/phyboard-mira.conf
+++ b/meta-isar/conf/machine/phyboard-mira.conf
@@ -16,7 +16,7 @@ MKUBIFS_ARGS := "-m 0x800 -e 0x1f000 -c 8012"
UBINIZE_ARGS = "-vv -m 0x800 -p 0x20000"
IMAGE_FSTYPES ?= "ubi ubifs"
-DTB_FILES = "imx6q-phytec-mira-ff-rdk-nand.dtb"
+DTB_FILES = "imx6q-phytec-mira-rdk-nand.dtb"
IMAGE_INSTALL += "barebox"
diff --git a/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch b/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch
deleted file mode 100644
index 0865870d..00000000
--- a/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 74c2d5edf5d9d601b1caac0cae8be785e45e9af0 Mon Sep 17 00:00:00 2001
-From: Anton Mikanovich <amikan@ilbers.de>
-Date: Tue, 8 Feb 2022 19:47:35 +0300
-Subject: [PATCH] dtbsinstall: fix installing DT overlays
-
-Add dtbo target needed for __dtbs_install to fix 'make dtbs_install'
-call. 'No rule to make target' error will occur otherwise.
-
-Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
----
- scripts/Makefile.dtbinst | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst
-index 50d580d77ae9..829609ce29cf 100644
---- a/scripts/Makefile.dtbinst
-+++ b/scripts/Makefile.dtbinst
-@@ -29,6 +29,9 @@ quiet_cmd_dtb_install = INSTALL $@
- $(dst)/%.dtb: $(obj)/%.dtb
- $(call cmd,dtb_install)
-
-+$(dst)/%.dtbo: $(obj)/%.dtbo
-+ $(call cmd,dtb_install)
-+
- PHONY += $(subdirs)
- $(subdirs):
- $(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@)
---
-2.25.1
-
diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb
index d7483eb0..2287e763 100644
--- a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb
+++ b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb
@@ -24,8 +24,7 @@ KERNEL_DEFCONFIG:qemuamd64 = "x86_64_defconfig"
LINUX_VERSION_EXTENSION = "-isar"
-# For testing purposes only
-dpkg_configure_kernel:append() {
+check_fragments_applied() {
grep -q "# CONFIG_MTD is not set" ${S}/debian/rules ||
cat << EOF | sed -i '/^override_dh_auto_build/ r /dev/stdin' ${S}/debian/rules
if ! grep "# CONFIG_MTD is not set" \$(O)/.config && \\
@@ -37,3 +36,8 @@ dpkg_configure_kernel:append() {
(echo "Self-check failed: CONFIG_ROOT_NFS not enabled" && exit 1)
EOF
}
+
+# For testing purposes only
+dpkg_configure_kernel:append() {
+ check_fragments_applied
+}
diff --git a/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb b/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb
deleted file mode 100644
index accb3c9a..00000000
--- a/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb
+++ /dev/null
@@ -1,16 +0,0 @@
-require recipes-kernel/linux/linux-custom.inc
-
-SRC_URI += "https://git.phytec.de/linux-mainline/snapshot/linux-mainline-${PV}.tar.bz2 \
- file://0001-dtbsinstall-fix-installing-DT-overlays.patch"
-
-SRC_URI[sha256sum] = "ce0cff708da9f3dca1f6f8d6c433589fd5a5ea8db9e33114f44497ecf873f875"
-
-S = "${WORKDIR}/linux-mainline-${PV}"
-
-KBUILD_DEPENDS:append = "lzop"
-
-KERNEL_DEFCONFIG = "imx_v6_v7_defconfig"
-
-LINUX_VERSION_EXTENSION = "-isar"
-
-COMPATIBLE_MACHINE = "phyboard-mira"
diff --git a/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb b/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb
new file mode 100644
index 00000000..25864d1c
--- /dev/null
+++ b/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb
@@ -0,0 +1,14 @@
+require recipes-kernel/linux/linux-mainline_6.6.11.bb
+
+SRC_URI:remove = "file://ftpm-module.cfg"
+SRC_URI:remove = "file://subdir/no-ubifs-fs.cfg"
+
+check_fragments_applied() {
+ echo "Kernel config fragments checking disabled"
+}
+
+KERNEL_DEFCONFIG = "imx_v6_v7_defconfig"
+
+LINUX_VERSION_EXTENSION = "-isar"
+
+COMPATIBLE_MACHINE = "phyboard-mira"
--
2.34.1
next prev parent reply other threads:[~2024-06-25 15:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-25 15:02 [PATCH v2 0/4] Updates for phyBOARD-Mira target Anton Mikanovich
2024-06-25 15:02 ` Anton Mikanovich [this message]
2024-06-25 15:02 ` [PATCH v2 2/4] barebox: Update to 2024.05.0 Anton Mikanovich
2024-06-25 15:02 ` [PATCH v2 3/4] meta-isar: Add phyboard-mira-bookworm target Anton Mikanovich
2024-06-25 15:02 ` [PATCH v2 4/4] CI: Cover " Anton Mikanovich
2024-07-01 3:14 ` [PATCH v2 0/4] Updates for phyBOARD-Mira target Uladzimir Bely
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=20240625150210.417117-2-amikan@ilbers.de \
--to=amikan@ilbers.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