Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv:configs: Add xuantie related defconfig and configs #187

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions arch/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,11 @@ rv32_nommu_virt_defconfig:
PHONY += rv64ilp32_defconfig
rv64ilp32_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig 64ilp32.config

PHONY += xuantie_defconfig
xuantie_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig 12HZ.config thp.config fs.config

PHONY += xuantie_debug_defconfig
xuantie_debug_defconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile defconfig thp.config fs.config debug.config ftrace.config ebpf.config kdump.config sched.config
1 change: 1 addition & 0 deletions arch/riscv/configs/12HZ.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_HZ_12=y
2 changes: 2 additions & 0 deletions arch/riscv/configs/debug.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
39 changes: 0 additions & 39 deletions arch/riscv/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -273,42 +273,3 @@ CONFIG_STRICT_KERNEL_RWX=n
CONFIG_BPF_JIT=y
CONFIG_RUNTIME_TESTING_MENU=y
CONFIG_TEST_BPF=m
# TH1520
CONFIG_PINCTRL_TH1520=y
# TH1520 PWM
CONFIG_PWM=y
CONFIG_PWM_XUANTIE=m
# TH1520 dwmac
CONFIG_DWMAC_XUANTIE=m
# TH1520 GPIO
CONFIG_GPIO_DWAPB=y
CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_PCA953X_IRQ=y
# TH1520 cpu thermal
CONFIG_CPU_THERMAL=y
CONFIG_THERMAL_EMULATION=y
CONFIG_SENSORS_MR75203=m
CONFIG_SENSORS_PWM_FAN=m
# TH1520 USB
CONFIG_USB_DWC3=m
CONFIG_USB_DWC3_HOST=y
CONFIG_USB_ONBOARD_HUB=m
CONFIG_USB_GADGET=m
CONFIG_TYPEC=m
CONFIG_USB_ROLE_SWITCH=m
CONFIG_IIO=y
CONFIG_XUANTIE_TH1520_ADC=m
# TH1520 CLOCK
CONFIG_CLK_TH1520_FM=y
CONFIG_MTD=y
CONFIG_MTD_TESTS=m
CONFIG_MTD_BLOCK=y
CONFIG_MTD_SLRAM=m
CONFIG_MTD_PHRAM=m
CONFIG_MTD_SPI_NAND=y
CONFIG_MTD_SPI_NOR=y
CONFIG_MTD_UBI=y
# TH1520 MAILBOX
CONFIG_MAILBOX=y
# TH1520 PMIC_WDT
CONFIG_TH1520_PMIC_WATCHDOG=y
18 changes: 18 additions & 0 deletions arch/riscv/configs/ebpf.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CONFIG_UPROBES=y
CONFIG_UPROBE_EVENTS=y
CONFIG_KPROBES=y
CONFIG_KPROBE_EVENTS=y
CONFIG_KPROBES_ON_FTRACE=y
CONFIG_KRETPROBES=y
CONFIG_BPF_KPROBE_OVERRIDE=y
CONFIG_FUNCTION_ERROR_INJECTION=y
CONFIG_CGROUP_BPF=y
CONFIG_NET_CLS_BPF=y
CONFIG_BPF_JIT=y
CONFIG_BPF_SYSCALL=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y
CONFIG_MODULE_ALLOW_BTF_MISMATCH=y
CONFIG_IKHEADERS=y
CONFIG_KALLSYMS_ALL=y
8 changes: 8 additions & 0 deletions arch/riscv/configs/fs.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_BLK_DEV_NBD=y
CONFIG_FUSE_FS=y
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_NET_9P_DEBUG=y
CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
15 changes: 15 additions & 0 deletions arch/riscv/configs/ftrace.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CONFIG_FTRACE=y
CONFIG_TASKS_RUDE_RCU=y
CONFIG_TRACER_MAX_TRACE=y
CONFIG_GENERIC_TRACER=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_STACK_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
CONFIG_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT=y
3 changes: 3 additions & 0 deletions arch/riscv/configs/kdump.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_KEXEC=y
CONFIG_CRASH_DUMP=y
CONFIG_MAGIC_SYSRQ=y
5 changes: 5 additions & 0 deletions arch/riscv/configs/sched.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_SCHED_MC=y
CONFIG_SCHEDSTATS=y
CONFIG_SCHED_DEBUG=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
1 change: 1 addition & 0 deletions arch/riscv/configs/thp.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TRANSPARENT_HUGEPAGE=y
Loading