From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: guoren@kernel.org
Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>,
arnout@mind.be, Guo Ren <ren_guo@c-sky.com>,
linux-csky@vger.kernel.org, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH V4 10/11] configs/qemu_cskyXXX_virt: new defconfig
Date: Fri, 31 May 2019 23:09:20 +0200 [thread overview]
Message-ID: <20190531230920.302c0222@windsurf> (raw)
In-Reply-To: <1559284748-32011-11-git-send-email-guoren@kernel.org>
Hello Guo;
On Fri, 31 May 2019 14:39:07 +0800
guoren@kernel.org wrote:
> From: Guo Ren <ren_guo@c-sky.com>
>
> Add C-SKY defconfig for QEMU virt machine.
>
> Tested with https://gitlab.com/c-sky/buildroot/pipelines
>
> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
> ---
> .gitlab-ci.yml | 4 +
> board/qemu/csky/610_defconfig | 526 +++++++++++++++++++++++++++++++++++
> board/qemu/csky/807_defconfig | 531 +++++++++++++++++++++++++++++++++++
> board/qemu/csky/810_defconfig | 531 +++++++++++++++++++++++++++++++++++
> board/qemu/csky/860_defconfig | 533 ++++++++++++++++++++++++++++++++++++
These kernel defconfig files are too long, they contain lots of options
that seem unnecessary. Could you trim them down by removing many
unnecessary options ?
Also, perhaps there could be a file with the set of common options, and
a fragment for each CPU core, to avoid all the duplication ?
In addition, they should have a name that makes it clear they are Linux
kernel configuration file.
> configs/qemu_csky610_virt_defconfig | 29 ++
> configs/qemu_csky807_virt_defconfig | 30 ++
> configs/qemu_csky810_virt_defconfig | 30 ++
> configs/qemu_csky860_virt_defconfig | 30 ++
> 9 files changed, 2244 insertions(+)
Please add the appropriate board/qemu/csky/readme.txt file to explain
how to run these in Qemu, and which Qemu version it was tested with.
Finally, make sure to add the appropriate entries to the DEVELOPERS
file.
> diff --git a/configs/qemu_csky860_virt_defconfig b/configs/qemu_csky860_virt_defconfig
> new file mode 100644
> index 0000000..118ad51
> --- /dev/null
> +++ b/configs/qemu_csky860_virt_defconfig
> @@ -0,0 +1,30 @@
> +# Architecture
> +BR2_csky=y
> +BR2_ck860=y
> +
> +# System
> +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
We typically don't enable mdev in minimal defconfigs.
> +BR2_TARGET_ROOTFS_INITRAMFS=y
> +
> +# Toolchain
> +BR2_OPTIMIZE_2=y
> +BR2_SHARED_STATIC_LIBS=y
> +BR2_TOOLCHAIN_BUILDROOT_CXX=y
> +BR2_PACKAGE_HOST_GDB=y
> +BR2_TARGET_OPTIMIZATION="-mbacktrace"
Please drop these options, and keep the default.
> +
> +# Kernel
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12"
> +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/csky/860_defconfig"
> +
> +# Packages on board
> +BR2_PACKAGE_LINUX_TOOLS_PERF=y
> +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> +BR2_PACKAGE_GDB=y
> +BR2_PACKAGE_BASH=y
> +BR2_PACKAGE_KMOD=y
> +BR2_PACKAGE_UTIL_LINUX=y
> +BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y
Ditto, please drop these "Packages on board" options: our defconfig
should be minimal, i.e build just a bootloader (if needed), a Linux
kernel image and the default Buildroot package set (just Busybox).
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-05-31 21:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 6:38 [PATCH V4 00/11] Update arch/csky for buildroot guoren
2019-05-31 6:38 ` [PATCH V4 01/11] arch/csky: Add arch.mk.csky for -mcpu=xxx guoren
2019-05-31 6:38 ` [PATCH V4 02/11] arch/csky: Change DSP to VDSP for -mcpu guoren
2019-05-31 21:04 ` [Buildroot] " Thomas Petazzoni
2019-05-31 6:39 ` [PATCH V4 03/11] arch/csky: Add ck860 supported guoren
2019-05-31 6:39 ` [PATCH V4 04/11] arch/csky: Add FLOAT_ABI compiler options guoren
2019-05-31 6:39 ` [PATCH V4 05/11] arch/csky: Add ABI variable for toolchain build guoren
2019-05-31 6:39 ` [PATCH V4 06/11] package/binutils: Add C-SKY support guoren
2019-05-31 6:39 ` [PATCH V4 07/11] package/gcc: " guoren
2019-05-31 6:39 ` [PATCH V4 08/11] package/gdb: " guoren
2019-05-31 21:05 ` [Buildroot] " Thomas Petazzoni
2019-05-31 6:39 ` [PATCH V4 09/11] package/glibc: " guoren
2019-05-31 6:39 ` [PATCH V4 10/11] configs/qemu_cskyXXX_virt: new defconfig guoren
2019-05-31 21:09 ` Thomas Petazzoni [this message]
2019-05-31 6:39 ` [PATCH V4 11/11] arch/csky: Enable csky toolchain build guoren
2019-05-31 21:03 ` [Buildroot] [PATCH V4 00/11] Update arch/csky for buildroot Thomas Petazzoni
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=20190531230920.302c0222@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=arnout@mind.be \
--cc=buildroot@buildroot.org \
--cc=guoren@kernel.org \
--cc=linux-csky@vger.kernel.org \
--cc=ren_guo@c-sky.com \
--cc=thomas.de_schampheleire@nokia.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;
as well as URLs for NNTP newsgroup(s).