summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-13 09:57:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-13 09:57:21 +0200
commit6e5edc83271beb9ac4017bdf74b540da2ebe4594 (patch)
tree0a4a7ded2460ebedd40f88ff2414f90c44b275da
parentfec1fd5598765d02691cb4c2b3ea3f1938be7824 (diff)
parent851a4486f663ddb8acffd4dd870d4121290b35d5 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-rw-r--r--mk/build.mk2
-rw-r--r--mk/rootfs.mk2
-rw-r--r--package/ConsoleKit/Makefile2
-rw-r--r--package/busybox/Makefile60
-rw-r--r--package/busybox/config/Config.in140
-rw-r--r--package/busybox/config/archival/Config.in37
-rw-r--r--package/busybox/config/console-tools/Config.in30
-rw-r--r--package/busybox/config/coreutils/Config.in24
-rw-r--r--package/busybox/config/editors/Config.in12
-rw-r--r--package/busybox/config/init/Config.in12
-rw-r--r--package/busybox/config/libbb/Config.in1
-rw-r--r--package/busybox/config/loginutils/Config.in12
-rw-r--r--package/busybox/config/miscutils/Config.in97
-rw-r--r--package/busybox/config/modutils/Config.in7
-rw-r--r--package/busybox/config/networking/Config.in75
-rw-r--r--package/busybox/config/networking/udhcp/Config.in5
-rw-r--r--package/busybox/config/procps/Config.in51
-rw-r--r--package/busybox/config/runit/Config.in4
-rw-r--r--package/busybox/config/shell/Config.in108
-rw-r--r--package/busybox/config/sysklogd/Config.in26
-rw-r--r--package/busybox/config/util-linux/Config.in75
-rw-r--r--package/busybox/patches/003-defaults.patch154
-rw-r--r--package/dbus-glib/Makefile3
-rw-r--r--package/dbus/patches/patch-configure21
-rw-r--r--package/glib/Makefile3
-rw-r--r--package/libmpc/Makefile11
-rw-r--r--package/mpfr/Makefile16
-rw-r--r--package/openjdk/patches/disable-sizers.patch14
-rw-r--r--package/zip/Makefile34
-rw-r--r--target/config/Config.in5
-rw-r--r--target/linux/Config.in1
-rw-r--r--target/linux/config/Config.in.block1
-rw-r--r--target/linux/config/Config.in.graphics19
-rw-r--r--target/linux/config/Config.in.input5
-rw-r--r--target/linux/config/Config.in.mips16
-rw-r--r--target/linux/config/Config.in.netdevice11
-rw-r--r--target/linux/config/Config.in.systems7
-rw-r--r--target/linux/config/Config.in.usb7
-rw-r--r--target/linux/patches/2.6.37/usb-defaults-off.patch32
-rw-r--r--target/linux/patches/2.6.37/vga-cons-default-off.patch12
-rw-r--r--target/mips64el/Makefile32
-rw-r--r--target/mips64el/kernel.config207
-rw-r--r--target/mips64el/sys-available/lemote-yeelong3
-rw-r--r--target/mips64el/sys-available/qemu-mips64el1
-rw-r--r--target/mips64el/sys-available/toolchain-mips64el1
-rw-r--r--target/mips64el/target.mk2
46 files changed, 1141 insertions, 259 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 635d8bc63..4774106ee 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -186,7 +186,7 @@ switch:
kernelconfig:
cp $(TOPDIR)/target/$(ADK_TARGET_ARCH)/kernel.config $(BUILD_DIR)/linux/.config
- ${KERNEL_MAKE_ENV} ${MAKE} ${KERNEL_MAKE_OPTS} -C $(BUILD_DIR)/linux menuconfig
+ ${KERNEL_MAKE_ENV} ${MAKE} ARCH=$(ARCH) ${KERNEL_MAKE_OPTS} -C $(BUILD_DIR)/linux menuconfig
cp $(BUILD_DIR)/linux/.config $(TOPDIR)/target/$(ADK_TARGET_ARCH)/kernel.config
# create a new package from package/.template
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
index ee63d8c2d..2da69d017 100644
--- a/mk/rootfs.mk
+++ b/mk/rootfs.mk
@@ -27,7 +27,7 @@ endif
$(eval $(call rootfs_template,cf,CF,$(ROOTFS)))
$(eval $(call rootfs_template,mmc,MMC,$(ROOTFS)))
-$(eval $(call rootfs_template,usb,USB,rootdelay=3))
+$(eval $(call rootfs_template,usb,USB,rootwait))
$(eval $(call rootfs_template,archive,ARCHIVE,$(ROOTFS)))
$(eval $(call rootfs_template,initramfs,INITRAMFS))
$(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
diff --git a/package/ConsoleKit/Makefile b/package/ConsoleKit/Makefile
index 4480df4ef..178be1447 100644
--- a/package/ConsoleKit/Makefile
+++ b/package/ConsoleKit/Makefile
@@ -21,5 +21,7 @@ $(eval $(call PKG_template,CONSOLEKIT,consolekit,$(PKG_VERSION)-${PKG_RELEASE},$
consolekit-install:
$(INSTALL_DIR) $(IDIR_CONSOLEKIT)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libck-connector.so* \
+ $(IDIR_CONSOLEKIT)/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 9d85302d0..71c8c0e99 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= busybox
-PKG_VERSION:= 1.18.1
-PKG_RELEASE:= 4
-PKG_MD5SUM:= f15fe752d8b7012aa5e59f83b88ccb1c
+PKG_VERSION:= 1.18.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= b03c5b46ced732679e525a920a1a62f5
PKG_DESCR:= Core utilities for embedded systems
PKG_SECTION:= base
PKG_URL:= http://www.busybox.net/
@@ -23,47 +23,43 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,BUSYBOX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,UDHCPD,udhcpd,${PKG_VERSION}-${PKG_RELEASE},busybox,${PKGSD_UDHCPD},${PKGSC_UDHCPD}))
+# This is how to extract the Config.in files from a _built_ busybox source tree:
+#|for c in $(find build_viprinux_arm_glibc/w-busybox-1.18.1-4/busybox-1.18.1/ -name Config.in); do
+#| c=$(sed s,build_viprinux_arm_glibc/w-busybox-1.18.1-4/busybox-1.18.1/,, <<< $c)
+#| mkdir -p package/busybox/config_new/$(dirname $c)
+#| cp build_viprinux_arm_glibc/w-busybox-1.18.1-4/busybox-1.18.1/$c package/busybox/config_new/$c
+#|done
+
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
+BB_MAKE_FLAGS:= V=1 IPKG_ARCH="${CPU_ARCH}" ARCH="${ARCH}" \
+ HOSTCC="${CC_FOR_BUILD}" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
+ -C ${WRKBUILD}
+ifneq (${ADK_NATIVE},y)
+BB_MAKE_FLAGS+= EXTRA_CFLAGS="${TARGET_CFLAGS}" CROSS_COMPILE="$(TARGET_CROSS)"
+endif
+
+# XXX: Although this looks like all new symbols are enabled when 'make oldconfig' runs, they're not.
+# In fact, you can pipe "yes ''" as well as "yes n", each time leading to the default value being
+# chosen for each unknown symbol.
+# A real solution for that task (disabling everything that's unknown, as we know better) is to
+# upgrade ${TOPDIR}/config so it understands the oldnoconfig target, and using that to update
+# the busybox config before compiling.
+# The workaround for now is to patch all busybox symbols to default n inside the busybox source
+# which do depend on non-existance of other packages outside the busybox source.
do-configure:
grep BUSYBOX_ $(TOPDIR)/.config|sed -e 's/BUSYBOX_/CONFIG_/' > \
${WRKBUILD}/.config
$(SED) 's;@IDIR@;${WRKINST};' ${WRKBUILD}/.config
-ifeq ($(ADK_NATIVE),y)
- yes '' | \
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" \
- ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" -C $(WRKBUILD) oldconfig $(MAKE_TRACE)
-else
- yes '' | \
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- EXTRA_CFLAGS="$(TARGET_CFLAGS)" IPKG_ARCH="$(CPU_ARCH)" \
- ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" -C $(WRKBUILD) oldconfig $(MAKE_TRACE)
-endif
+ yes '' | $(MAKE) ${BB_MAKE_FLAGS} oldconfig $(MAKE_TRACE)
do-build:
-ifeq ($(ADK_NATIVE),y)
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
- -C $(WRKBUILD) busybox
-else
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
- -C $(WRKBUILD) busybox
-endif
+ $(MAKE) ${BB_MAKE_FLAGS} busybox
do-install:
-ifeq ($(ADK_NATIVE),y)
- $(MAKE) V=1 \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
- -C $(WRKBUILD) install $(MAKE_TRACE)
-else
- $(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- IPKG_ARCH="$(CPU_ARCH)" ARCH="$(ARCH)" HOSTCC="$(CC_FOR_BUILD)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
- -C $(WRKBUILD) install $(MAKE_TRACE)
-endif
+ $(MAKE) ${BB_MAKE_FLAGS} install $(MAKE_TRACE)
$(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
ifeq ($(ADK_DEBUG),y)
${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \
diff --git a/package/busybox/config/Config.in b/package/busybox/config/Config.in
index bf0d9d8c0..5a0e5a285 100644
--- a/package/busybox/config/Config.in
+++ b/package/busybox/config/Config.in
@@ -47,6 +47,17 @@ config BUSYBOX_USE_PORTABLE_CODE
compiler other than gcc.
If you do use gcc, this option may needlessly increase code size.
+config BUSYBOX_PLATFORM_LINUX
+ bool "Enable Linux-specific applets and features"
+ default y
+ help
+ For the most part, busybox requires only POSIX compatibility
+ from the target system, but some applets and features use
+ Linux-specific interfaces.
+
+ Answering 'N' here will disable such applets and hide the
+ corresponding configuration options.
+
choice
prompt "Buffer allocation policy"
default FEATURE_BUFFERS_USE_MALLOC
@@ -131,6 +142,15 @@ config BUSYBOX_UNICODE_SUPPORT
Probably by the time when busybox will be fully Unicode-clean,
other encodings will be mainly of historic interest.
+config BUSYBOX_UNICODE_USING_LOCALE
+ bool "Use libc routines for Unicode (else uses internal ones)"
+ default n
+ depends on BUSYBOX_UNICODE_SUPPORT && BUSYBOX_LOCALE_SUPPORT
+ help
+ With this option on, Unicode support is implemented using libc
+ routines. Otherwise, internal implementation is used.
+ Internal implementation is smaller.
+
config BUSYBOX_FEATURE_CHECK_UNICODE_IN_ENV
bool "Check $LANG environment variable"
default y
@@ -141,6 +161,91 @@ config BUSYBOX_FEATURE_CHECK_UNICODE_IN_ENV
Otherwise, Unicode support will be always enabled and active.
+config BUSYBOX_SUBST_WCHAR
+ int "Character code to substitute unprintable characters with"
+ depends on BUSYBOX_UNICODE_SUPPORT
+ default 63
+ help
+ Typical values are 63 for '?' (works with any output device),
+ 30 for ASCII substitute control code,
+ 65533 (0xfffd) for Unicode replacement character.
+
+config BUSYBOX_LAST_SUPPORTED_WCHAR
+ int "Range of supported Unicode characters"
+ depends on BUSYBOX_UNICODE_SUPPORT
+ default 767
+ help
+ Any character with Unicode value bigger than this is assumed
+ to be non-printable on output device. Many applets replace
+ such chars with substitution character.
+
+ The idea is that many valid printable Unicode chars are
+ nevertheless are not displayed correctly. Think about
+ combining charachers, double-wide hieroglyphs, obscure
+ characters in dozens of ancient scripts...
+ Many terminals, terminal emulators, xterms etc will fail
+ to handle them correctly. Choose the smallest value
+ which suits your needs.
+
+ Typical values are:
+ 126 - ASCII only
+ 767 (0x2ff) - there are no combining chars in [0..767] range
+ (the range includes Latin 1, Latin Ext. A and B),
+ code is ~700 bytes smaller for this case.
+ 4351 (0x10ff) - there are no double-wide chars in [0..4351] range,
+ code is ~300 bytes smaller for this case.
+ 12799 (0x31ff) - nearly all non-ideographic characters are
+ available in [0..12799] range, including
+ East Asian scripts like katakana, hiragana, hangul,
+ bopomofo...
+ 0 - off, any valid printable Unicode character will be printed.
+
+config BUSYBOX_UNICODE_COMBINING_WCHARS
+ bool "Allow zero-width Unicode characters on output"
+ default n
+ depends on BUSYBOX_UNICODE_SUPPORT
+ help
+ With this option off, any Unicode char with width of 0
+ is substituted on output.
+
+config BUSYBOX_UNICODE_WIDE_WCHARS
+ bool "Allow wide Unicode characters on output"
+ default n
+ depends on BUSYBOX_UNICODE_SUPPORT
+ help
+ With this option off, any Unicode char with width > 1
+ is substituted on output.
+
+config BUSYBOX_UNICODE_BIDI_SUPPORT
+ bool "Bidirectional character-aware line input"
+ default n
+ depends on BUSYBOX_UNICODE_SUPPORT && !BUSYBOX_UNICODE_USING_LOCALE
+ help
+ With this option on, right-to-left Unicode characters
+ are treated differently on input (e.g. cursor movement).
+
+config BUSYBOX_UNICODE_NEUTRAL_TABLE
+ bool "In bidi input, support non-ASCII neutral chars too"
+ default n
+ depends on BUSYBOX_UNICODE_BIDI_SUPPORT
+ help
+ In most cases it's enough to treat only ASCII non-letters
+ (i.e. punctuation, numbers and space) as characters
+ with neutral directionality.
+ With this option on, more extensive (and bigger) table
+ of neutral chars will be used.
+
+config BUSYBOX_UNICODE_PRESERVE_BROKEN
+ bool "Make it possible to enter sequences of chars which are not Unicode"
+ default n
+ depends on BUSYBOX_UNICODE_SUPPORT
+ help
+ With this option on, invalid UTF-8 bytes are not substituted
+ with the selected substitution character.
+ For example, this means that entering 'l', 's', ' ', 0xff, [Enter]
+ at shell prompt will list file named 0xff (single char name
+ with char value 255), not file named '?'.
+
config BUSYBOX_LONG_OPTS
bool "Support for --long-options"
default y
@@ -182,21 +287,26 @@ config BUSYBOX_FEATURE_SUID
default n
help
With this option you can install the busybox binary belonging
- to root with the suid bit set, and it will automatically drop
- priviledges for applets that don't need root access.
+ to root with the suid bit set, enabling some applets to perform
+ root-level operations even when run by ordinary users
+ (for example, mounting of user mounts in fstab needs this).
+
+ Busybox will automatically drop priviledges for applets
+ that don't need root access.
If you are really paranoid and don't want to do this, build two
busybox binaries with different applets in them (and the appropriate
symlinks pointing to each binary), and only set the suid bit on the
- one that needs it. The applets currently marked to need the suid bit
- are:
+ one that needs it.
+
+ The applets currently marked to need the suid bit are:
crontab, dnsd, findfs, ipcrm, ipcs, login, passwd, ping, su,
traceroute, vlock.
config BUSYBOX_FEATURE_SUID_CONFIG
bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
- default n if FEATURE_SUID
+ default n if BUSYBOX_FEATURE_SUID
depends on BUSYBOX_FEATURE_SUID
help
Allow the SUID / SGID state of an applet to be determined at runtime
@@ -239,6 +349,7 @@ config BUSYBOX_FEATURE_SUID_CONFIG_QUIET
config BUSYBOX_SELINUX
bool "Support NSA Security Enhanced Linux"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Enable support for SELinux in applets ls, ps, and id. Also provide
the option of compiling in SELinux applets.
@@ -525,20 +636,22 @@ endchoice
endmenu
-menu 'Installation Options'
+menu 'Installation Options ("make install" behavior)'
config BUSYBOX_INSTALL_NO_USR
bool "Don't use /usr"
default n
+ depends on BUSYBOX_FEATURE_INSTALLER
help
- Disable use of /usr. Don't activate this option if you don't know
- that you really want this behaviour.
+ Disable use of /usr. busybox --install and "make install"
+ will install applets only to /bin and /sbin,
+ never to /usr/bin or /usr/sbin.
choice
- prompt "Applets links"
- default INSTALL_APPLET_SYMLINKS
+ prompt "What kind of applet links to install"
+ default BUSYBOX_INSTALL_APPLET_SYMLINKS
help
- Choose how you install applets links.
+ Choose what kind of links to applets are created by "make install".
config BUSYBOX_INSTALL_APPLET_SYMLINKS
bool "as soft-links"
@@ -562,8 +675,9 @@ config BUSYBOX_INSTALL_APPLET_DONT
bool "not installed"
depends on BUSYBOX_FEATURE_INSTALLER || BUSYBOX_FEATURE_SH_STANDALONE || BUSYBOX_FEATURE_PREFER_APPLETS
help
- Do not install applet links. Useful when using the -install feature
- or a standalone shell for rescue purposes.
+ Do not install applet links. Useful when you plan to use
+ busybox --install for installing links, or plan to use
+ a standalone shell and thus don't need applet links.
endchoice
diff --git a/package/busybox/config/archival/Config.in b/package/busybox/config/archival/Config.in
index 4bfba12c3..edeec98db 100644
--- a/package/busybox/config/archival/Config.in
+++ b/package/busybox/config/archival/Config.in
@@ -5,6 +5,12 @@
menu "Archival Utilities"
+config BUSYBOX_FEATURE_SEAMLESS_XZ
+ bool "Make tar, rpm, modprobe etc understand .xz data"
+ default y
+ help
+ Make tar, rpm, modprobe etc understand .xz data.
+
config BUSYBOX_FEATURE_SEAMLESS_LZMA
bool "Make tar, rpm, modprobe etc understand .lzma data"
default y
@@ -31,7 +37,7 @@ config BUSYBOX_FEATURE_SEAMLESS_Z
config BUSYBOX_AR
bool "ar"
- default n
+ default y
depends on !ADK_PACKAGE_BINUTILS
help
ar is an archival utility program used to create, modify, and
@@ -73,7 +79,7 @@ config BUSYBOX_FEATURE_AR_CREATE
config BUSYBOX_BUNZIP2
bool "bunzip2"
depends on !ADK_PACKAGE_BZIP2
- default n
+ default y
help
bunzip2 is a compression utility using the Burrows-Wheeler block
sorting text compression algorithm, and Huffman coding. Compression
@@ -87,7 +93,7 @@ config BUSYBOX_BUNZIP2
config BUSYBOX_BZIP2
bool "bzip2"
depends on !ADK_PACKAGE_BZIP2
- default n
+ default y
help
bzip2 is a compression utility using the Burrows-Wheeler block
sorting text compression algorithm, and Huffman coding. Compression
@@ -101,7 +107,7 @@ config BUSYBOX_BZIP2
config BUSYBOX_CPIO
bool "cpio"
depends on !ADK_PACKAGE_CPIO
- default n
+ default y
help
cpio is an archival utility program used to create, modify, and
extract contents from archives.
@@ -228,7 +234,7 @@ config BUSYBOX_TAR
create compressed archives. It's probably the most widely used
UNIX archive program.
-if TAR
+if BUSYBOX_TAR
config BUSYBOX_FEATURE_TAR_CREATE
bool "Enable archive creation"
@@ -288,6 +294,15 @@ config BUSYBOX_FEATURE_TAR_LONG_OPTIONS
help
Enable use of long options, increases size by about 400 Bytes
+config BUSYBOX_FEATURE_TAR_TO_COMMAND
+ bool "Support for writing to an external program"
+ default y
+ depends on BUSYBOX_TAR && BUSYBOX_FEATURE_TAR_LONG_OPTIONS
+ help
+ If you enable this option you'll be able to instruct tar to send
+ the contents of each extracted file to the standard input of an
+ external program.
+
config BUSYBOX_FEATURE_TAR_UNAME_GNAME
bool "Enable use of user and group names"
default y
@@ -305,6 +320,14 @@ config BUSYBOX_FEATURE_TAR_NOPRESERVE_TIME
With this option busybox supports GNU tar -m
(do not preserve time) option.
+config BUSYBOX_FEATURE_TAR_SELINUX
+ bool "Support for extracting SELinux labels"
+ default n
+ depends on BUSYBOX_TAR && BUSYBOX_SELINUX
+ help
+ With this option busybox supports restoring SELinux labels
+ when extracting files from tar archives.
+
endif #tar
config BUSYBOX_UNCOMPRESS
@@ -317,7 +340,7 @@ config BUSYBOX_UNCOMPRESS
config BUSYBOX_UNLZMA
bool "unlzma"
depends on !ADK_PACKAGE_XZ
- default n
+ default y
help
unlzma is a compression utility using the Lempel-Ziv-Markov chain
compression algorithm, and range coding. Compression
@@ -349,7 +372,7 @@ config BUSYBOX_LZMA
config BUSYBOX_UNXZ
bool "unxz"
depends on !ADK_PACKAGE_XZ
- default n
+ default y
help
unxz is a unlzma successor.
diff --git a/package/busybox/config/console-tools/Config.in b/package/busybox/config/console-tools/Config.in
index 4a86ff740..03d277111 100644
--- a/package/busybox/config/console-tools/Config.in
+++ b/package/busybox/config/console-tools/Config.in
@@ -8,6 +8,7 @@ menu "Console Utilities"
config BUSYBOX_CHVT
bool "chvt"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program is used to change to another terminal.
Example: chvt 4 (change to terminal /dev/tty4)
@@ -15,6 +16,7 @@ config BUSYBOX_CHVT
config BUSYBOX_FGCONSOLE
bool "fgconsole"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program prints active (foreground) console number.
@@ -27,12 +29,14 @@ config BUSYBOX_CLEAR
config BUSYBOX_DEALLOCVT
bool "deallocvt"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program deallocates unused virtual consoles.
config BUSYBOX_DUMPKMAP
bool "dumpkmap"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program dumps the kernel's keyboard translation table to
stdout, in binary format. You can then use loadkmap to load it.
@@ -41,12 +45,14 @@ config BUSYBOX_KBD_MODE
bool "kbd_mode"
default y if ADK_TARGET_WITH_INPUT
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program reports and sets keyboard mode.
config BUSYBOX_LOADFONT
bool "loadfont"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program loads a console font from standard input.
@@ -54,6 +60,7 @@ config BUSYBOX_LOADKMAP
bool "loadkmap"
default y if ADK_TARGET_WITH_INPUT
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program loads a keyboard translation table from
standard input.
@@ -61,6 +68,7 @@ config BUSYBOX_LOADKMAP
config BUSYBOX_OPENVT
bool "openvt"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program is used to start a command on an unused
virtual terminal.
@@ -92,6 +100,7 @@ config BUSYBOX_FEATURE_RESIZE_PRINT
config BUSYBOX_SETCONSOLE
bool "setconsole"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program redirects the system console to another device,
like the current tty while logged in via telnet.
@@ -106,6 +115,7 @@ config BUSYBOX_FEATURE_SETCONSOLE_LONG_OPTIONS
config BUSYBOX_SETFONT
bool "setfont"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Allows to load console screen map. Useful for i18n.
@@ -127,6 +137,7 @@ config BUSYBOX_DEFAULT_SETFONT_DIR
config BUSYBOX_SETKEYCODES
bool "setkeycodes"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program loads entries into the kernel's scancode-to-keycode
map, allowing unusual keyboards to generate usable keycodes.
@@ -134,13 +145,32 @@ config BUSYBOX_SETKEYCODES
config BUSYBOX_SETLOGCONS
bool "setlogcons"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This program redirects the output console of kernel messages.
config BUSYBOX_SHOWKEY
bool "showkey"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Shows keys pressed.
+comment "Common options for loadfont and setfont"
+ depends on BUSYBOX_LOADFONT || BUSYBOX_SETFONT
+
+config BUSYBOX_FEATURE_LOADFONT_PSF2
+ bool "Support for PSF2 console fonts"
+ default y
+ depends on BUSYBOX_LOADFONT || BUSYBOX_SETFONT
+ help
+ Support PSF2 console fonts.
+
+config BUSYBOX_FEATURE_LOADFONT_RAW
+ bool "Support for old (raw) console fonts"
+ default y
+ depends on BUSYBOX_LOADFONT || BUSYBOX_SETFONT
+ help
+ Support old (raw) console fonts.
+
endmenu
diff --git a/package/busybox/config/coreutils/Config.in b/package/busybox/config/coreutils/Config.in
index 069eab70d..9c55d74aa 100644
--- a/package/busybox/config/coreutils/Config.in
+++ b/package/busybox/config/coreutils/Config.in
@@ -5,6 +5,12 @@
menu "Coreutils"
+config BUSYBOX_BASE64
+ bool "base64"
+ default y
+ help
+ Base64 encode and decode
+
config BUSYBOX_BASENAME
bool "basename"
default y
@@ -115,6 +121,14 @@ config BUSYBOX_FEATURE_DATE_ISOFMT
Enable option (-I) to output an ISO-8601 compliant
date/time string.
+# defaults to "no": stat's nanosecond field is a bit non-portable
+config BUSYBOX_FEATURE_DATE_NANO
+ bool "Support %[num]N nanosecond format specifier"
+ default n
+ depends on BUSYBOX_DATE && BUSYBOX_PLATFORM_LINUX # syscall(__NR_clock_gettime)
+ help
+ Support %[num]N format specifier. Adds ~250 bytes of code.
+
config BUSYBOX_FEATURE_DATE_COMPAT
bool "Support weird 'date MMDDhhmm[[YY]YY][.ss]' format"
default y
@@ -183,6 +197,10 @@ config BUSYBOX_FEATURE_DF_FANCY
help
This option enables -a, -i and -B.
+ -a Show all filesystems
+ -i Inodes
+ -B <SIZE> Blocksize
+
config BUSYBOX_DIRNAME
bool "dirname"
default y
@@ -631,6 +649,7 @@ config BUSYBOX_FEATURE_SPLIT_FANCY
config BUSYBOX_STAT
bool "stat"
default y
+ depends on BUSYBOX_PLATFORM_LINUX # statfs()
help
display file or filesystem status.
@@ -682,6 +701,11 @@ config BUSYBOX_FEATURE_FANCY_TAIL
The options (-q, -s, and -v) are provided by GNU tail, but
are not specific in the SUSv3 standard.
+ -q Never output headers giving file names
+ -s SEC Wait SEC seconds between reads with -f
+ -v Always output headers giving file names
+
+
config BUSYBOX_TEE
bool "tee"
default y
diff --git a/package/busybox/config/editors/Config.in b/package/busybox/config/editors/Config.in
index 52594b0ef..1a86ce9bd 100644
--- a/package/busybox/config/editors/Config.in
+++ b/package/busybox/config/editors/Config.in
@@ -171,6 +171,18 @@ config BUSYBOX_FEATURE_VI_WIN_RESIZE
help
Make busybox vi behave nicely with terminals that get resized.
+config BUSYBOX_FEATURE_VI_ASK_TERMINAL
+ bool "Use 'tell me cursor position' ESC sequence to measure window"
+ default y
+ depends on BUSYBOX_VI
+ help
+ If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
+ this option makes vi perform a last-ditch effort to find it:
+ vi positions cursor to 999,999 and asks terminal to report real
+ cursor position using "ESC [ 6 n" escape sequence, then reads stdin.
+
+ This is not clean but helps a lot on serial lines and such.
+
config BUSYBOX_FEATURE_VI_OPTIMIZE_CURSOR
bool "Optimize cursor movement"
default y
diff --git a/package/busybox/config/init/Config.in b/package/busybox/config/init/Config.in
index cabe6b046..3858d14c5 100644
--- a/package/busybox/config/init/Config.in
+++ b/package/busybox/config/init/Config.in
@@ -152,6 +152,18 @@ config BUSYBOX_TELINIT_PATH
to facilitate proper shutdown, this path is to be used when
locating telinit executable.
+config BUSYBOX_INIT_TERMINAL_TYPE
+ string "Initial terminal type"
+ default "linux"
+ depends on BUSYBOX_INIT
+ help
+ This is the initial value set by init for the TERM environment
+ variable. This variable is used by programs which make use of
+ extended terminal capabilities.
+
+ Note that on Linux, init attempts to detect serial terminal and
+ sets TERM to "vt102" if one is found.
+
config BUSYBOX_MESG
bool "mesg"
default n
diff --git a/package/busybox/config/libbb/Config.in b/package/busybox/config/libbb/Config.in
index 1fc888630..c42a93bbb 100644
--- a/package/busybox/config/libbb/Config.in
+++ b/package/busybox/config/libbb/Config.in
@@ -151,6 +151,7 @@ config BUSYBOX_FEATURE_COPYBUF_KB
config BUSYBOX_MONOTONIC_SYSCALL
bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
time intervals (time, ping, traceroute etc need this).
diff --git a/package/busybox/config/loginutils/Config.in b/package/busybox/config/loginutils/Config.in
index 174f192a2..ab0e578d8 100644
--- a/package/busybox/config/loginutils/Config.in
+++ b/package/busybox/config/loginutils/Config.in
@@ -5,6 +5,18 @@
menu "Login/Password Management Utilities"
+config BUSYBOX_ADD_SHELL
+ bool "add-shell"
+ default y if BUSYBOX_DESKTOP
+ help
+ Add shells to /etc/shells.
+
+config BUSYBOX_REMOVE_SHELL
+ bool "remove-shell"
+ default y if BUSYBOX_DESKTOP
+ help
+ Remove shells from /etc/shells.
+
config BUSYBOX_FEATURE_SHADOWPASSWDS
bool "Support for shadow passwords"
default y
diff --git a/package/busybox/config/miscutils/Config.in b/package/busybox/config/miscutils/Config.in
index bb7fb2aa7..cbdcca9ce 100644
--- a/package/busybox/config/miscutils/Config.in
+++ b/package/busybox/config/miscutils/Config.in
@@ -5,9 +5,52 @@
menu "Miscellaneous Utilities"
+config BUSYBOX_CONSPY
+ bool "conspy"
+ default n
+ depends on BUSYBOX_PLATFORM_LINUX
+ help
+ A text-mode VNC like program for Linux virtual terminals.
+ example: conspy NUM shared access to console num
+ or conspy -nd NUM screenshot of console num
+ or conspy -cs NUM poor man's GNU screen like
+
+config BUSYBOX_NANDWRITE
+ bool "nandwrite"
+ default n
+ depends on BUSYBOX_PLATFORM_LINUX
+ depends on !ADK_PACKAGE_NAND
+ default y if ADK_TARGET_WITH_NAND
+ help
+ Write to the specified MTD device, with bad blocks awareness
+
+config BUSYBOX_NANDDUMP
+ bool "nanddump"
+ default n
+ depends on BUSYBOX_PLATFORM_LINUX
+ depends on !ADK_PACKAGE_NAND
+ default y if ADK_TARGET_WITH_NAND
+ help
+ Dump the content of raw NAND chip
+
+config BUSYBOX_UBIATTACH
+ bool "ubiattach"
+ default n
+ depends on BUSYBOX_PLATFORM_LINUX
+ help
+ Attach MTD device to an UBI device.
+
+config BUSYBOX_UBIDETACH
+ bool "ubidetach"
+ default n
+ depends on BUSYBOX_PLATFORM_LINUX
+ help
+ Detach MTD device from an UBI device.
+
config BUSYBOX_ADJTIMEX
bool "adjtimex"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Adjtimex reads and optionally sets adjustment parameters for
the Linux clock adjustment algorithm.
@@ -19,9 +62,24 @@ config BUSYBOX_BBCONFIG
The bbconfig applet will print the config file with which
busybox was built.
+config BUSYBOX_FEATURE_COMPRESS_BBCONFIG
+ bool "Compress bbconfig data"
+ default y
+ depends on BUSYBOX_BBCONFIG
+ help
+ Store bbconfig data in compressed form, uncompress them on-the-fly
+ before output.
+
+ If you have a really tiny busybox with few applets enabled (and
+ bunzip2 isn't one of them), the overhead of the decompressor might
+ be noticeable. Also, if you run executables directly from ROM
+ and have very little memory, this might not be a win. Otherwise,
+ you probably want this.
+
config BUSYBOX_BEEP
bool "beep"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The beep applets beeps in a given freq/Hz.
@@ -178,6 +236,7 @@ config BUSYBOX_FEATURE_DC_LIBM
config BUSYBOX_DEVFSD
bool "devfsd (obsolete)"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_FEATURE_SYSLOG
help
This is deprecated and should NOT be used anymore.
@@ -221,6 +280,7 @@ config BUSYBOX_DEVFSD_VERBOSE
config BUSYBOX_FEATURE_DEVFS
bool "Use devfs names for all devices (obsolete)"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This is obsolete and should NOT be used anymore.
Use linux >= 2.6 (optionally with hotplug) and mdev instead!
@@ -240,6 +300,7 @@ config BUSYBOX_DEVMEM
config BUSYBOX_EJECT
bool "eject"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Used to eject cdroms. (defaults to /dev/cdrom)
@@ -254,6 +315,7 @@ config BUSYBOX_FEATURE_EJECT_SCSI
config BUSYBOX_FBSPLASH
bool "fbsplash"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Shows splash image and progress bar on framebuffer device.
Can be used during boot phase of an embedded device. ~2kb.
@@ -267,7 +329,7 @@ config BUSYBOX_FBSPLASH
-i path_to_cfg_file (can be "-" for stdin)
-f path_to_fifo (can be "-" for stdin)
- if you want to run it only in presence of kernel parameter:
- grep -q "fbsplash=on" </proc/cmdline && BUSYBOX_setsid fbsplash [params] &
+ grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] &
- commands for fifo:
"NN" (ASCII decimal number) - percentage to show on progress bar
"exit" - well you guessed it
@@ -303,6 +365,7 @@ config BUSYBOX_FLASH_ERASEALL
config BUSYBOX_IONICE
bool "ionice"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Set/set program io scheduling class and priority
Requires kernel >= 2.6.13
@@ -324,7 +387,7 @@ config BUSYBOX_LAST
choice
prompt "Choose last implementation"
depends on BUSYBOX_LAST
- default FEATURE_LAST_SMALL
+ default BUSYBOX_FEATURE_LAST_SMALL
config BUSYBOX_FEATURE_LAST_SMALL
bool "small"
@@ -409,7 +472,8 @@ config BUSYBOX_FEATURE_LESS_LINENUMS
config BUSYBOX_HDPARM
bool "hdparm"
depends on !ADK_PACKAGE_HDPARM
- default n
+ default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Get/Set hard drive parameters. Primarily intended for ATA
drives. Adds about 13k (or around 30k if you enable the
@@ -471,15 +535,15 @@ config BUSYBOX_MAKEDEVS
help
'makedevs' is a utility used to create a batch of devices with
one command.
- .
+
There are two choices for command line behaviour, the interface
as used by LEAF/Linux Router Project, or a device table file.
- .
+
'leaf' is traditionally what busybox follows, it allows multiple
devices of a particluar type to be created per command.
e.g. /dev/hda[0-9]
Device properties are passed as command line arguments.
- .
+
'table' reads device properties from a file or stdin, allowing
a batch of unrelated devices to be made with one command.
User/group names are allowed as an alternative to uid/gid.
@@ -526,6 +590,7 @@ config BUSYBOX_MT
config BUSYBOX_RAIDAUTORUN
bool "raidautorun"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
raidautorun tells the kernel md driver to
search and start RAID arrays.
@@ -533,7 +598,7 @@ config BUSYBOX_RAIDAUTORUN
config BUSYBOX_READAHEAD
bool "readahead"
default n
- depends on BUSYBOX_LFS
+ depends on BUSYBOX_LFS && BUSYBOX_PLATFORM_LINUX
help
Preload the files listed on the command line into RAM cache so that
subsequent reads on these files will not block on disk I/O.
@@ -548,15 +613,16 @@ config BUSYBOX_READAHEAD
run this applet as a background job.
config BUSYBOX_RFKILL
- bool "rfkill"
- default y # doesn't build on Ubuntu 9.04
- help
- Enable/disable wireless devices.
+ bool "rfkill"
+ default y # doesn't build on Ubuntu 9.04
+ depends on BUSYBOX_PLATFORM_LINUX
+ help
+ Enable/disable wireless devices.
- rfkill list : list all wireless devices
- rfkill list bluetooth : list all bluetooth devices
- rfkill list 1 : list device corresponding to the given index
- rfkill block|unblock wlan : block/unblock all wlan(wifi) devices
+ rfkill list : list all wireless devices
+ rfkill list bluetooth : list all bluetooth devices
+ rfkill list 1 : list device corresponding to the given index
+ rfkill block|unblock wlan : block/unblock all wlan(wifi) devices
config BUSYBOX_RUNLEVEL
bool "runlevel"
@@ -642,6 +708,7 @@ config BUSYBOX_WATCHDOG
bool "watchdog"
depends on !ADK_PACKAGE_WATCHDOG
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
The watchdog utility is used with hardware or software watchdog
device drivers. It opens the specified watchdog device special file
diff --git a/package/busybox/config/modutils/Config.in b/package/busybox/config/modutils/Config.in
index 2e23c7b84..31ffe8156 100644
--- a/package/busybox/config/modutils/Config.in
+++ b/package/busybox/config/modutils/Config.in
@@ -4,6 +4,13 @@
#
menu "Linux Module Utilities"
+depends on BUSYBOX_PLATFORM_LINUX
+
+config BUSYBOX_MODINFO
+ bool "modinfo"
+ default y
+ help
+ Show information about a Linux Kernel module
config BUSYBOX_MODPROBE_SMALL
bool "Simplified modutils"
diff --git a/package/busybox/config/networking/Config.in b/package/busybox/config/networking/Config.in
index 27409a8ad..b9211f4fa 100644
--- a/package/busybox/config/networking/Config.in
+++ b/package/busybox/config/networking/Config.in
@@ -49,19 +49,22 @@ config BUSYBOX_VERBOSE_RESOLUTION_ERRORS
config BUSYBOX_ARP
bool "arp"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Manipulate the system ARP cache.
config BUSYBOX_ARPING
bool "arping"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Ping hosts by ARP packets.
config BUSYBOX_BRCTL
bool "brctl"
depends on !ADK_PACKAGE_BRIDGE_UTILS
- default n
+ default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Manage ethernet bridges.
Supports addbr/delbr and addif/delif.
@@ -95,6 +98,7 @@ config BUSYBOX_ETHER_WAKE
bool "ether-wake"
depends on !ADK_PACKAGE_ETHER_WAKE
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Send a magic packet to wake up sleeping machines.
@@ -124,8 +128,8 @@ config BUSYBOX_FEATURE_FTPD_ACCEPT_BROKEN_LIST
default y
depends on BUSYBOX_FTPD
help
- Some ftp-clients (among them KDE's Konqueror) issue illegal
- "LIST -la" requests. This option works around those problems.
+ Some ftp clients (among them KDE's Konqueror) issue illegal
+ "LIST -l" requests. This option works around such problems.
It might prevent you from listing files starting with "-" and
it increases the code size by ~40 bytes.
Most other ftp servers seem to behave similar to this.
@@ -266,9 +270,18 @@ config BUSYBOX_FEATURE_HTTPD_PROXY
Then a request to /url/myfile will be forwarded to
http://hostname[:port]/new/path/myfile.
+config BUSYBOX_FEATURE_HTTPD_GZIP
+ bool "Support for GZIP content encoding"
+ default y
+ depends on BUSYBOX_HTTPD
+ help
+ Makes httpd send files using GZIP content encoding if the
+ client supports it and a pre-compressed <file>.gz exists.
+
config BUSYBOX_IFCONFIG
bool "ifconfig"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Ifconfig is used to configure the kernel-resident network interfaces.
@@ -316,6 +329,7 @@ config BUSYBOX_FEATURE_IFCONFIG_BROADCAST_PLUS
config BUSYBOX_IFENSLAVE
bool "ifenslave"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Userspace application to bind several interfaces
to a logical interface (use with kernel bonding driver).
@@ -323,6 +337,7 @@ config BUSYBOX_IFENSLAVE
config BUSYBOX_IFPLUGD
bool "ifplugd"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Network interface plug detection daemon.
@@ -364,7 +379,7 @@ config BUSYBOX_FEATURE_IFUPDOWN_IP
config BUSYBOX_FEATURE_IFUPDOWN_IP_BUILTIN
bool "Use busybox ip applet"
default y
- depends on BUSYBOX_FEATURE_IFUPDOWN_IP
+ depends on BUSYBOX_FEATURE_IFUPDOWN_IP && BUSYBOX_PLATFORM_LINUX
select BUSYBOX_IP
select BUSYBOX_FEATURE_IP_ADDRESS
select BUSYBOX_FEATURE_IP_LINK
@@ -484,6 +499,7 @@ config BUSYBOX_IP
bool "ip"
depends on !ADK_PACKAGE_IP
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
The "ip" applet is a TCP/IP interface configuration and routing
utility. You generally don't need "ip" to use busybox with
@@ -599,6 +615,7 @@ config BUSYBOX_FEATURE_IPCALC_LONG_OPTIONS
config BUSYBOX_NAMEIF
bool "nameif"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_FEATURE_SYSLOG
help
nameif is used to rename network interface by its MAC address.
@@ -624,11 +641,11 @@ config BUSYBOX_FEATURE_NAMEIF_EXTENDED
new_interface_name mac=00:80:C8:38:91:B5
new_interface_name 00:80:C8:38:91:B5
-config NBDCLIENT
- bool "nbd-client"
- default n
- help
- Network block device client
+config BUSYBOX_NBDCLIENT
+ bool "nbd-client"
+ default n
+ help
+ Network block device client
config BUSYBOX_NC
bool "nc"
@@ -653,9 +670,20 @@ config BUSYBOX_NC_EXTRA
making or receiving a successful connection), -i (delay interval for
lines sent), -w (timeout for initial connection).
+config BUSYBOX_NC_110_COMPAT
+ bool "Netcat 1.10 compatibility (+2.5k)"
+ default n # off specially for Rob
+ depends on BUSYBOX_NC
+ help
+ This option makes nc closely follow original nc-1.10.
+ The code is about 2.5k bigger. It enables
+ -s ADDR, -n, -u, -v, -o FILE, -z options, but loses
+ busybox-specific extensions: -f FILE and -ll.
+
config BUSYBOX_NETSTAT
bool "netstat"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
netstat prints information about the Linux networking subsystem.
@@ -684,6 +712,7 @@ config BUSYBOX_NSLOOKUP
config BUSYBOX_NTPD
bool "ntpd"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The NTP client/server daemon.
@@ -698,6 +727,7 @@ config BUSYBOX_FEATURE_NTPD_SERVER
config BUSYBOX_PING
bool "ping"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
elicit an ICMP ECHO_RESPONSE from a host or gateway.
@@ -726,12 +756,14 @@ config BUSYBOX_PSCAN
config BUSYBOX_ROUTE
bool "route"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Route displays or manipulates the kernel's IP routing tables.
config BUSYBOX_SLATTACH
bool "slattach"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
slattach is a small utility to attach network interfaces to serial
lines.
@@ -861,8 +893,11 @@ config BUSYBOX_TFTPD
In other words: it should be run from inetd in nowait mode,
or from udpsvd. Example: "udpsvd -E 0 69 tftpd DIR"
+comment "Common options for tftp/tftpd"
+ depends on BUSYBOX_TFTP || BUSYBOX_TFTPD
+
config BUSYBOX_FEATURE_TFTP_GET
- bool "Enable \"get\" command"
+ bool "Enable 'tftp get' and/or tftpd upload code"
default y
depends on BUSYBOX_TFTP || BUSYBOX_TFTPD
help
@@ -870,8 +905,11 @@ config BUSYBOX_FEATURE_TFTP_GET
a client to retrieve a file from a TFTP server.
Also enable upload support in tftpd, if tftpd is selected.
+ Note: this option does _not_ make tftpd capable of download
+ (the usual operation people need from it)!
+
config BUSYBOX_FEATURE_TFTP_PUT
- bool "Enable \"put\" command"
+ bool "Enable 'tftp put' and/or tftpd download code"
default y
depends on BUSYBOX_TFTP || BUSYBOX_TFTPD
help
@@ -905,6 +943,7 @@ config BUSYBOX_TFTP_DEBUG
config BUSYBOX_TRACEROUTE
bool "traceroute"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
Utility to trace the route of IP packets.
@@ -985,9 +1024,22 @@ config BUSYBOX_FEATURE_WGET_LONG_OPTIONS
help
Support long options for the wget applet.
+config BUSYBOX_FEATURE_WGET_TIMEOUT
+ bool "Enable read timeout option -T SEC"
+ default y
+ depends on BUSYBOX_WGET
+ help
+ Supports network read timeout for wget, so that wget will give
+ up and timeout when reading network data, through the -T command
+ line option. Currently only network data read timeout is
+ supported (i.e., timeout is not applied to the DNS nor TCP
+ connection initialization). When FEATURE_WGET_LONG_OPTIONS is
+ also enabled, the --timeout option will work in addition to -T.
+
config BUSYBOX_ZCIP
bool "zcip"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_FEATURE_SYSLOG
help
ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
@@ -1007,6 +1059,7 @@ config BUSYBOX_TCPSVD
config BUSYBOX_TUNCTL
bool "tunctl"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
tunctl creates or deletes tun devices.
diff --git a/package/busybox/config/networking/udhcp/Config.in b/package/busybox/config/networking/udhcp/Config.in
index 5b2586f66..2ace4737b 100644
--- a/package/busybox/config/networking/udhcp/Config.in
+++ b/package/busybox/config/networking/udhcp/Config.in
@@ -6,6 +6,7 @@
config BUSYBOX_UDHCPD
bool "udhcp server (udhcpd)"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
udhcpd is a DHCP server geared primarily toward embedded systems,
while striving to be fully functional and RFC compliant.
@@ -49,6 +50,7 @@ config BUSYBOX_DHCPD_LEASES_FILE
config BUSYBOX_UDHCPC
bool "udhcp client (udhcpc)"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
udhcpc is a DHCP client geared primarily toward embedded systems,
while striving to be fully functional and RFC compliant.
@@ -92,7 +94,8 @@ config BUSYBOX_FEATURE_UDHCP_RFC3397
depends on BUSYBOX_UDHCPD || BUSYBOX_UDHCPC
help
If selected, both client and server will support passing of domain
- search lists via option 119, specified in RFC3397.
+ search lists via option 119, specified in RFC 3397,
+ and SIP servers option 120, specified in RFC 3361.
config BUSYBOX_UDHCPC_DEFAULT_SCRIPT
string "Absolute path to config script"
diff --git a/package/busybox/config/procps/Config.in b/package/busybox/config/procps/Config.in
index e9c14ec66..da3f280c7 100644
--- a/package/busybox/config/procps/Config.in
+++ b/package/busybox/config/procps/Config.in
@@ -8,6 +8,7 @@ menu "Process Utilities"
config BUSYBOX_FREE
bool "free"
default n
+ depends on BUSYBOX_PLATFORM_LINUX #sysinfo()
help
free displays the total amount of free and used physical and swap
memory in the system, as well as the buffers used by the kernel.
@@ -21,6 +22,13 @@ config BUSYBOX_FUSER
file open. fuser can also list all PIDs that have a given network
(TCP or UDP) port open.
+config BUSYBOX_IOSTAT
+ bool "iostat"
+ default n
+ depends on !ADK_PACKAGE_SYSSTAT
+ help
+ Report CPU and I/O statistics
+
config BUSYBOX_KILL
bool "kill"
default y
@@ -44,22 +52,11 @@ config BUSYBOX_KILLALL5
depends on BUSYBOX_KILL
config BUSYBOX_MPSTAT
- bool "mpstat"
- default n
- help
- Per-processor statistics
-
-config BUSYBOX_PMAP
- bool "pmap"
- default n
- help
- Display processes' memory mappings.
-
-config BUSYBOX_POWERTOP
- bool "powertop"
- default n
- help
- Analyze power consumption on Intel-based laptops
+ bool "mpstat"
+ default n
+ depends on !ADK_PACKAGE_SYSSTAT
+ help
+ Per-processor statistics
config BUSYBOX_NMETER
bool "nmeter"
@@ -102,6 +99,18 @@ config BUSYBOX_PKILL
help
Send signals to processes by name.
+config BUSYBOX_PMAP
+ bool "pmap"
+ default n
+ help
+ Display processes' memory mappings.
+
+config BUSYBOX_POWERTOP
+ bool "powertop"
+ default n
+ help
+ Analyze power consumption on Intel-based laptops
+
config BUSYBOX_PS
bool "ps"
default y
@@ -120,7 +129,7 @@ config BUSYBOX_FEATURE_PS_WIDE
config BUSYBOX_FEATURE_PS_TIME
bool "Enable time and elapsed time output"
default n
- depends on BUSYBOX_PS && BUSYBOX_DESKTOP
+ depends on BUSYBOX_PS && BUSYBOX_DESKTOP && BUSYBOX_PLATFORM_LINUX #sysinfo()
help
Support -o time and -o etime output specifiers.
@@ -146,6 +155,13 @@ config BUSYBOX_RENICE
Renice alters the scheduling priority of one or more running
processes.
+config BUSYBOX_SMEMCAP
+ bool "smemcap"
+ default n
+ help
+ smemcap is a tool for capturing process data for smem,
+ a memory usage statistic tool.
+
config BUSYBOX_BB_SYSCTL
bool "sysctl"
default y
@@ -216,6 +232,7 @@ config BUSYBOX_FEATURE_SHOW_THREADS
config BUSYBOX_UPTIME
bool "uptime"
default y
+ depends on BUSYBOX_PLATFORM_LINUX #sysinfo()
help
uptime gives a one line display of the current time, how long
the system has been running, how many users are currently logged
diff --git a/package/busybox/config/runit/Config.in b/package/busybox/config/runit/Config.in
index d228df397..3c9c2dd29 100644
--- a/package/busybox/config/runit/Config.in
+++ b/package/busybox/config/runit/Config.in
@@ -61,22 +61,26 @@ config BUSYBOX_CHPST
config BUSYBOX_SETUIDGID
bool "setuidgid"
+ default n
help
Sets soft resource limits as specified by options
config BUSYBOX_ENVUIDGID
bool "envuidgid"
+ default n
help
Sets $UID to account's uid and $GID to account's gid
config BUSYBOX_ENVDIR
bool "envdir"
+ default n
help
Sets various environment variables as specified by files
in the given directory
config BUSYBOX_SOFTLIMIT
bool "softlimit"
+ default n
help
Sets soft resource limits as specified by options
diff --git a/package/busybox/config/shell/Config.in b/package/busybox/config/shell/Config.in
index 6535f3eb6..674aaabbe 100644
--- a/package/busybox/config/shell/Config.in
+++ b/package/busybox/config/shell/Config.in
@@ -6,7 +6,7 @@
menu "Shells"
choice
- prompt "Choose your default shell"
+ prompt "Choose which shell is aliased to 'sh' name"
default FEATURE_SH_IS_ASH
help
Choose a shell. The ash shell is the most bash compatible
@@ -21,15 +21,38 @@ config BUSYBOX_FEATURE_SH_IS_HUSH
select BUSYBOX_HUSH
bool "hush"
-####config FEATURE_SH_IS_LASH
-#### select LASH
-#### bool "lash"
+config BUSYBOX_FEATURE_SH_IS_NONE
+ bool "none"
-####config FEATURE_SH_IS_MSH
-#### select MSH
-#### bool "msh"
+endchoice
-config BUSYBOX_FEATURE_SH_IS_NONE
+choice
+ prompt "Choose which shell is aliased to 'bash' name"
+ default BUSYBOX_FEATURE_BASH_IS_NONE
+ help
+ Choose which shell you want to be executed by 'bash' alias.
+ The ash shell is the most bash compatible and full featured one.
+
+ Note that selecting this option does not switch on any bash
+ compatibility code. It merely makes it possible to install
+ /bin/bash (sym)link and run scripts which start with
+ #!/bin/bash line.
+
+ Many systems use it in scripts which use bash-specific features,
+ even simple ones like $RANDOM. Without this option, busybox
+ can't be used for running them because it won't recongnize
+ "bash" as a supported applet name.
+
+config BUSYBOX_FEATURE_BASH_IS_ASH
+ depends on BUSYBOX_ASH
+ bool "ash"
+ depends on !BUSYBOX_NOMMU
+
+config BUSYBOX_FEATURE_BASH_IS_HUSH
+ depends on BUSYBOX_HUSH
+ bool "hush"
+
+config BUSYBOX_FEATURE_BASH_IS_NONE
bool "none"
endchoice
@@ -141,15 +164,15 @@ config BUSYBOX_HUSH
bool "hush"
default n
help
- hush is a small shell (22k). It handles the normal flow control
+ hush is a small shell (25k). It handles the normal flow control
constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
case/esac. Redirections, here documents, $((arithmetic))
and functions are supported.
It will compile and work on no-mmu systems.
- It does not handle select, aliases, brace expansion,
- tilde expansion, &>file and >&file redirection of stdout+stderr.
+ It does not handle select, aliases, tilde expansion,
+ &>file and >&file redirection of stdout+stderr.
config BUSYBOX_HUSH_BASH_COMPAT
bool "bash-compatible extensions"
@@ -158,6 +181,13 @@ config BUSYBOX_HUSH_BASH_COMPAT
help
Enable bash-compatible extensions.
+config BUSYBOX_HUSH_BRACE_EXPANSION
+ bool "Brace expansion"
+ default y
+ depends on BUSYBOX_HUSH_BASH_COMPAT
+ help
+ Enable {abc,def} extension.
+
config BUSYBOX_HUSH_HELP
bool "help builtin"
default n
@@ -175,6 +205,13 @@ config BUSYBOX_HUSH_INTERACTIVE
from stdin just like a shell script from a file.
No prompt, no PS1/PS2 magic shell variables.
+config BUSYBOX_HUSH_SAVEHISTORY
+ bool "Save command history to .hush_history"
+ default y
+ depends on BUSYBOX_HUSH_INTERACTIVE && BUSYBOX_FEATURE_EDITING_SAVEHISTORY
+ help
+ Enable history saving in hush.
+
config BUSYBOX_HUSH_JOB
bool "Job control"
default n
@@ -229,11 +266,11 @@ config BUSYBOX_HUSH_LOCAL
Enable support for local variables in functions.
config BUSYBOX_HUSH_EXPORT_N
- bool "Support export '-n' option"
+ bool "Support 'export -n' option"
default n
depends on BUSYBOX_HUSH
help
- Enable support for export '-n' option in hush. It is a bash extension.
+ export -n unexports variables. It is a bash extension.
config BUSYBOX_HUSH_RANDOM_SUPPORT
bool "Pseudorandom generator and $RANDOM variable"
@@ -243,27 +280,20 @@ config BUSYBOX_HUSH_RANDOM_SUPPORT
Enable pseudorandom generator and dynamic variable "$RANDOM".
Each read of "$RANDOM" will generate a new pseudorandom value.
-config BUSYBOX_LASH
- bool "lash (deprecated: aliased to hush)"
- default n
- select BUSYBOX_HUSH
+config BUSYBOX_HUSH_MODE_X
+ bool "Support 'hush -x' option and 'set -x' command"
+ default y
+ depends on BUSYBOX_HUSH
help
- lash is deprecated and will be removed, please migrate to hush.
+ This instructs hush to print commands before execution.
+ Adds ~300 bytes.
config BUSYBOX_MSH
- bool "msh (deprecated: please use hush)"
+ bool "msh (deprecated: aliased to hush)"
default n
select BUSYBOX_HUSH
help
msh is deprecated and will be removed, please migrate to hush.
- If there is a feature msh has but hush does not, please let us know.
-
-# The minix shell (adds just 30k) is quite complete and handles things
-# like for/do/done, case/esac and all the things you expect a Bourne
-# shell to do. It is not always pedantically correct about Bourne
-# shell grammar (try running the shell testscript "tests/sh.testcases"
-# on it and compare vs bash) but for most things it works quite well.
-# It uses only vfork, so it can be used on uClinux systems.
config BUSYBOX_SH_MATH_SUPPORT
@@ -292,7 +322,7 @@ config BUSYBOX_FEATURE_SH_EXTRA_QUIET
config BUSYBOX_FEATURE_SH_STANDALONE
bool "Standalone shell"
default n
- depends on (BUSYBOX_MSH || BUSYBOX_LASH || BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
+ depends on (BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
help
This option causes busybox shells to use busybox applets
in preference to executables in the PATH whenever possible. For
@@ -325,7 +355,7 @@ config BUSYBOX_FEATURE_SH_STANDALONE
config BUSYBOX_FEATURE_SH_NOFORK
bool "Run 'nofork' applets directly"
default n
- depends on (BUSYBOX_MSH || BUSYBOX_LASH || BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
+ depends on (BUSYBOX_HUSH || BUSYBOX_ASH) && BUSYBOX_FEATURE_PREFER_APPLETS
help
This option causes busybox shells [currently only ash]
to not execute typical fork/exec/wait sequence, but call <applet>_main
@@ -354,9 +384,25 @@ config BUSYBOX_CTTYHACK
It analyzes stdin with various ioctls, trying to determine whether
it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
If it detects one, it closes stdin/out/err and reopens that device.
- Then it executes given program. Usage example for /etc/inittab
- (for busybox init):
+ Then it executes given program. Opening the device will make
+ that device a controlling tty. This may require cttyhack
+ to be a session leader.
+
+ Example for /etc/inittab (for busybox init):
::respawn:/bin/cttyhack /bin/sh
+ Starting an interactive shell from boot shell script:
+
+ setsid cttyhack sh
+
+ Giving controlling tty to shell running with PID 1:
+
+ # exec cttyhack sh
+
+ Without cttyhack, you need to know exact tty name,
+ and do something like this:
+
+ # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
+
endmenu
diff --git a/package/busybox/config/sysklogd/Config.in b/package/busybox/config/sysklogd/Config.in
index 6bc26d977..fcefc0fe3 100644
--- a/package/busybox/config/sysklogd/Config.in
+++ b/package/busybox/config/sysklogd/Config.in
@@ -50,6 +50,16 @@ config BUSYBOX_FEATURE_SYSLOGD_DUP
Option -D instructs syslogd to drop consecutive messages
which are totally the same.
+config BUSYBOX_FEATURE_SYSLOGD_READ_BUFFER_SIZE
+ int "Read buffer size in bytes"
+ default 256
+ range 256 20000
+ depends on BUSYBOX_SYSLOGD
+ help
+ This option sets the size of the syslog read buffer.
+ Actual memory usage increases around five times the
+ change done here.
+
config BUSYBOX_FEATURE_IPC_SYSLOG
bool "Circular Buffer support"
default y
@@ -104,6 +114,22 @@ config BUSYBOX_KLOGD
you wish to record the messages produced by the kernel,
you should enable this option.
+config BUSYBOX_FEATURE_KLOGD_KLOGCTL
+ bool "Use the klogctl() interface"
+ default y
+ depends on BUSYBOX_KLOGD && BUSYBOX_PLATFORM_LINUX
+ help
+ The klogd applet supports two interfaces for reading
+ kernel messages. Linux provides the klogctl() interface
+ which allows reading messages from the kernel ring buffer
+ independently from the file system.
+
+ If you answer 'N' here, klogd will use the more portable
+ approach of reading them from /proc or a device node.
+ However, this method requires the file to be available.
+
+ If in doubt, say 'Y'.
+
config BUSYBOX_LOGGER
bool "logger"
default y
diff --git a/package/busybox/config/util-linux/Config.in b/package/busybox/config/util-linux/Config.in
index 8e78e2e27..e560a7b53 100644
--- a/package/busybox/config/util-linux/Config.in
+++ b/package/busybox/config/util-linux/Config.in
@@ -8,6 +8,7 @@ menu "Linux System Utilities"
config BUSYBOX_ACPID
bool "acpid"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
acpid listens to ACPI events coming either in textual form from
/proc/acpi/event (though it is marked deprecated it is still widely
@@ -27,9 +28,16 @@ config BUSYBOX_FEATURE_ACPID_COMPAT
help
Accept and ignore compatibility options -g -m -s -S -v.
+config BUSYBOX_BLOCKDEV
+ bool "blockdev"
+ default n
+ help
+ Performs some ioctls with block devices.
+
config BUSYBOX_BLKID
bool "blkid"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_VOLUMEID
help
Lists labels and UUIDs of all filesystems.
@@ -39,6 +47,7 @@ config BUSYBOX_BLKID
config BUSYBOX_DMESG
bool "dmesg"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
dmesg is used to examine or control the kernel ring buffer. When the
Linux kernel prints messages to the system log, they are stored in
@@ -72,6 +81,7 @@ config BUSYBOX_FEATURE_DMESG_PRETTY
config BUSYBOX_FBSET
bool "fbset"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
fbset is used to show or change the settings of a Linux frame buffer
device. The frame buffer device provides a simple and unique
@@ -100,6 +110,7 @@ config BUSYBOX_FEATURE_FBSET_READMODE
config BUSYBOX_FDFLUSH
bool "fdflush"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
fdflush is only needed when changing media on slightly-broken
removable media drives. It is used to make Linux believe that a
@@ -112,12 +123,14 @@ config BUSYBOX_FDFLUSH
config BUSYBOX_FDFORMAT
bool "fdformat"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
fdformat is used to low-level format a floppy disk.
config BUSYBOX_FDISK
bool "fdisk"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
The fdisk utility is used to divide hard disks into one or more
logical disks, which are generally called partitions. This utility
@@ -172,6 +185,14 @@ config BUSYBOX_FEATURE_OSF_LABEL
Enabling this option allows you to create or change BSD disklabels
and define and edit BSD disk slices.
+config BUSYBOX_FEATURE_GPT_LABEL
+ bool "Support GPT disklabels"
+ default n
+ depends on BUSYBOX_FDISK && BUSYBOX_FEATURE_FDISK_WRITABLE
+ help
+ Enabling this option allows you to view GUID Partition Table
+ disklabels.
+
config BUSYBOX_FEATURE_FDISK_ADVANCED
bool "Support expert mode"
default n
@@ -185,6 +206,7 @@ config BUSYBOX_FEATURE_FDISK_ADVANCED
config BUSYBOX_FINDFS
bool "findfs"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_VOLUMEID
help
Prints the name of a filesystem with given label or UUID.
@@ -200,6 +222,7 @@ config BUSYBOX_FLOCK
config BUSYBOX_FREERAMDISK
bool "freeramdisk"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Linux allows you to create ramdisks. This utility allows you to
delete them and completely free all memory that was used for the
@@ -222,12 +245,14 @@ config BUSYBOX_FSCK_MINIX
config BUSYBOX_MKFS_EXT2
bool "mkfs_ext2"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Utility to create EXT2 filesystems.
config BUSYBOX_MKFS_MINIX
bool "mkfs_minix"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The minix filesystem is a nice, small, compact, read-write filesystem
with little overhead. If you wish to be able to create minix
@@ -248,13 +273,16 @@ config BUSYBOX_FEATURE_MINIX2
config BUSYBOX_MKFS_REISER
bool "mkfs_reiser"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Utility to create ReiserFS filesystems.
+ Note: this applet needs a lot of testing and polishing.
config BUSYBOX_MKFS_VFAT
bool "mkfs_vfat"
default y if ADK_TARGET_WITH_MMC
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Utility to create FAT32 filesystems.
@@ -304,6 +332,7 @@ config BUSYBOX_HWCLOCK
bool "hwclock"
default y if ADK_TARGET_WITH_RTC
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The hwclock utility is used to read and set the hardware clock
on a system. This is primarily used to set the current time on
@@ -343,6 +372,7 @@ config BUSYBOX_IPCRM
config BUSYBOX_IPCS
bool "ipcs"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
select BUSYBOX_FEATURE_SUID
help
The ipcs utility is used to provide information on the currently
@@ -351,6 +381,7 @@ config BUSYBOX_IPCS
config BUSYBOX_LOSETUP
bool "losetup"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
losetup is used to associate or detach a loop device with a regular
file or block device, and to query the status of a loop device. This
@@ -358,7 +389,8 @@ config BUSYBOX_LOSETUP
config BUSYBOX_LSPCI
bool "lspci"
- default n
+ default y
+ #depends on BUSYBOX_PLATFORM_LINUX
depends on !ADK_PACKAGE_PCIUTILS
help
lspci is a utility for displaying information about PCI buses in the
@@ -368,7 +400,8 @@ config BUSYBOX_LSPCI
config BUSYBOX_LSUSB
bool "lsusb"
- default n
+ default y
+ #depends on BUSYBOX_PLATFORM_LINUX
depends on !ADK_PACKAGE_LSUSB
help
lsusb is a utility for displaying information about USB buses in the
@@ -379,6 +412,7 @@ config BUSYBOX_LSUSB
config BUSYBOX_MDEV
bool "mdev"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
mdev is a mini-udev implementation for dynamically creating device
nodes in the /dev directory.
@@ -466,7 +500,7 @@ config BUSYBOX_MORE
config BUSYBOX_FEATURE_USE_TERMIOS
bool "Use termios to manipulate the screen"
default y
- depends on BUSYBOX_MORE || BUSYBOX_TOP
+ depends on BUSYBOX_MORE || BUSYBOX_TOP || BUSYBOX_POWERTOP
help
This option allows utilities such as 'more' and 'top' to determine
the size of the screen. If you leave this disabled, your utilities
@@ -478,6 +512,9 @@ config BUSYBOX_VOLUMEID
bool #No description makes it a hidden option
default n
+menu "Filesystem/Volume identification"
+ depends on BUSYBOX_VOLUMEID
+
config BUSYBOX_FEATURE_VOLUMEID_EXT
bool "Ext filesystem"
default n
@@ -689,9 +726,12 @@ config BUSYBOX_FEATURE_VOLUMEID_LINUXRAID
help
TODO
+endmenu
+
config BUSYBOX_MOUNT
bool "mount"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
All files and filesystems in Unix are arranged into one big directory
tree. The 'mount' utility is used to graft a filesystem onto a
@@ -729,7 +769,7 @@ config BUSYBOX_FEATURE_MOUNT_HELPERS
The idea is to use such virtual filesystems in /etc/fstab.
config BUSYBOX_FEATURE_MOUNT_LABEL
- bool "Support specifiying devices by label or UUID"
+ bool "Support specifying devices by label or UUID"
default y
depends on BUSYBOX_MOUNT
select BUSYBOX_VOLUMEID
@@ -774,6 +814,7 @@ config BUSYBOX_FEATURE_MOUNT_FSTAB
config BUSYBOX_PIVOT_ROOT
bool "pivot_root"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The pivot_root utility swaps the mount points for the root filesystem
with some other mounted filesystem. This allows you to do all sorts
@@ -801,12 +842,20 @@ config BUSYBOX_RDEV
config BUSYBOX_READPROFILE
bool "readprofile"
default n
+ #depends on BUSYBOX_PLATFORM_LINUX
help
This allows you to parse /proc/profile for basic profiling.
+config BUSYBOX_REV
+ bool "rev"
+ default n
+ help
+ Reverse lines of a file or files.
+
config BUSYBOX_RTCWAKE
bool "rtcwake"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
Enter a system sleep state until specified wakeup time.
@@ -826,6 +875,7 @@ config BUSYBOX_SCRIPTREPLAY
config BUSYBOX_SETARCH
bool "setarch"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The linux32 utility is used to create a 32bit environment for the
specified program (usually a shell). It only makes sense to have
@@ -835,6 +885,7 @@ config BUSYBOX_SETARCH
config BUSYBOX_SWAPONOFF
bool "swaponoff"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
This option enables both the 'swapon' and the 'swapoff' utilities.
Once you have created some swap space using 'mkswap', you also need
@@ -853,6 +904,7 @@ config BUSYBOX_FEATURE_SWAPON_PRI
config BUSYBOX_SWITCH_ROOT
bool "switch_root"
default n
+ depends on BUSYBOX_PLATFORM_LINUX
help
The switch_root utility is used from initramfs to select a new
root device. Under initramfs, you have to use this instead of
@@ -872,6 +924,7 @@ config BUSYBOX_SWITCH_ROOT
config BUSYBOX_UMOUNT
bool "umount"
default y
+ depends on BUSYBOX_PLATFORM_LINUX
help
When you want to remove a mounted filesystem from its current mount
point, for example when you are shutting down the system, the
@@ -905,6 +958,18 @@ config BUSYBOX_FEATURE_MOUNT_LOOP
specify an offset or cryptographic options to the loopback device.
(If you don't want umount to free the loop device, use "umount -D".)
+config BUSYBOX_FEATURE_MOUNT_LOOP_CREATE
+ bool "Create new loopback devices if needed"
+ default y
+ depends on BUSYBOX_FEATURE_MOUNT_LOOP
+ help
+ Linux kernels >= 2.6.24 support unlimited loopback devices. They are
+ allocated for use when trying to use a loop device. The loop device
+ must however exist.
+
+ This feature lets mount to try to create next /dev/loopN device
+ if it does not find a free one.
+
config BUSYBOX_FEATURE_MTAB_SUPPORT
bool "Support for the old /etc/mtab file"
default n
@@ -922,7 +987,7 @@ config BUSYBOX_FEATURE_MTAB_SUPPORT
If you must use this, keep in mind it's inherently brittle (for
example a mount under chroot won't update it), can't handle modern
features like separate per-process filesystem namespaces, requires
- that your /etc directory be writeable, tends to get easily confused
+ that your /etc directory be writable, tends to get easily confused
by --bind or --move mounts, won't update if you rename a directory
that contains a mount point, and so on. (In brief: avoid.)
diff --git a/package/busybox/patches/003-defaults.patch b/package/busybox/patches/003-defaults.patch
index d65bd788d..0678cf908 100644
--- a/package/busybox/patches/003-defaults.patch
+++ b/package/busybox/patches/003-defaults.patch
@@ -1,7 +1,7 @@
-diff -Nur busybox-1.18.1.orig/Config.in busybox-1.18.1/Config.in
---- busybox-1.18.1.orig/Config.in 2010-12-21 05:31:04.000000000 +0100
-+++ busybox-1.18.1/Config.in 2010-12-25 23:20:18.000000000 +0100
-@@ -15,7 +15,7 @@
+diff -Naurp busybox-1.18.4/Config.in busybox-1.18.4.patched/Config.in
+--- busybox-1.18.4/Config.in 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/Config.in 2011-04-12 17:11:37.904996819 +0200
+@@ -15,7 +15,7 @@ menu "General Configuration"
config DESKTOP
bool "Enable options for full-blown desktop systems"
@@ -10,7 +10,7 @@ diff -Nur busybox-1.18.1.orig/Config.in busybox-1.18.1/Config.in
help
Enable options and features which are not essential.
Select this only if you plan to use busybox on full-blown
-@@ -32,7 +32,7 @@
+@@ -32,7 +32,7 @@ config EXTRA_COMPAT
config INCLUDE_SUSv2
bool "Enable obsolete features removed before SUSv3"
@@ -19,10 +19,10 @@ diff -Nur busybox-1.18.1.orig/Config.in busybox-1.18.1/Config.in
help
This option will enable backwards compatibility with SuSv2,
specifically, old-style numeric options ('command -1 <file>')
-diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config.src
---- busybox-1.18.1.orig/archival/Config.src 2010-12-20 01:41:26.000000000 +0100
-+++ busybox-1.18.1/archival/Config.src 2010-12-25 23:21:02.000000000 +0100
-@@ -79,7 +79,7 @@
+diff -Naurp busybox-1.18.4/archival/Config.src busybox-1.18.4.patched/archival/Config.src
+--- busybox-1.18.4/archival/Config.src 2011-04-12 17:11:13.204993284 +0200
++++ busybox-1.18.4.patched/archival/Config.src 2011-04-12 17:11:37.905996921 +0200
+@@ -79,7 +79,7 @@ config FEATURE_AR_CREATE
config BUNZIP2
bool "bunzip2"
@@ -31,7 +31,7 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
bunzip2 is a compression utility using the Burrows-Wheeler block
sorting text compression algorithm, and Huffman coding. Compression
-@@ -92,7 +92,7 @@
+@@ -92,7 +92,7 @@ config BUNZIP2
config BZIP2
bool "bzip2"
@@ -40,7 +40,7 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
bzip2 is a compression utility using the Burrows-Wheeler block
sorting text compression algorithm, and Huffman coding. Compression
-@@ -105,7 +105,7 @@
+@@ -105,7 +105,7 @@ config BZIP2
config CPIO
bool "cpio"
@@ -49,7 +49,7 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
cpio is an archival utility program used to create, modify, and
extract contents from archives.
-@@ -204,19 +204,19 @@
+@@ -210,19 +210,19 @@ config IPKG
config RPM2CPIO
bool "rpm2cpio"
@@ -72,7 +72,7 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
tar is an archiving program. It's commonly used with gzip to
create compressed archives. It's probably the most widely used
-@@ -323,7 +323,7 @@
+@@ -329,7 +329,7 @@ config UNCOMPRESS
config UNLZMA
bool "unlzma"
@@ -81,7 +81,7 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
unlzma is a compression utility using the Lempel-Ziv-Markov chain
compression algorithm, and range coding. Compression
-@@ -354,7 +354,7 @@
+@@ -360,7 +360,7 @@ config LZMA
config UNXZ
bool "unxz"
@@ -90,10 +90,10 @@ diff -Nur busybox-1.18.1.orig/archival/Config.src busybox-1.18.1/archival/Config
help
unxz is a unlzma successor.
-diff -Nur busybox-1.18.1.orig/editors/Config.src busybox-1.18.1/editors/Config.src
---- busybox-1.18.1.orig/editors/Config.src 2010-12-20 01:41:27.000000000 +0100
-+++ busybox-1.18.1/editors/Config.src 2010-12-25 23:21:57.000000000 +0100
-@@ -31,7 +31,7 @@
+diff -Naurp busybox-1.18.4/editors/Config.src busybox-1.18.4.patched/editors/Config.src
+--- busybox-1.18.4/editors/Config.src 2011-03-13 02:45:06.000000000 +0100
++++ busybox-1.18.4.patched/editors/Config.src 2011-04-12 17:11:37.905996921 +0200
+@@ -31,7 +31,7 @@ config CMP
config DIFF
bool "diff"
@@ -102,7 +102,7 @@ diff -Nur busybox-1.18.1.orig/editors/Config.src busybox-1.18.1/editors/Config.s
help
diff compares two files or directories and outputs the
differences between them in a form that can be given to
-@@ -62,7 +62,7 @@
+@@ -62,7 +62,7 @@ config ED
config SED
bool "sed"
@@ -111,9 +111,9 @@ diff -Nur busybox-1.18.1.orig/editors/Config.src busybox-1.18.1/editors/Config.s
help
sed is used to perform text transformations on a file
or input from a pipeline.
-diff -Nur busybox-1.18.1.orig/editors/patch.c busybox-1.18.1/editors/patch.c
---- busybox-1.18.1.orig/editors/patch.c 2010-12-21 05:29:45.000000000 +0100
-+++ busybox-1.18.1/editors/patch.c 2010-12-25 23:22:38.000000000 +0100
+diff -Naurp busybox-1.18.4/editors/patch.c busybox-1.18.4.patched/editors/patch.c
+--- busybox-1.18.4/editors/patch.c 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/editors/patch.c 2011-04-12 17:11:37.905996921 +0200
@@ -27,7 +27,7 @@
//config:config PATCH
@@ -123,10 +123,91 @@ diff -Nur busybox-1.18.1.orig/editors/patch.c busybox-1.18.1/editors/patch.c
//config: help
//config: Apply a unified diff formatted patch.
-diff -Nur busybox-1.18.1.orig/networking/Config.src busybox-1.18.1/networking/Config.src
---- busybox-1.18.1.orig/networking/Config.src 2010-12-21 05:29:45.000000000 +0100
-+++ busybox-1.18.1/networking/Config.src 2010-12-25 23:20:19.000000000 +0100
-@@ -986,7 +986,7 @@
+diff -Naurp busybox-1.18.4/findutils/find.c busybox-1.18.4.patched/findutils/find.c
+--- busybox-1.18.4/findutils/find.c 2011-04-12 17:11:22.887000207 +0200
++++ busybox-1.18.4.patched/findutils/find.c 2011-04-12 17:21:04.441000928 +0200
+@@ -59,7 +59,7 @@
+
+ //config:config FIND
+ //config: bool "find"
+-//config: default y
++//config: default n
+ //config: help
+ //config: find is used to search your system to find specified files.
+ //config:
+diff -Naurp busybox-1.18.4/findutils/grep.c busybox-1.18.4.patched/findutils/grep.c
+--- busybox-1.18.4/findutils/grep.c 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/findutils/grep.c 2011-04-12 17:21:09.828998153 +0200
+@@ -26,7 +26,7 @@
+
+ //config:config GREP
+ //config: bool "grep"
+-//config: default y
++//config: default n
+ //config: help
+ //config: grep is used to search files for a specified pattern.
+ //config:
+diff -Naurp busybox-1.18.4/miscutils/Config.src busybox-1.18.4.patched/miscutils/Config.src
+--- busybox-1.18.4/miscutils/Config.src 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/miscutils/Config.src 2011-04-12 17:19:11.872999667 +0200
+@@ -362,7 +362,7 @@ endchoice
+
+ config LESS
+ bool "less"
+- default y
++ default n
+ help
+ 'less' is a pager, meaning that it displays text files. It possesses
+ a wide array of features, and is an improvement over 'more'.
+@@ -428,7 +428,7 @@ config FEATURE_LESS_LINENUMS
+
+ config HDPARM
+ bool "hdparm"
+- default y
++ default n
+ depends on PLATFORM_LINUX
+ help
+ Get/Set hard drive parameters. Primarily intended for ATA
+@@ -663,7 +663,7 @@ config WALL
+
+ config WATCHDOG
+ bool "watchdog"
+- default y
++ default n
+ depends on PLATFORM_LINUX
+ help
+ The watchdog utility is used with hardware or software watchdog
+diff -Naurp busybox-1.18.4/networking/Config.src busybox-1.18.4.patched/networking/Config.src
+--- busybox-1.18.4/networking/Config.src 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/networking/Config.src 2011-04-12 17:16:48.182999877 +0200
+@@ -64,7 +64,7 @@ config ARPING
+
+ config BRCTL
+ bool "brctl"
+- default y
++ default n
+ depends on PLATFORM_LINUX
+ help
+ Manage ethernet bridges.
+@@ -97,7 +97,7 @@ config DNSD
+
+ config ETHER_WAKE
+ bool "ether-wake"
+- default y
++ default n
+ depends on PLATFORM_LINUX
+ help
+ Send a magic packet to wake up sleeping machines.
+@@ -497,7 +497,7 @@ config FEATURE_INETD_RPC
+
+ config IP
+ bool "ip"
+- default y
++ default n
+ depends on PLATFORM_LINUX
+ help
+ The "ip" applet is a TCP/IP interface configuration and routing
+@@ -986,7 +986,7 @@ config VCONFIG
config WGET
bool "wget"
@@ -135,3 +216,24 @@ diff -Nur busybox-1.18.1.orig/networking/Config.src busybox-1.18.1/networking/Co
help
wget is a utility for non-interactive download of files from HTTP,
HTTPS, and FTP servers.
+diff -Naurp busybox-1.18.4/util-linux/Config.src busybox-1.18.4.patched/util-linux/Config.src
+--- busybox-1.18.4/util-linux/Config.src 2011-03-13 02:45:40.000000000 +0100
++++ busybox-1.18.4.patched/util-linux/Config.src 2011-04-12 17:18:25.998990985 +0200
+@@ -378,7 +378,7 @@ config LOSETUP
+
+ config LSPCI
+ bool "lspci"
+- default y
++ default n
+ #depends on PLATFORM_LINUX
+ help
+ lspci is a utility for displaying information about PCI buses in the
+@@ -388,7 +388,7 @@ config LSPCI
+
+ config LSUSB
+ bool "lsusb"
+- default y
++ default n
+ #depends on PLATFORM_LINUX
+ help
+ lsusb is a utility for displaying information about USB buses in the
diff --git a/package/dbus-glib/Makefile b/package/dbus-glib/Makefile
index f998edca1..a937f5971 100644
--- a/package/dbus-glib/Makefile
+++ b/package/dbus-glib/Makefile
@@ -39,5 +39,8 @@ dbus-glib-dev-install:
$(INSTALL_DIR) $(IDIR_DBUS_GLIB_DEV)/usr/lib/pkgconfig
${CP} $(WRKINST)/usr/lib/pkgconfig/*.pc \
$(IDIR_DBUS_GLIB_DEV)/usr/lib/pkgconfig
+ $(INSTALL_DIR) $(IDIR_DBUS_GLIB_DEV)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/dbus-binding-tool \
+ $(IDIR_DBUS_GLIB_DEV)/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/dbus/patches/patch-configure b/package/dbus/patches/patch-configure
new file mode 100644
index 000000000..e5bce5132
--- /dev/null
+++ b/package/dbus/patches/patch-configure
@@ -0,0 +1,21 @@
+--- dbus-1.4.6.orig/configure 2011-02-17 21:06:57.000000000 +0100
++++ dbus-1.4.6/configure 2011-04-13 04:47:38.000000000 +0200
+@@ -19608,18 +19608,6 @@ if test "x$GCC" = "xyes"; then
+ ;;
+ esac
+
+- case " $CFLAGS " in
+- *[\ \ ]-fPIE[\ \ ]*) ;;
+- *) if test x$dbus_win = xno && cc_supports_flag -fPIE; then
+- PIE_CFLAGS="-fPIE"
+- if ld_supports_flag -z,relro; then
+- PIE_LDFLAGS="-pie -Wl,-z,relro"
+- else
+- PIE_LDFLAGS="-pie"
+- fi
+- fi
+- ;;
+- esac
+
+ ### Disabled warnings, and compiler flag overrides
+
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 4bd99944c..692e5c8af 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -72,5 +72,8 @@ glib-dev-install:
${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/pkgconfig
${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
${IDIR_GLIB_DEV}/usr/lib/pkgconfig
+ ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
+ ${IDIR_GLIB_DEV}/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libmpc/Makefile b/package/libmpc/Makefile
index 1d976b17e..4c92d1fb1 100644
--- a/package/libmpc/Makefile
+++ b/package/libmpc/Makefile
@@ -9,14 +9,19 @@ PKG_SECTION:= libs
PKG_BUILDDEP:= gmp mpfr
PKG_URL:= http://www.multiprecision.org/
-PKG_SUBPKGS:= LIBMPC
+PKG_SUBPKGS:= LIBMPC LIBMPC_DEV
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBMPC,libmpc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBMPC_DEV,libmpc-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-post-install:
+libmpc-install:
${INSTALL_DIR} ${IDIR_LIBMPC}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libmpc.so* ${IDIR_LIBMPC}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libmpc.so* ${IDIR_LIBMPC}/usr/lib
+
+libmpc-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBMPC_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBMPC_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/mpfr/Makefile b/package/mpfr/Makefile
index c350828a3..619988cc6 100644
--- a/package/mpfr/Makefile
+++ b/package/mpfr/Makefile
@@ -6,16 +6,24 @@ include ${TOPDIR}/toolchain/mpfr/Makefile.inc
PKG_DESCR:= multi precision library
PKG_SECTION:= libs
-PKG_URL:= http://www.mpfr.org
+PKG_URL:= http://www.mpfr.org/
+PKG_SUBPKGS:= MPFR MPFR_DEV
+PKGSC_MPFR_DEV:= devel
+PKGSD_MPFR_DEV:= mpfr headers
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,MPFR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,MPFR,mpfr,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,MPFR_DEV,mpfr-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MPFR_DEV},${PKGSC_MPFR_DEV}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
-post-install:
+mpfr-install:
${INSTALL_DIR} ${IDIR_MPFR}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libmpfr.so* ${IDIR_MPFR}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libmpfr.so* ${IDIR_MPFR}/usr/lib
+
+mpfr-dev-install:
+ ${INSTALL_DIR} ${IDIR_MPFR_DEV}/usr/include
+ $(CP) $(WRKINST)/usr/include/* ${IDIR_MPFR_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/openjdk/patches/disable-sizers.patch b/package/openjdk/patches/disable-sizers.patch
index b80ee0e69..e69de29bb 100644
--- a/package/openjdk/patches/disable-sizers.patch
+++ b/package/openjdk/patches/disable-sizers.patch
@@ -1,14 +0,0 @@
-diff -Nur w-openjdk-6.orig//openjdk-6/jdk/make/sun/xawt/Makefile w-openjdk-6/openjdk-6/jdk/make/sun/xawt/Makefile
---- w-openjdk-6.orig//openjdk-6/jdk/make/sun/xawt/Makefile 2011-02-28 17:06:12.000000000 +0100
-+++ w-openjdk-6/openjdk-6/jdk/make/sun/xawt/Makefile 2011-04-11 19:50:34.000000000 +0200
-@@ -237,7 +237,9 @@
- $(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
- $(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@)))
-
--$(SIZES): $(SIZERS)
-+#$(SIZES): $(SIZERS)
-+$(SIZES):
-+ @$(prep-target)
- @if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \
- $(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \
- $(CP) $(PREDEFINED_SIZES_TMPL) $@; \
diff --git a/package/zip/Makefile b/package/zip/Makefile
new file mode 100644
index 000000000..1cc0f8ec0
--- /dev/null
+++ b/package/zip/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= zip
+PKG_VERSION:= 3.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 7b74551e63f8ee6aab6fbc86676c0d37
+PKG_DESCR:= zip compression utility
+PKG_SECTION:= archive
+PKG_URL:= http://www.info-zip.org/Zip.html
+PKG_SITES:= ftp://ftp.info-zip.org/pub/infozip/src/
+
+WRKDIST= $(WRKDIR)/$(PKG_NAME)30
+DISTFILES:= $(PKG_NAME)30.tgz
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= minimal
+INSTALL_STYLE:= manual
+
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
+CONFIGURE_PROG:= unix/configure
+MAKE_FILE:= unix/Makefile
+ALL_TARGET:= generic_gcc
+
+zip-install:
+ ${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
+ ${CP} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/target/config/Config.in b/target/config/Config.in
index ff8668b35..265e339e8 100644
--- a/target/config/Config.in
+++ b/target/config/Config.in
@@ -176,10 +176,13 @@ config ADK_TARGET_CFLAGS
default "-mcpu=v8" if ADK_CPU_SPARC_V8
default "-m64 -mcpu=v9" if ADK_CPU_SPARC_V9
default "-march=loongson2f" if ADK_CPU_LOONGSON2F
+ default "-march=mips32" if ADK_CPU_MIPS32
+ default "-march=mips64" if ADK_CPU_MIPS64
default "-march=armv5te -mtune=arm926ej-s" if ADK_CPU_ARMV5
config ADK_TARGET_CMDLINE
string
+ default "console=tty no_auto_cmd" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default "console=ttyS0,9600" if ADK_TARGET_SYSTEM_FON_FON2100
default "console=ttyS0,38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
default "console=ttyS0,115200 console=tty0 geodewdt.nowayout=1" if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
@@ -286,6 +289,7 @@ default ADK_TARGET_ROOTFS_ARCHIVE
config ADK_TARGET_ROOTFS_INITRAMFS
bool "initramfs filesystem"
depends on \
+ ADK_LINUX_MIPS64EL || \
ADK_LINUX_PPC || \
ADK_LINUX_SPARC || \
ADK_LINUX_X86 || \
@@ -299,6 +303,7 @@ config ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
bool "initramfs filesystem included into kernel image"
select ADK_LINUX_INITRAMFS_BUILTIN
depends on \
+ ADK_LINUX_MIPS64EL || \
ADK_LINUX_PPC || \
ADK_LINUX_SPARC || \
ADK_LINUX_X86 || \
diff --git a/target/linux/Config.in b/target/linux/Config.in
index 6d482b1ab..cf4890059 100644
--- a/target/linux/Config.in
+++ b/target/linux/Config.in
@@ -17,6 +17,7 @@ source target/linux/config/Config.in.bluetooth
source target/linux/config/Config.in.watchdog
source target/linux/config/Config.in.leds
source target/linux/config/Config.in.misc
+source target/linux/config/Config.in.mips
source target/linux/config/Config.in.lib
source target/linux/config/Config.in.pm
source target/linux/config/Config.in.kvm
diff --git a/target/linux/config/Config.in.block b/target/linux/config/Config.in.block
index 1019477c1..a6f26dc71 100644
--- a/target/linux/config/Config.in.block
+++ b/target/linux/config/Config.in.block
@@ -97,6 +97,7 @@ config ADK_KERNEL_PATA_AMD
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default n
config ADK_KERNEL_PATA_SC1200
diff --git a/target/linux/config/Config.in.graphics b/target/linux/config/Config.in.graphics
index b6834005f..1aafdf85f 100644
--- a/target/linux/config/Config.in.graphics
+++ b/target/linux/config/Config.in.graphics
@@ -10,6 +10,13 @@ config ADK_KERNEL_VT_CONSOLE
default y if ADK_TARGET_WITH_VGA
default n
+config ADK_KERNEL_FONTS
+ boolean
+
+config ADK_KERNEL_FONT_8x16
+ boolean
+ select ADK_KERNEL_FONTS
+
config ADK_KERNEL_FB
boolean
@@ -48,6 +55,18 @@ config ADK_KERNEL_FB_GEODE_LX
help
Framebuffer support for ALIX boards with VGA.
+config ADK_KERNEL_FB_SM7XX
+ prompt "................................ Framebuffer support for Lemote Yeelong"
+ tristate
+ select ADK_KERNEL_FB
+ select ADK_KERNEL_FRAMEBUFFER_CONSOLE
+ select ADK_KERNEL_FONT_8x16
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
+ default n
+ depends on ADK_TARGET_SYSTEM_LEMOTE_YEELONG
+ help
+ Framebuffer support for Lemote Yeelong.
+
config ADK_HARDWARE_GRAPHICS_INTEL_I915
prompt "................................ Support for Intel graphic cards (AGP/DRM/KMS)"
boolean
diff --git a/target/linux/config/Config.in.input b/target/linux/config/Config.in.input
index 754cf7340..429c2ad73 100644
--- a/target/linux/config/Config.in.input
+++ b/target/linux/config/Config.in.input
@@ -5,6 +5,7 @@ config ADK_KERNEL_INPUT
boolean
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_SHUTTLE_SA76G2
default n
@@ -12,6 +13,7 @@ config ADK_KERNEL_INPUT_KEYBOARD
boolean
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_SHUTTLE_SA76G2
default n
@@ -19,6 +21,7 @@ config ADK_KERNEL_KEYBOARD_ATKBD
boolean
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_SHUTTLE_SA76G2
default n
@@ -26,6 +29,7 @@ config ADK_KERNEL_INPUT_MOUSE
boolean
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_SHUTTLE_SA76G2
default n
@@ -33,6 +37,7 @@ config ADK_KERNEL_INPUT_MOUSEDEV
boolean
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_SHUTTLE_SA76G2
default n
diff --git a/target/linux/config/Config.in.mips b/target/linux/config/Config.in.mips
new file mode 100644
index 000000000..0b0d1ea4f
--- /dev/null
+++ b/target/linux/config/Config.in.mips
@@ -0,0 +1,16 @@
+menu "MIPS devices support"
+
+config ADK_KERNEL_MIPS_PLATFORM_DEVICES
+ boolean
+
+config ADK_KERNEL_LEMOTE_YEELOONG2F
+ prompt ".................................. RTC support for PC CMOS"
+ boolean
+ select ADK_KERNEL_MIPS_PLATFORM_DEVICES
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
+ default n
+ depends on ADK_TARGET_SYSTEM_LEMOTE_YEELONG
+ help
+ Embedded controller suppport.
+
+endmenu
diff --git a/target/linux/config/Config.in.netdevice b/target/linux/config/Config.in.netdevice
index a0ec08247..bbd2990e9 100644
--- a/target/linux/config/Config.in.netdevice
+++ b/target/linux/config/Config.in.netdevice
@@ -52,6 +52,17 @@ config ADK_KERNEL_NATSEMI
default n
help
+config ADK_KERNEL_8139TOO
+ boolean
+ select ADK_KERNEL_NETDEVICES
+ select ADK_KERNEL_NET_ETHERNET
+ select ADK_KERNEL_NET_PCI
+ select ADK_KERNEL_MII
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
+ default n
+ help
+
+
config ADK_KERNEL_VIA_RHINE
boolean
select ADK_KERNEL_NETDEVICES
diff --git a/target/linux/config/Config.in.systems b/target/linux/config/Config.in.systems
index 3d933c5ed..d744e45a1 100644
--- a/target/linux/config/Config.in.systems
+++ b/target/linux/config/Config.in.systems
@@ -20,6 +20,13 @@ config ADK_KERNEL_ATHEROS_AR71XX
config ADK_KERNEL_AR71XX_MACH_RB4XX
boolean
+# mips64 systems
+config ADK_KERNEL_MACH_LOONGSON
+ boolean
+
+config ADK_KERNEL_LEMOTE_MACH2F
+ boolean
+
# arm systems
config ADK_KERNEL_ARCH_AT91
boolean
diff --git a/target/linux/config/Config.in.usb b/target/linux/config/Config.in.usb
index 52eb92864..e7905b531 100644
--- a/target/linux/config/Config.in.usb
+++ b/target/linux/config/Config.in.usb
@@ -21,6 +21,10 @@ config ADK_KERNEL_USB_UHCI_HCD
boolean
select ADK_PACKAGE_KMOD_USB_CONTROLLER
+config ADK_KERNEL_USB_OHCI_HCD
+ boolean
+ select ADK_PACKAGE_KMOD_USB_CONTROLLER
+
config ADK_KPACKAGE_KMOD_USB
prompt "kmod-usb......................... USB support"
tristate
@@ -30,6 +34,7 @@ config ADK_KPACKAGE_KMOD_USB
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default y if ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20
default n
help
@@ -69,6 +74,7 @@ config ADK_KPACKAGE_KMOD_USB_UHCI_HCD
depends on !ADK_KERNEL_USB_UHCI_HCD
depends on !ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default n
help
The Universal Host Controller Interface is a standard by Intel for
@@ -138,6 +144,7 @@ config ADK_KPACKAGE_KMOD_USB_EHCI_HCD
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D13
default y if ADK_TARGET_SYSTEM_IBM_X40
+ default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
default n
help
The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
diff --git a/target/linux/patches/2.6.37/usb-defaults-off.patch b/target/linux/patches/2.6.37/usb-defaults-off.patch
new file mode 100644
index 000000000..31367108a
--- /dev/null
+++ b/target/linux/patches/2.6.37/usb-defaults-off.patch
@@ -0,0 +1,32 @@
+diff -Nur linux-2.6.37.orig//drivers/usb/core/Kconfig linux-2.6.37/drivers/usb/core/Kconfig
+--- linux-2.6.37.orig//drivers/usb/core/Kconfig 2011-01-05 01:50:19.000000000 +0100
++++ linux-2.6.37/drivers/usb/core/Kconfig 2011-04-12 19:04:23.000000000 +0200
+@@ -59,7 +59,7 @@
+ config USB_DEVICE_CLASS
+ bool "USB device class-devices (DEPRECATED)"
+ depends on USB
+- default y
++ default n
+ ---help---
+ Userspace access to USB devices is granted by device-nodes exported
+ directly from the usbdev in sysfs. Old versions of the driver
+diff -Nur linux-2.6.37.orig//drivers/usb/host/Kconfig linux-2.6.37/drivers/usb/host/Kconfig
+--- linux-2.6.37.orig//drivers/usb/host/Kconfig 2011-01-05 01:50:19.000000000 +0100
++++ linux-2.6.37/drivers/usb/host/Kconfig 2011-04-12 19:04:48.000000000 +0200
+@@ -62,6 +62,7 @@
+ config USB_EHCI_ROOT_HUB_TT
+ bool "Root Hub Transaction Translators"
+ depends on USB_EHCI_HCD
++ default n
+ ---help---
+ Some EHCI chips have vendor-specific extensions to integrate
+ transaction translators, so that no OHCI or UHCI companion
+@@ -74,7 +75,7 @@
+ config USB_EHCI_TT_NEWSCHED
+ bool "Improved Transaction Translator scheduling"
+ depends on USB_EHCI_HCD
+- default y
++ default n
+ ---help---
+ This changes the periodic scheduling code to fill more of the low
+ and full speed bandwidth available from the Transaction Translator
diff --git a/target/linux/patches/2.6.37/vga-cons-default-off.patch b/target/linux/patches/2.6.37/vga-cons-default-off.patch
new file mode 100644
index 000000000..178aeeeb9
--- /dev/null
+++ b/target/linux/patches/2.6.37/vga-cons-default-off.patch
@@ -0,0 +1,12 @@
+diff -Nur linux-2.6.37.orig//drivers/video/console/Kconfig linux-2.6.37/drivers/video/console/Kconfig
+--- linux-2.6.37.orig//drivers/video/console/Kconfig 2011-01-05 01:50:19.000000000 +0100
++++ linux-2.6.37/drivers/video/console/Kconfig 2011-04-12 16:29:34.000000000 +0200
+@@ -7,7 +7,7 @@
+ config VGA_CONSOLE
+ bool "VGA text console" if EMBEDDED || !X86
+ depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
+- default y
++ default n
+ help
+ Saying Y here will allow you to use Linux in text mode through a
+ display that complies with the generic VGA standard. Virtually
diff --git a/target/mips64el/Makefile b/target/mips64el/Makefile
index 3c4a08f64..fa160b1ff 100644
--- a/target/mips64el/Makefile
+++ b/target/mips64el/Makefile
@@ -7,7 +7,11 @@ include $(TOPDIR)/mk/modules.mk
include $(TOPDIR)/mk/kernel-build.mk
include $(TOPDIR)/mk/image.mk
+ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
+KERNEL:=$(LINUX_DIR)/vmlinuz
+else
KERNEL:=$(LINUX_DIR)/vmlinux
+endif
ifeq ($(ADK_TARGET_FS),nfsroot)
imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
@@ -31,3 +35,31 @@ imageinstall: $(BIN_DIR)/$(INITRAMFS)
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
@echo 'qemu-system-mips64el -nographic -M malta -kernel $(BIN_DIR)/${TARGET_KERNEL} -initrd ${BIN_DIR}/${INITRAMFS}'
endif
+ifeq ($(ADK_TARGET_FS),usb)
+imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
+ @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
+ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
+ @echo "Startup the netbook and type del to enter PMON:"
+ @echo "PMON> load /dev/fs/ext2@usb0/boot/kernel"
+ @echo "PMON> g console=tty no_auto_cmd"
+endif
+endif
+ifeq ($(ADK_TARGET_FS),initramfs)
+imageinstall: $(BIN_DIR)/$(INITRAMFS)
+ @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
+ @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
+ @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64EL),y)
+ @echo "Start qemu with following command line:"
+ @echo 'qemu-system-mips64el -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
+endif
+endif
+ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
+imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
+ @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
+ @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64EL),y)
+ @echo "Start qemu with following command line:"
+ @echo 'qemu-system-mips64el -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
+endif
+endif
diff --git a/target/mips64el/kernel.config b/target/mips64el/kernel.config
index 40a48f745..9803b4212 100644
--- a/target/mips64el/kernel.config
+++ b/target/mips64el/kernel.config
@@ -1,14 +1,13 @@
#
# Automatically generated make config: don't edit
-# Linux kernel version: 2.6.36
-# Tue Jan 4 13:47:01 2011
+# Linux/mips 2.6.37 Kernel Configuration
+# Tue Apr 12 15:11:16 2011
#
CONFIG_MIPS=y
#
# Machine selection
#
-CONFIG_ZONE_DMA=y
# CONFIG_MIPS_ALCHEMY is not set
# CONFIG_AR7 is not set
# CONFIG_ATHEROS_AR71XX is not set
@@ -19,8 +18,8 @@ CONFIG_ZONE_DMA=y
# CONFIG_MACH_JAZZ is not set
# CONFIG_MACH_JZ4740 is not set
# CONFIG_LASAT is not set
-# CONFIG_MACH_LOONGSON is not set
-CONFIG_MIPS_MALTA=y
+CONFIG_MACH_LOONGSON=y
+# CONFIG_MIPS_MALTA is not set
# CONFIG_MIPS_SIM is not set
# CONFIG_NEC_MARKEINS is not set
# CONFIG_MACH_VR41XX is not set
@@ -51,9 +50,14 @@ CONFIG_MIPS_MALTA=y
# CONFIG_CAVIUM_OCTEON_SIMULATOR is not set
# CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set
# CONFIG_ALCHEMY_GPIO_INDIRECT is not set
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_CAVIUM_OCTEON_HELPER=y
+# CONFIG_LEMOTE_FULOONG2E is not set
+CONFIG_LEMOTE_MACH2F=y
+CONFIG_CS5536=y
+# CONFIG_CS5536_MFGPT is not set
CONFIG_LOONGSON_UART_BASE=y
-# CONFIG_LOONGSON_MC146818 is not set
+CONFIG_LOONGSON_MC146818=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
@@ -65,8 +69,6 @@ CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
-CONFIG_ARCH_MAY_HAVE_PC_FDC=y
-CONFIG_BOOT_RAW=y
CONFIG_CEVT_R4K_LIB=y
CONFIG_CEVT_R4K=y
CONFIG_CSRC_R4K_LIB=y
@@ -75,89 +77,68 @@ CONFIG_DMA_NONCOHERENT=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_SYS_HAS_EARLY_PRINTK=y
CONFIG_I8259=y
-CONFIG_MIPS_BONITO64=y
-CONFIG_MIPS_MSC=y
# CONFIG_MIPS_MACHINE is not set
# CONFIG_NO_IOPORT is not set
CONFIG_GENERIC_ISA_DMA=y
+CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN=y
CONFIG_ISA_DMA_API=y
-# CONFIG_CPU_BIG_ENDIAN is not set
+CONFIG_GENERIC_GPIO=y
CONFIG_CPU_LITTLE_ENDIAN=y
-CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
-CONFIG_SYS_SUPPORTS_HUGETLBFS=y
CONFIG_IRQ_CPU=y
-CONFIG_IRQ_GIC=y
-CONFIG_MIPS_BOARDS_GEN=y
-CONFIG_PCI_GT64XXX_PCI0=y
-CONFIG_SWAP_IO_SPACE=y
CONFIG_BOOT_ELF32=y
-CONFIG_MIPS_L1_CACHE_SHIFT=6
+CONFIG_MIPS_L1_CACHE_SHIFT=5
#
# CPU selection
#
-# CONFIG_CPU_MIPS32_R1 is not set
-# CONFIG_CPU_MIPS32_R2 is not set
-CONFIG_CPU_MIPS64_R1=y
-# CONFIG_CPU_NEVADA is not set
-# CONFIG_CPU_RM7000 is not set
+CONFIG_CPU_LOONGSON2F=y
+CONFIG_CPU_NOP_WORKAROUNDS=y
+CONFIG_CPU_JUMP_WORKAROUNDS=y
+CONFIG_CPU_LOONGSON2F_WORKAROUNDS=y
CONFIG_SYS_SUPPORTS_ZBOOT=y
-CONFIG_SYS_HAS_CPU_MIPS32_R1=y
-CONFIG_SYS_HAS_CPU_MIPS32_R2=y
-CONFIG_SYS_HAS_CPU_MIPS64_R1=y
-CONFIG_SYS_HAS_CPU_NEVADA=y
-CONFIG_SYS_HAS_CPU_RM7000=y
-CONFIG_CPU_MIPS64=y
-CONFIG_CPU_MIPSR1=y
+CONFIG_CPU_LOONGSON2=y
+CONFIG_SYS_HAS_CPU_LOONGSON2F=y
CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y
-CONFIG_CPU_SUPPORTS_HUGEPAGES=y
-CONFIG_HARDWARE_WATCHPOINTS=y
+CONFIG_CPU_SUPPORTS_CPUFREQ=y
+CONFIG_CPU_SUPPORTS_ADDRWINCFG=y
+CONFIG_CPU_SUPPORTS_UNCACHED_ACCELERATED=y
#
# Kernel type
#
# CONFIG_32BIT is not set
CONFIG_64BIT=y
-CONFIG_PAGE_SIZE_4KB=y
-# CONFIG_PAGE_SIZE_16KB is not set
+CONFIG_PAGE_SIZE_16KB=y
# CONFIG_PAGE_SIZE_64KB is not set
+CONFIG_FORCE_MAX_ZONEORDER=11
CONFIG_BOARD_SCACHE=y
-CONFIG_MIPS_CPU_SCACHE=y
-CONFIG_CPU_HAS_PREFETCH=y
CONFIG_MIPS_MT_DISABLED=y
-# CONFIG_MIPS_MT_SMP is not set
-CONFIG_SYS_SUPPORTS_MULTITHREADING=y
-# CONFIG_MIPS_VPE_LOADER is not set
-# CONFIG_MIPS_CMP is not set
# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
-# CONFIG_CPU_HAS_SMARTMIPS is not set
+CONFIG_CPU_HAS_WB=y
CONFIG_CPU_HAS_SYNC=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_CPU_SUPPORTS_HIGHMEM=y
-CONFIG_SYS_SUPPORTS_SMARTMIPS=y
-CONFIG_ARCH_FLATMEM_ENABLE=y
+CONFIG_SYS_SUPPORTS_HIGHMEM=y
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_SELECT_MEMORY_MODEL=y
-CONFIG_FLATMEM_MANUAL=y
-CONFIG_FLATMEM=y
-CONFIG_FLAT_NODE_MEM_MAP=y
+CONFIG_SPARSEMEM_MANUAL=y
+CONFIG_SPARSEMEM=y
+CONFIG_HAVE_MEMORY_PRESENT=y
+CONFIG_SPARSEMEM_STATIC=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_PHYS_ADDR_T_64BIT=y
-CONFIG_ZONE_DMA_FLAG=1
+CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
-CONFIG_SYS_SUPPORTS_MIPS_CMP=y
+CONFIG_NEED_PER_CPU_KM=y
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
-CONFIG_CPU_SUPPORTS_HR_SCHED_CLOCK=y
# CONFIG_HZ_48 is not set
CONFIG_HZ_100=y
# CONFIG_HZ_128 is not set
@@ -172,6 +153,7 @@ CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT is not set
# CONFIG_KEXEC is not set
# CONFIG_SECCOMP is not set
+# CONFIG_USE_OF is not set
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
@@ -201,22 +183,32 @@ CONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
+CONFIG_HAVE_GENERIC_HARDIRQS=y
+
+#
+# IRQ subsystem
+#
+CONFIG_GENERIC_HARDIRQS=y
+# CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED is not set
+# CONFIG_HAVE_SPARSE_IRQ is not set
+CONFIG_GENERIC_IRQ_PROBE=y
+# CONFIG_GENERIC_PENDING_IRQ is not set
+# CONFIG_AUTO_IRQ_AFFINITY is not set
+# CONFIG_IRQ_PER_CPU is not set
+# CONFIG_HARDIRQS_SW_RESEND is not set
#
# RCU Subsystem
#
-CONFIG_TREE_RCU=y
-# CONFIG_TINY_RCU is not set
-# CONFIG_RCU_TRACE is not set
-CONFIG_RCU_FANOUT=32
-# CONFIG_RCU_FANOUT_EXACT is not set
+CONFIG_TINY_RCU=y
+# CONFIG_PREEMPT_RCU is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_CGROUPS is not set
-# CONFIG_SYSFS_DEPRECATED_V2 is not set
-# CONFIG_RELAY is not set
# CONFIG_NAMESPACES is not set
+# CONFIG_SYSFS_DEPRECATED is not set
+# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
@@ -238,10 +230,14 @@ CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#
+# CONFIG_PERF_EVENTS is not set
+# CONFIG_PERF_COUNTERS is not set
# CONFIG_VM_EVENT_COUNTERS is not set
CONFIG_PCI_QUIRKS=y
# CONFIG_COMPAT_BRK is not set
@@ -254,6 +250,8 @@ CONFIG_HAVE_OPROFILE=y
CONFIG_HAVE_SYSCALL_WRAPPERS=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
+CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_DMA_API_DEBUG=y
#
# GCOV-based kernel profiling
@@ -269,7 +267,6 @@ CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_BLOCK is not set
-# CONFIG_DEFAULT_NOOP is not set
# CONFIG_INLINE_SPIN_TRYLOCK is not set
# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set
# CONFIG_INLINE_SPIN_LOCK is not set
@@ -310,8 +307,8 @@ CONFIG_PCI_DOMAINS=y
# CONFIG_ARCH_SUPPORTS_MSI is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
+CONFIG_ISA=y
CONFIG_MMU=y
-CONFIG_I8253=y
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set
@@ -329,7 +326,6 @@ CONFIG_BINFMT_ELF=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
# CONFIG_PM is not set
-CONFIG_MIPS_EXTERNAL_TIMER=y
CONFIG_NET=y
#
@@ -344,7 +340,7 @@ CONFIG_INET=y
CONFIG_IP_FIB_HASH=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
-# CONFIG_NET_IPGRE is not set
+# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
@@ -400,6 +396,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
+# CONFIG_CEPH_LIB is not set
#
# Device Drivers
@@ -418,6 +415,7 @@ CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
+# CONFIG_PNP is not set
# CONFIG_MISC_DEVICES is not set
CONFIG_HAVE_IDE=y
@@ -432,16 +430,7 @@ CONFIG_SCSI_MOD=y
#
# IEEE 1394 (FireWire) support
#
-
-#
-# You can enable one or both FireWire driver stacks.
-#
-
-#
-# The newer stack is recommended.
-#
# CONFIG_FIREWIRE is not set
-# CONFIG_IEEE1394 is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_I2O is not set
# CONFIG_NETDEVICES is not set
@@ -491,10 +480,14 @@ CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
+# CONFIG_TTY_PRINTK is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
+# CONFIG_RTC is not set
+# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
+# CONFIG_GPIO_DEVICE is not set
# CONFIG_TCG_TPM is not set
CONFIG_DEVPORT=y
# CONFIG_RAMOOPS is not set
@@ -505,6 +498,42 @@ CONFIG_DEVPORT=y
# PPS support
#
# CONFIG_PPS is not set
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+CONFIG_GPIOLIB=y
+# CONFIG_GPIO_SYSFS is not set
+
+#
+# Memory mapped GPIO expanders:
+#
+# CONFIG_GPIO_BASIC_MMIO is not set
+# CONFIG_GPIO_IT8761E is not set
+# CONFIG_GPIO_SCH is not set
+# CONFIG_GPIO_VX855 is not set
+
+#
+# I2C GPIO expanders:
+#
+
+#
+# PCI GPIO expanders:
+#
+# CONFIG_GPIO_CS5535 is not set
+# CONFIG_GPIO_BT8XX is not set
+# CONFIG_GPIO_LANGWELL is not set
+# CONFIG_GPIO_PCH is not set
+# CONFIG_GPIO_RDC321X is not set
+
+#
+# SPI GPIO expanders:
+#
+
+#
+# AC97 GPIO expanders:
+#
+
+#
+# MODULbus GPIO expanders:
+#
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
@@ -525,6 +554,7 @@ CONFIG_SSB_POSSIBLE=y
#
# CONFIG_VGA_ARB is not set
# CONFIG_DRM is not set
+# CONFIG_STUB_POULSBO is not set
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not set
@@ -542,13 +572,31 @@ CONFIG_SSB_POSSIBLE=y
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
-CONFIG_RTC_LIB=y
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
-# CONFIG_STAGING is not set
-# CONFIG_MIPS_PLATFORM_DEVICES is not set
+CONFIG_STAGING=y
+# CONFIG_STAGING_EXCLUDE_BUILD is not set
+# CONFIG_ECHO is not set
+# CONFIG_COMEDI is not set
+# CONFIG_POHMELFS is not set
+# CONFIG_AUTOFS_FS is not set
+# CONFIG_VME_BUS is not set
+# CONFIG_IIO is not set
+# CONFIG_BATMAN_ADV is not set
+# CONFIG_CRYSTALHD is not set
+
+#
+# Texas Instruments shared transport line discipline
+#
+# CONFIG_SMB_FS is not set
+CONFIG_MACH_NO_WESTBRIDGE=y
+# CONFIG_FT1000 is not set
+
+#
+# Speakup console speech
+#
#
# File systems
@@ -557,8 +605,9 @@ CONFIG_FILE_LOCKING=y
# CONFIG_FSNOTIFY is not set
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not set
+# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
-# CONFIG_AUTOFS_FS is not set
+# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
@@ -577,7 +626,6 @@ CONFIG_PROC_SYSCTL=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
-# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
@@ -600,16 +648,19 @@ CONFIG_MAGIC_SYSRQ=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_HARDLOCKUP_DETECTOR is not set
+CONFIG_BKL=y
+# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
-# CONFIG_RCU_CPU_STALL_DETECTOR is not set
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
+CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set
+# CONFIG_DMA_API_DEBUG is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
@@ -622,6 +673,7 @@ CONFIG_CMDLINE="init=/init"
# Security options
#
# CONFIG_KEYS is not set
+# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
@@ -646,6 +698,7 @@ CONFIG_GENERIC_FIND_LAST_BIT=y
CONFIG_CRC32=y
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
+CONFIG_DECOMPRESS_LZMA=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
diff --git a/target/mips64el/sys-available/lemote-yeelong b/target/mips64el/sys-available/lemote-yeelong
index b1a91491e..f868d3913 100644
--- a/target/mips64el/sys-available/lemote-yeelong
+++ b/target/mips64el/sys-available/lemote-yeelong
@@ -3,6 +3,9 @@ config ADK_TARGET_SYSTEM_LEMOTE_YEELONG
select ADK_mips64el
select ADK_lemote_yeelong
select ADK_LINUX_64
+ select ADK_CPU_LOONGSON2F
+ select ADK_KERNEL_MACH_LOONGSON
+ select ADK_KERNEL_LEMOTE_MACH2F
select ADK_TARGET_WITH_USB_BOOT
select ADK_TARGET_WITH_USB
select ADK_TARGET_WITH_PCI
diff --git a/target/mips64el/sys-available/qemu-mips64el b/target/mips64el/sys-available/qemu-mips64el
index 47818f392..bdc8ba76d 100644
--- a/target/mips64el/sys-available/qemu-mips64el
+++ b/target/mips64el/sys-available/qemu-mips64el
@@ -2,6 +2,7 @@ config ADK_TARGET_SYSTEM_QEMU_MIPS64EL
bool "Qemu Emulator"
select ADK_mips64el
select ADK_qemu_mips64el
+ select ADK_CPU_MIPS64
select ADK_LINUX_64
select ADK_KERNEL_MIPS_MALTA
select ADK_HARDWARE_QEMU
diff --git a/target/mips64el/sys-available/toolchain-mips64el b/target/mips64el/sys-available/toolchain-mips64el
index a403df0cd..c64972736 100644
--- a/target/mips64el/sys-available/toolchain-mips64el
+++ b/target/mips64el/sys-available/toolchain-mips64el
@@ -2,6 +2,7 @@ config ADK_TARGET_SYSTEM_TOOLCHAIN_MIPS64EL
bool "Toolchain only"
select ADK_mips64el
select ADK_toolchain_mips64el
+ select ADK_CPU_MIPS64
select ADK_TOOLCHAIN_ONLY
select ADK_LINUX_64
help
diff --git a/target/mips64el/target.mk b/target/mips64el/target.mk
index 2057c77fb..b45a49460 100644
--- a/target/mips64el/target.mk
+++ b/target/mips64el/target.mk
@@ -2,4 +2,4 @@ include $(TOPDIR)/mk/kernel-ver.mk
ARCH:= mips
CPU_ARCH:= mips64el
TARGET_OPTIMIZATION:= -Os -pipe
-TARGET_CFLAGS_ARCH:= -march=mips64 -mabi=64
+TARGET_CFLAGS_ARCH:= $(ADK_TARGET_CFLAGS) -mabi=64