diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-24 16:28:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-24 16:28:15 +0000 |
commit | f914a905566ed97b414c4475a22ff8a7a6f222a0 (patch) | |
tree | a51180fd3fd067bdba947fe6b9ba9797db0e2ba7 /nuttx | |
parent | ad65a046170ddff04e8257597197b3df758fa0a9 (diff) | |
download | px4-firmware-f914a905566ed97b414c4475a22ff8a7a6f222a0.tar.gz px4-firmware-f914a905566ed97b414c4475a22ff8a7a6f222a0.tar.bz2 px4-firmware-f914a905566ed97b414c4475a22ff8a7a6f222a0.zip |
apps/examples/nettest and poll: Complete Kconfig files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5556 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/drivers/Kconfig | 8 | ||||
-rw-r--r-- | nuttx/drivers/loop.c | 2 | ||||
-rw-r--r-- | nuttx/fs/Kconfig | 4 | ||||
-rw-r--r-- | nuttx/sched/Kconfig | 10 |
4 files changed, 13 insertions, 11 deletions
diff --git a/nuttx/drivers/Kconfig b/nuttx/drivers/Kconfig index 3ced01b58..f3d2c871a 100644 --- a/nuttx/drivers/Kconfig +++ b/nuttx/drivers/Kconfig @@ -3,6 +3,14 @@ # see misc/tools/kconfig-language.txt. # +config DISABLE_POLL + bool "Disable driver poll interfaces" + default n + ---help--- + The sizes of drivers can be reduced if the poll() method is not + supported. If you do not use poll() or select(), then you can + select DISABLE_POLL to reduce the code footprint by a small amount. + config DEV_NULL bool "Enable /dev/null" default y diff --git a/nuttx/drivers/loop.c b/nuttx/drivers/loop.c index b5b5d82d8..4744ae0dd 100644 --- a/nuttx/drivers/loop.c +++ b/nuttx/drivers/loop.c @@ -268,7 +268,7 @@ static ssize_t loop_write(FAR struct inode *inode, const unsigned char *buffer, size_t start_sector, unsigned int nsectors) { FAR struct loop_struct_s *dev; - size_t nbyteswritten; + ssize_t nbyteswritten; off_t offset; int ret; diff --git a/nuttx/fs/Kconfig b/nuttx/fs/Kconfig index dfbfda3fa..ab03a2b64 100644 --- a/nuttx/fs/Kconfig +++ b/nuttx/fs/Kconfig @@ -5,6 +5,10 @@ comment "File system configuration" +config DISABLE_MOUNTPOINT + bool "Disable support for mount points" + default n + source fs/mmap/Kconfig source fs/fat/Kconfig source fs/nfs/Kconfig diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig index fe9a88085..7ea301600 100644 --- a/nuttx/sched/Kconfig +++ b/nuttx/sched/Kconfig @@ -379,21 +379,11 @@ config DISABLE_MQUEUE depends on DISABLE_OS_API default n -config DISABLE_MOUNTPOINT - bool "Disable support for mount points" - depends on DISABLE_OS_API - default n - config DISABLE_ENVIRON bool "Disable environment variable support" depends on DISABLE_OS_API default n -config DISABLE_POLL - bool "Disable driver poll interfaces" - depends on DISABLE_OS_API - default n - if !DISABLE_SIGNALS comment "Signal Numbers" |