* [Buildroot] [PATCH 3/3] configs/qemu_loongarch64: new defconfig
@ 2024-05-14 6:27 Waldemar Brodkorb
2024-05-14 7:59 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2024-05-14 6:27 UTC (permalink / raw)
To: buildroot
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
| 2 ++
.../qemu/loongarch64/patches/linux/linux.hash | 2 ++
configs/qemu_loongarch64_defconfig | 27 +++++++++++++++++++
3 files changed, 31 insertions(+)
create mode 100644 board/qemu/loongarch64/patches/linux-headers/linux-headers.hash
create mode 100644 board/qemu/loongarch64/patches/linux/linux.hash
create mode 100644 configs/qemu_loongarch64_defconfig
--git a/board/qemu/loongarch64/patches/linux-headers/linux-headers.hash b/board/qemu/loongarch64/patches/linux-headers/linux-headers.hash
new file mode 100644
index 0000000000..f3d9c1186a
--- /dev/null
+++ b/board/qemu/loongarch64/patches/linux-headers/linux-headers.hash
@@ -0,0 +1,2 @@
+# From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
+sha256 b66a5b863b0f8669448b74ca83bd641a856f164b29956e539bbcb5fdeeab9cc6 linux-6.6.30.tar.xz
diff --git a/board/qemu/loongarch64/patches/linux/linux.hash b/board/qemu/loongarch64/patches/linux/linux.hash
new file mode 100644
index 0000000000..f3d9c1186a
--- /dev/null
+++ b/board/qemu/loongarch64/patches/linux/linux.hash
@@ -0,0 +1,2 @@
+# From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
+sha256 b66a5b863b0f8669448b74ca83bd641a856f164b29956e539bbcb5fdeeab9cc6 linux-6.6.30.tar.xz
diff --git a/configs/qemu_loongarch64_defconfig b/configs/qemu_loongarch64_defconfig
new file mode 100644
index 0000000000..025e9907e2
--- /dev/null
+++ b/configs/qemu_loongarch64_defconfig
@@ -0,0 +1,27 @@
+# Architecture
+BR2_loongarch64=y
+
+# Filesystem
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# Image
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
+
+# Linux headers same as kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.30"
+BR2_LINUX_KERNEL_DEFCONFIG="loongson3"
+BR2_LINUX_KERNEL_VMLINUX_EFI=y
+
+# Disable network scripts
+# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
+
+# host-qemu for gitlab testing
+BR2_PACKAGE_HOST_QEMU=y
+BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 3/3] configs/qemu_loongarch64: new defconfig
2024-05-14 6:27 [Buildroot] [PATCH 3/3] configs/qemu_loongarch64: new defconfig Waldemar Brodkorb
@ 2024-05-14 7:59 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-14 7:59 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
Hello,
On Tue, 14 May 2024 08:27:54 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> .../patches/linux-headers/linux-headers.hash | 2 ++
> .../qemu/loongarch64/patches/linux/linux.hash | 2 ++
> configs/qemu_loongarch64_defconfig | 27 +++++++++++++++++++
> 3 files changed, 31 insertions(+)
This needs a readme.txt in board/qemu/, with the proper formatting so
that our CI testing can pick up the qemu command line (see other qemu
readme.txt).
This also needs a DEVELOPERS entry added.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-14 7:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 6:27 [Buildroot] [PATCH 3/3] configs/qemu_loongarch64: new defconfig Waldemar Brodkorb
2024-05-14 7:59 ` Thomas Petazzoni via buildroot
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.