+source "target/Config.in"
+
+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
+ depends on !TARGET_ROOTFS_INITRAMFS
+ help
+ Ext4 file system with some free space for uml images
+
+ config TARGET_ROOTFS_ISO
+ bool "iso"
+ default n
+ depends on TARGET_x86_generic
+ depends on !TARGET_ROOTFS_INITRAMFS
+ help
+ Create some bootable ISO image
+
+ config TARGET_ROOTFS_JFFS2
+ bool "jffs2"
+ default y if USES_JFFS2
+ depends on !TARGET_ROOTFS_INITRAMFS
+ help
+ Build a jffs2 root filesystem
+
+ config TARGET_ROOTFS_JFFS2_NAND
+ bool "jffs2 for NAND"
+ default y if USES_JFFS2_NAND
+ depends on !TARGET_ROOTFS_INITRAMFS && USES_JFFS2_NAND
+ help
+ Build a jffs2 root filesystem for NAND flash
+
+ config TARGET_ROOTFS_SQUASHFS
+ bool "squashfs"
+ default y if USES_SQUASHFS
+ depends on !TARGET_ROOTFS_INITRAMFS
+ help
+ Build a squashfs-lzma root filesystem
+
+ config TARGET_ROOTFS_UBIFS
+ bool "ubifs"
+ default y if USES_UBIFS
+ depends on !TARGET_ROOTFS_INITRAMFS && 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