Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0
config CONFIG_PARISC
	def_bool y
	select CONFIG_ARCH_32BIT_OFF_T if !CONFIG_64BIT
	select CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT
	select CONFIG_HAVE_IDE
	select CONFIG_HAVE_OPROFILE
	select CONFIG_HAVE_FUNCTION_TRACER
	select CONFIG_HAVE_FUNCTION_GRAPH_TRACER
	select CONFIG_HAVE_SYSCALL_TRACEPOINTS
	select CONFIG_ARCH_WANT_FRAME_POINTERS
	select CONFIG_ARCH_HAS_ELF_RANDOMIZE
	select CONFIG_ARCH_HAS_STRICT_KERNEL_RWX
	select CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL
	select CONFIG_ARCH_NO_SG_CHAIN
	select CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE
	select CONFIG_RTC_CLASS
	select CONFIG_RTC_DRV_GENERIC
	select CONFIG_INIT_ALL_POSSIBLE
	select CONFIG_BUG
	select CONFIG_BUILDTIME_EXTABLE_SORT
	select CONFIG_HAVE_PCI
	select CONFIG_HAVE_PERF_EVENTS
	select CONFIG_HAVE_KERNEL_BZIP2
	select CONFIG_HAVE_KERNEL_GZIP
	select CONFIG_HAVE_KERNEL_LZ4
	select CONFIG_HAVE_KERNEL_LZMA
	select CONFIG_HAVE_KERNEL_LZO
	select CONFIG_HAVE_KERNEL_XZ
	select CONFIG_GENERIC_ATOMIC64 if !CONFIG_64BIT
	select CONFIG_GENERIC_IRQ_PROBE
	select CONFIG_GENERIC_PCI_IOMAP
	select CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG
	select CONFIG_GENERIC_SMP_IDLE_THREAD
	select CONFIG_GENERIC_CPU_DEVICES
	select CONFIG_GENERIC_STRNCPY_FROM_USER
	select CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW
	select CONFIG_SYSCTL_EXCEPTION_TRACE
	select CONFIG_HAVE_MOD_ARCH_SPECIFIC
	select CONFIG_VIRT_TO_BUS
	select CONFIG_MODULES_USE_ELF_RELA
	select CONFIG_CLONE_BACKWARDS
	select CONFIG_TTY # Needed for pdc_cons.c
	select CONFIG_HAVE_DEBUG_STACKOVERFLOW
	select CONFIG_HAVE_ARCH_AUDITSYSCALL
	select CONFIG_HAVE_ARCH_HASH
	select CONFIG_HAVE_ARCH_JUMP_LABEL
	select CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE
	select CONFIG_HAVE_ARCH_SECCOMP_FILTER
	select CONFIG_HAVE_ARCH_TRACEHOOK
	select CONFIG_HAVE_REGS_AND_STACK_ACCESS_API
	select CONFIG_GENERIC_SCHED_CLOCK
	select CONFIG_HAVE_UNSTABLE_SCHED_CLOCK if CONFIG_SMP
	select CONFIG_GENERIC_CLOCKEVENTS
	select CONFIG_CPU_NO_EFFICIENT_FFS
	select CONFIG_NEED_DMA_MAP_STATE
	select CONFIG_NEED_SG_DMA_LENGTH
	select CONFIG_HAVE_ARCH_KGDB
	select CONFIG_HAVE_KPROBES
	select CONFIG_HAVE_KRETPROBES
	select CONFIG_HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
	select CONFIG_HAVE_FTRACE_MCOUNT_RECORD if CONFIG_HAVE_DYNAMIC_FTRACE
	select CONFIG_HAVE_KPROBES_ON_FTRACE
	select CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS

	help
	  The PA-RISC microprocessor is designed by Hewlett-Packard and used
	  in many of their workstations & servers (HP9000 700 and 800 series,
	  and later HP3000 series).  The PA-RISC Linux project home page is
	  at <http://www.parisc-linux.org/>.

config CONFIG_CPU_BIG_ENDIAN
	def_bool y

config CONFIG_MMU
	def_bool y

config CONFIG_STACK_GROWSUP
	def_bool y

config CONFIG_GENERIC_LOCKBREAK
	bool
	default y
	depends on CONFIG_SMP && CONFIG_PREEMPT

config CONFIG_ARCH_HAS_ILOG2_U32
	bool
	default n

config CONFIG_ARCH_HAS_ILOG2_U64
	bool
	default n

config CONFIG_GENERIC_BUG
	bool
	default y
	depends on CONFIG_BUG

config CONFIG_GENERIC_HWEIGHT
	bool
	default y

config CONFIG_GENERIC_CALIBRATE_DELAY
	bool
	default y

config CONFIG_TIME_LOW_RES
	bool
	depends on CONFIG_SMP
	default y

# unless you want to implement CONFIG_ACPI on PA-RISC ... ;-)
config CONFIG_PM
	bool

config CONFIG_STACKTRACE_SUPPORT
	def_bool y

config CONFIG_ISA_DMA_API
	bool

config CONFIG_ARCH_MAY_HAVE_PC_FDC
	bool
	depends on CONFIG_BROKEN
	default y

config CONFIG_PGTABLE_LEVELS
	int
	default 3 if CONFIG_64BIT && CONFIG_PARISC_PAGE_SIZE_4KB
	default 2

config CONFIG_SYS_SUPPORTS_HUGETLBFS
	def_bool y if CONFIG_PA20


menu "Processor type and features"

choice
	prompt "Processor type"
	default CONFIG_PA7000

config CONFIG_PA7000
	bool "PA7000/PA7100"
	---help---
	  This is the processor type of your CPU.  This information is
	  used for optimizing purposes.  In order to compile a kernel
	  that can run on all 32-bit PA CPUs (albeit not optimally fast),
	  you can specify "PA7000" here.

	  Specifying "PA8000" here will allow you to select a 64-bit kernel
	  which is required on some machines.

config CONFIG_PA7100LC
	bool "PA7100LC"
	help
	  Select this option for the PCX-L processor, as used in the
	  712, 715/64, 715/80, 715/100, 715/100XC, 725/100, 743, 748,
	  D200, D210, D300, D310 and CONFIG_E-class

config CONFIG_PA7200
	bool "PA7200"
	help
	  Select this option for the PCX-T' processor, as used in the
	  C100, C110, J100, J110, J210XC, D250, D260, D350, D360,
	  K100, K200, K210, K220, K400, K410 and K420

config CONFIG_PA7300LC
	bool "PA7300LC"
	help
	  Select this option for the PCX-L2 processor, as used in the
	  744, A180, B132L, B160L, B180L, C132L, C160L, C180L,
	  D220, D230, D320 and D330.

config CONFIG_PA8X00
	bool "PA8000 and up"
	help
	  Select this option for PCX-U to PCX-W2 processors.

endchoice

# Define implied options from the CPU selection here

config CONFIG_PA20
	def_bool y
	depends on CONFIG_PA8X00

config CONFIG_PA11
	def_bool y
	depends on CONFIG_PA7000 || CONFIG_PA7100LC || CONFIG_PA7200 || CONFIG_PA7300LC
	select CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU
	select CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE
	select CONFIG_DMA_NONCOHERENT_CACHE_SYNC

config CONFIG_PREFETCH
	def_bool y
	depends on CONFIG_PA8X00 || CONFIG_PA7200

config CONFIG_MLONGCALLS
	bool "Enable the -mlong-calls compiler option for big kernels"
	default y if !CONFIG_MODULES || CONFIG_UBSAN || CONFIG_FTRACE
	default n
	depends on CONFIG_PA8X00
	help
	  If you configure the kernel to include many drivers built-in instead
	  as modules, the kernel executable may become too big, so that the
	  linker will not be able to resolve some long branches and fails to link
	  your vmlinux kernel. In that case enabling this option will help you
	  to overcome this limit by using the -mlong-calls compiler option.

	  Usually you want to say N here, unless you e.g. want to build
	  a kernel which includes all necessary drivers built-in and which can
	  be used for TFTP booting without the need to have an initrd ramdisk.

	  Enabling this option will probably slow down your kernel.

config CONFIG_64BIT
	bool "64-bit kernel"
	depends on CONFIG_PA8X00
	help
	  Enable this if you want to support 64bit kernel on PA-RISC platform.

	  At the moment, only people willing to use more than 2GB of RAM,
	  or having a 64bit-only capable PA-RISC machine should say Y here.

	  Since there is no 64bit userland on PA-RISC, there is no point to
	  enable this option otherwise. The 64bit kernel is significantly bigger
	  and slower than the 32bit one.

choice
	prompt "Kernel page size"
	default CONFIG_PARISC_PAGE_SIZE_4KB

config CONFIG_PARISC_PAGE_SIZE_4KB
	bool "4KB"
	help
	  This lets you select the page size of the kernel.  For best
	  performance, a page size of 16KB is recommended.  For best
	  compatibility with 32bit applications, a page size of 4KB should be
	  selected (the vast majority of 32bit binaries work perfectly fine
	  with a larger page size).

	  4KB                For best 32bit compatibility
	  16KB               For best performance
	  64KB               For best performance, might give more overhead.

	  If you don't know what to do, choose 4KB.

config CONFIG_PARISC_PAGE_SIZE_16KB
	bool "16KB"
	depends on CONFIG_PA8X00 && CONFIG_BROKEN

config CONFIG_PARISC_PAGE_SIZE_64KB
	bool "64KB"
	depends on CONFIG_PA8X00 && CONFIG_BROKEN

endchoice

config CONFIG_PARISC_SELF_EXTRACT
	bool "Build kernel as self-extracting executable"
	default y
	help
	  Say Y if you want to build the parisc kernel as a kind of
	  self-extracting executable.

	  If you say N here, the kernel will be compressed with gzip
	  which can be loaded by the palo bootloader directly too.

	  If you don't know what to do here, say Y.

config CONFIG_SMP
	bool "Symmetric multi-processing support"
	---help---
	  This enables support for systems with more than one CPU. If you have
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.

	  If you say N here, the kernel will run on uni- and multiprocessor
	  machines, but will use only one CPU of a multiprocessor machine.
	  On a uniprocessor machine, the kernel will run faster if you say N.

	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the CONFIG_SMP-HOWTO
	  available at <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

config CONFIG_PARISC_CPU_TOPOLOGY
	bool "Support cpu topology definition"
	depends on CONFIG_SMP
	default y
	help
	  Support CONFIG_PARISC cpu topology definition.

config CONFIG_SCHED_MC
	bool "Multi-core scheduler support"
	depends on CONFIG_PARISC_CPU_TOPOLOGY && CONFIG_PA8X00
	help
	  Multi-core scheduler support improves the CPU scheduler's decision
	  making when dealing with multi-core CPU chips at a cost of slightly
	  increased overhead in some places. If unsure say N here.

config CONFIG_IRQSTACKS
	bool "Use separate kernel stacks when processing interrupts"
	default y
	help
	  If you say Y here the kernel will use separate kernel stacks
	  for handling hard and soft interrupts.  This can help avoid
	  overflowing the process kernel stacks.

config CONFIG_HOTPLUG_CPU
	bool
	default y if CONFIG_SMP

config CONFIG_ARCH_SELECT_MEMORY_MODEL
	def_bool y
	depends on CONFIG_64BIT

config CONFIG_ARCH_SPARSEMEM_ENABLE
	def_bool y
	depends on CONFIG_64BIT

config CONFIG_ARCH_FLATMEM_ENABLE
	def_bool y

config CONFIG_ARCH_SPARSEMEM_DEFAULT
	def_bool y
	depends on CONFIG_ARCH_SPARSEMEM_ENABLE

source "kernel/Kconfig.hz"

config CONFIG_COMPAT
	def_bool y
	depends on CONFIG_64BIT
	select CONFIG_COMPAT_BINFMT_ELF if CONFIG_BINFMT_ELF

config CONFIG_SYSVIPC_COMPAT
	def_bool y
	depends on CONFIG_COMPAT && CONFIG_SYSVIPC

config CONFIG_AUDIT_ARCH
	def_bool y

config CONFIG_NR_CPUS
	int "Maximum number of CPUs (2-32)"
	range 2 32
	depends on CONFIG_SMP
	default "4"

config CONFIG_KEXEC
	bool "Kexec system call"
	select CONFIG_KEXEC_CORE
	help
	  kexec is a system call that implements the ability to shutdown your
	  current kernel, and to start another kernel.  It is like a reboot
	  but it is independent of the system firmware.   And like a reboot
	  you can start any kernel with it, not just Linux.

	  It is an ongoing process to be certain the hardware in a machine
	  shutdown, so do not be surprised if this code does not
	  initially work for you.

config CONFIG_KEXEC_FILE
	bool "kexec file based system call"
	select CONFIG_KEXEC_CORE
	select CONFIG_KEXEC_ELF
	help
	  This enables the kexec_file_load() System call. This is
	  file based and takes file descriptors as system call argument
	  for kernel and initramfs as opposed to list of segments as
	  accepted by previous system call.

endmenu


source "drivers/parisc/Kconfig"

config CONFIG_SECCOMP
	def_bool y
	prompt "Enable seccomp to safely compute untrusted bytecode"
	---help---
	  This kernel feature is useful for number crunching applications
	  that may need to compute untrusted bytecode during their
	  execution. By using pipes or other transports made available to
	  the process as file descriptors supporting the read/write
	  syscalls, it's possible to isolate those applications in
	  their own address space using seccomp. Once seccomp is
	  enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
	  and the task is only allowed to execute a few safe syscalls
	  defined by each seccomp mode.

	  If unsure, say Y. Only embedded should say N here.