-menu "Target Images"
-
- menuconfig TARGET_ROOTFS_INITRAMFS
- bool "ramdisk"
- default y if USES_INITRAMFS
- help
- Embed the rootfs into the kernel (initramfs)
-
- choice
- prompt "Compression"
- default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
- default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
- default TARGET_INITRAMFS_COMPRESSION_NONE
- depends on TARGET_ROOTFS_INITRAMFS
- help
- Select ramdisk compression.
-
- config TARGET_INITRAMFS_COMPRESSION_NONE
- bool "none"
-
- config TARGET_INITRAMFS_COMPRESSION_GZIP
- bool "gzip"
-
- config TARGET_INITRAMFS_COMPRESSION_BZIP2
- bool "bzip2"
-
- config TARGET_INITRAMFS_COMPRESSION_LZMA
- bool "lzma"
-
- config TARGET_INITRAMFS_COMPRESSION_LZO
- bool "lzo"
-
- config TARGET_INITRAMFS_COMPRESSION_XZ
- bool "xz"
- endchoice
-
- config EXTERNAL_CPIO
- string
- prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
- default ""
- help
- Kernel uses specified external cpio as INITRAMFS_SOURCE
-
- comment "Root filesystem archives"
-
- config TARGET_ROOTFS_CPIOGZ
- bool "cpio.gz"
- default y if USES_CPIOGZ
- help
- Build a compressed cpio archive of the the root filesystem
-
- config TARGET_ROOTFS_TARGZ
- bool "tar.gz"
- default y if USES_TARGZ
- help
- Build a compressed tar archive of the the root filesystem
-
- comment "Root filesystem images"
-
- config TARGET_ROOTFS_EXT4FS
- bool "ext4"
- default y if USES_EXT4
- help
- Ext4 file system with some free space for uml images
-
- config TARGET_ROOTFS_ISO
- bool "iso"
- default n
- depends on TARGET_x86_generic
- help
- Create some bootable ISO image
-
- config TARGET_ROOTFS_JFFS2
- bool "jffs2"
- default y if USES_JFFS2
- help
- Build a jffs2 root filesystem
-
- config TARGET_ROOTFS_JFFS2_NAND
- bool "jffs2 for NAND"
- default y if USES_JFFS2_NAND
- depends on USES_JFFS2_NAND
- help
- Build a jffs2 root filesystem for NAND flash
-
- config TARGET_ROOTFS_SQUASHFS
- bool "squashfs"
- default y if USES_SQUASHFS
- help
- Build a squashfs-lzma root filesystem
-
- config TARGET_ROOTFS_UBIFS
- bool "ubifs"
- default y if USES_UBIFS
- depends on USES_UBIFS
- help
- Build a ubifs root filesystem
-
- comment "Image Options"
-
- source "target/linux/*/image/Config.in"
-
- config TARGET_ROOTFS_PARTSIZE
- int "Root filesystem partition size (in MB)"
- depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
- default 48
- help
- Allows you to change the root filesystem partition size
-
- config TARGET_ROOTFS_MAXINODE
- int "Maximum number of inodes in root filesystem"
- depends on TARGET_ROOTFS_EXT4FS
- default 6000
- help
- Allows you to change the maximum number of inodes in the root filesystem
-
- config TARGET_ROOTFS_RESERVED_PCT
- int "Percentage of reserved blocks in root filesystem"
- depends on TARGET_ROOTFS_EXT4FS
- default 0
- help
- Allows you to change the percentage of reserved blocks in the root filesystem
-
-endmenu
-
-menu "Global build settings"
-
- config ALL
- bool "Select all packages by default"
- default n
-
- comment "General build options"
-
- config DISPLAY_SUPPORT
- bool "Show packages that require graphics support (local or remote)"
- default n
-
- config BUILD_PATENTED
- default y
- bool "Compile with support for patented functionality"
- help
- When this option is disabled, software which provides patented functionality will not be built.
- In case software provides optional support for patented functionality,
- this optional support will get disabled for this package.
-
- config BUILD_NLS
- default n
- bool "Compile with full language support"
- help
- When this option is enabled, packages are built with the full versions of iconv and GNU gettext
- instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
-
- config BUILD_STATIC_TOOLS
- default n
- bool "Attempt to link host utilities statically"
- help
- Linking host utilities like sed or firmware-utils statically increases the portability of the
- generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
-
- config SHADOW_PASSWORDS
- bool
- prompt "Enable shadow password support"
- default y
- help
- Enable shadow password support.
-
- config CLEAN_IPKG
- bool
- prompt "Remove ipkg/opkg status data files in final images"
- default n
- help
- This removes all ipkg/opkg status data files from the target directory before building the root fs
-
- config COLLECT_KERNEL_DEBUG
- bool
- prompt "Collect kernel debug information"
- select KERNEL_DEBUG_INFO
- default n
- help
- This collects debugging symbols from the kernel and all compiled modules.
- Useful for release builds, so that kernel issues can be debugged offline later.
-
- comment "Kernel build options"
-
- config KERNEL_DEBUG_FS
- bool "Compile the kernel with Debug FileSystem enabled"
- default y
- help
- debugfs is a virtual file system that kernel developers use to put
- debugging files into. Enable this option to be able to read and
- write to these files.
-
- config KERNEL_PERF_EVENTS
- bool
- default n
-
- config KERNEL_PROFILING
- bool "Compile the kernel with profiling enabled"
- default n
- select KERNEL_PERF_EVENTS
- help
- Enable the extended profiling support mechanisms used by profilers such
- as OProfile.
-
- config KERNEL_KALLSYMS
- bool "Compile the kernel with symbol table information"
- default y
- help
- This will give you more information in stack traces from kernel oopses
-
- config KERNEL_FTRACE
- bool "Compile the kernel with tracing support"
- default n
-
- config KERNEL_ENABLE_DEFAULT_TRACERS
- bool "Trace process context switches and events"
- depends on KERNEL_FTRACE
- default n
-
- config KERNEL_DEBUG_KERNEL
- bool
- default n
-
- config KERNEL_DEBUG_INFO
- bool "Compile the kernel with debug information"
- default y
- select KERNEL_DEBUG_KERNEL
- help
- This will compile your kernel and modules with debug information.
-
- config KERNEL_DEBUG_LL_UART_NONE
- bool
- default n
- depends on arm
-
- config KERNEL_DEBUG_LL
- bool
- default n
- depends on arm
- select KERNEL_DEBUG_LL_UART_NONE
- help
- ARM low level debugging
-
- config KERNEL_EARLY_PRINTK
- bool "Compile the kernel with early printk"
- default n
- depends on arm
- select KERNEL_DEBUG_KERNEL
- select KERNEL_DEBUG_LL if arm
- help
- Compile the kernel with early printk support.
- This is only useful for debugging purposes to send messages
- over the serial console in early boot.
- Enable this to debug early boot problems.
-
- config KERNEL_AIO
- bool "Compile the kernel with asynchronous IO support"
- default n
-
- config KERNEL_DIRECT_IO
- bool "Compile the kernel with direct IO support"
- default n
-
- config KERNEL_MAGIC_SYSRQ
- bool "Compile the kernel with SysRq support"
- default y
-
- config KERNEL_COREDUMP
- bool
-
- config KERNEL_ELF_CORE
- bool "Enable process core dump support"
- select KERNEL_COREDUMP
- default y
-
- config KERNEL_PROVE_LOCKING
- bool "Enable kernel lock checking"
- select KERNEL_DEBUG_KERNEL
- default n
-
- config KERNEL_PRINTK_TIME
- bool "Enable printk timestamps"
- default y
-
- config KERNEL_RELAY
- bool
-
- #
- # CGROUP support symbols
- #
-
- config KERNEL_CGROUPS
- bool "Enable kernel cgroups"
- default n
-
- if KERNEL_CGROUPS
-
- config KERNEL_CGROUP_DEBUG
- bool "Example debug cgroup subsystem"
- default n
- help
- This option enables a simple cgroup subsystem that
- exports useful debugging information about the cgroups
- framework.
-
- config KERNEL_FREEZER
- bool
- default y if KERNEL_CGROUP_FREEZER
-
- config KERNEL_CGROUP_FREEZER
- bool "Freezer cgroup subsystem"
- default n
- help
- Provides a way to freeze and unfreeze all tasks in a
- cgroup.
-
- config KERNEL_CGROUP_DEVICE
- bool "Device controller for cgroups"
- default y
- help
- Provides a cgroup implementing whitelists for devices which
- a process in the cgroup can mknod or open.
-
- config KERNEL_CPUSETS
- bool "Cpuset support"
- default n
- help
- This option will let you create and manage CPUSETs which
- allow dynamically partitioning a system into sets of CPUs and
- Memory Nodes and assigning tasks to run only within those sets.
- This is primarily useful on large SMP or NUMA systems.
-
- config KERNEL_PROC_PID_CPUSET
- bool "Include legacy /proc/<pid>/cpuset file"
- default n
- depends on KERNEL_CPUSETS
-
- config KERNEL_CGROUP_CPUACCT
- bool "Simple CPU accounting cgroup subsystem"
- default n
- help
- Provides a simple Resource Controller for monitoring the
- total CPU consumed by the tasks in a cgroup.
-
- config KERNEL_RESOURCE_COUNTERS
- bool "Resource counters"
- default n
- help
- This option enables controller independent resource accounting
- infrastructure that works with cgroups.
-
- config KERNEL_MM_OWNER
- bool
- default y if KERNEL_MEMCG
-
- config KERNEL_MEMCG
- bool "Memory Resource Controller for Control Groups"
- default n
- depends on KERNEL_RESOURCE_COUNTERS
- help
- Provides a memory resource controller that manages both anonymous
- memory and page cache. (See Documentation/cgroups/memory.txt)
-
- Note that setting this option increases fixed memory overhead
- associated with each page of memory in the system. By this,
- 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
- usage tracking struct at boot. Total amount of this is printed out
- at boot.
-
- Only enable when you're ok with these trade offs and really
- sure you need the memory resource controller. Even when you enable
- this, you can set "cgroup_disable=memory" at your boot option to
- disable memory resource controller and you can avoid overheads.
- (and lose benefits of memory resource controller)
-
- This config option also selects MM_OWNER config option, which
- could in turn add some fork/exit overhead.
-
- config KERNEL_MEMCG_SWAP
- bool "Memory Resource Controller Swap Extension"
- default n
- depends on KERNEL_MEMCG
- help
- Add swap management feature to memory resource controller. When you
- enable this, you can limit mem+swap usage per cgroup. In other words,
- when you disable this, memory resource controller has no cares to
- usage of swap...a process can exhaust all of the swap. This extension
- is useful when you want to avoid exhaustion swap but this itself
- adds more overheads and consumes memory for remembering information.
- Especially if you use 32bit system or small memory system, please
- be careful about enabling this. When memory resource controller
- is disabled by boot option, this will be automatically disabled and
- there will be no overhead from this. Even when you set this config=y,
- if boot option "swapaccount=0" is set, swap will not be accounted.
- Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
- size is 4096bytes, 512k per 1Gbytes of swap.
-
- config KERNEL_MEMCG_SWAP_ENABLED
- bool "Memory Resource Controller Swap Extension enabled by default"
- default n
- depends on KERNEL_MEMCG_SWAP
- help
- Memory Resource Controller Swap Extension comes with its price in
- a bigger memory consumption. General purpose distribution kernels
- which want to enable the feature but keep it disabled by default
- and let the user enable it by swapaccount boot command line
- parameter should have this option unselected.
- For those who want to have the feature enabled by default should
- select this option (if, for some reason, they need to disable it
- then swapaccount=0 does the trick).
-
-
- config KERNEL_MEMCG_KMEM
- bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
- default n
- depends on KERNEL_MEMCG
- help
- The Kernel Memory extension for Memory Resource Controller can limit
- the amount of memory used by kernel objects in the system. Those are
- fundamentally different from the entities handled by the standard
- Memory Controller, which are page-based, and can be swapped. Users of
- the kmem extension can use it to guarantee that no group of processes
- will ever exhaust kernel resources alone.