From: Guo Ren <ren_guo@xxxxxxxxx> Add C-SKY defconfig for QEMU virt machine. Tested with https://gitlab.com/c-sky/buildroot/pipelines Signed-off-by: Guo Ren <ren_guo@xxxxxxxxx> Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx> --- .gitlab-ci.yml | 4 ++++ board/qemu/csky/linux-ck610.config.fragment | 5 +++++ board/qemu/csky/linux-ck807.config.fragment | 5 +++++ board/qemu/csky/linux-ck810.config.fragment | 5 +++++ board/qemu/csky/linux-ck860.config.fragment | 9 +++++++++ configs/qemu_csky610_virt_defconfig | 20 ++++++++++++++++++++ configs/qemu_csky807_virt_defconfig | 21 +++++++++++++++++++++ configs/qemu_csky810_virt_defconfig | 21 +++++++++++++++++++++ configs/qemu_csky860_virt_defconfig | 21 +++++++++++++++++++++ 9 files changed, 111 insertions(+) create mode 100644 board/qemu/csky/linux-ck610.config.fragment create mode 100644 board/qemu/csky/linux-ck807.config.fragment create mode 100644 board/qemu/csky/linux-ck810.config.fragment create mode 100644 board/qemu/csky/linux-ck860.config.fragment create mode 100644 configs/qemu_csky610_virt_defconfig create mode 100644 configs/qemu_csky807_virt_defconfig create mode 100644 configs/qemu_csky810_virt_defconfig create mode 100644 configs/qemu_csky860_virt_defconfig diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 374dbfe..4fa3473 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -248,6 +248,10 @@ qemu_aarch64_virt_defconfig: { extends: .defconfig } qemu_arm_versatile_defconfig: { extends: .defconfig } qemu_arm_versatile_nommu_defconfig: { extends: .defconfig } qemu_arm_vexpress_defconfig: { extends: .defconfig } +qemu_csky610_virt_defconfig: { extends: .defconfig } +qemu_csky807_virt_defconfig: { extends: .defconfig } +qemu_csky810_virt_defconfig: { extends: .defconfig } +qemu_csky860_virt_defconfig: { extends: .defconfig } qemu_m68k_mcf5208_defconfig: { extends: .defconfig } qemu_m68k_q800_defconfig: { extends: .defconfig } qemu_microblazebe_mmu_defconfig: { extends: .defconfig } diff --git a/board/qemu/csky/linux-ck610.config.fragment b/board/qemu/csky/linux-ck610.config.fragment new file mode 100644 index 0000000..d80d0ee --- /dev/null +++ b/board/qemu/csky/linux-ck610.config.fragment @@ -0,0 +1,5 @@ +CONFIG_COMPILE_TEST=y +CONFIG_CPU_CK610=y +CONFIG_CPU_PM_WAIT=y +CONFIG_CSKY_APB_INTC=y +CONFIG_GX6605S_TIMER=y diff --git a/board/qemu/csky/linux-ck807.config.fragment b/board/qemu/csky/linux-ck807.config.fragment new file mode 100644 index 0000000..b6974f0 --- /dev/null +++ b/board/qemu/csky/linux-ck807.config.fragment @@ -0,0 +1,5 @@ +CONFIG_COMPILE_TEST=y +CONFIG_CPU_CK807=y +# CONFIG_CPU_HAS_FPU is not set +CONFIG_CPU_PM_WAIT=y +CONFIG_CSKY_APB_INTC=y diff --git a/board/qemu/csky/linux-ck810.config.fragment b/board/qemu/csky/linux-ck810.config.fragment new file mode 100644 index 0000000..50fa1f4 --- /dev/null +++ b/board/qemu/csky/linux-ck810.config.fragment @@ -0,0 +1,5 @@ +CONFIG_COMPILE_TEST=y +CONFIG_CPU_CK810=y +# CONFIG_CPU_HAS_FPU is not set +CONFIG_CPU_PM_WAIT=y +CONFIG_CSKY_APB_INTC=y diff --git a/board/qemu/csky/linux-ck860.config.fragment b/board/qemu/csky/linux-ck860.config.fragment new file mode 100644 index 0000000..e8f6af1 --- /dev/null +++ b/board/qemu/csky/linux-ck860.config.fragment @@ -0,0 +1,9 @@ +CONFIG_COMPILE_TEST=y +CONFIG_CPU_CK860=y +# CONFIG_CPU_HAS_FPU is not set +CONFIG_CPU_PM_WAIT=y +CONFIG_SMP=y +CONFIG_HOTPLUG_CPU=y +CONFIG_CSKY_APB_INTC=y +CONFIG_CSKY_MPINTC=y +CONFIG_CSKY_MP_TIMER=y diff --git a/configs/qemu_csky610_virt_defconfig b/configs/qemu_csky610_virt_defconfig new file mode 100644 index 0000000..9a82d57 --- /dev/null +++ b/configs/qemu_csky610_virt_defconfig @@ -0,0 +1,20 @@ +# Architecture +BR2_csky=y +BR2_ck610=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +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 + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck610.config.fragment" diff --git a/configs/qemu_csky807_virt_defconfig b/configs/qemu_csky807_virt_defconfig new file mode 100644 index 0000000..8fe32e8 --- /dev/null +++ b/configs/qemu_csky807_virt_defconfig @@ -0,0 +1,21 @@ +# Architecture +BR2_csky=y +BR2_ck807=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +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" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck807.config.fragment" diff --git a/configs/qemu_csky810_virt_defconfig b/configs/qemu_csky810_virt_defconfig new file mode 100644 index 0000000..8fe3a0c --- /dev/null +++ b/configs/qemu_csky810_virt_defconfig @@ -0,0 +1,21 @@ +# Architecture +BR2_csky=y +BR2_ck810=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +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" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck810.config.fragment" diff --git a/configs/qemu_csky860_virt_defconfig b/configs/qemu_csky860_virt_defconfig new file mode 100644 index 0000000..02408ad --- /dev/null +++ b/configs/qemu_csky860_virt_defconfig @@ -0,0 +1,21 @@ +# Architecture +BR2_csky=y +BR2_ck860=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +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" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck860.config.fragment" -- 2.7.4