rtos/tinyara.git
6 years agoapps:webclient add handshake options to connect to webbrowser
kang [Mon, 4 Sep 2017 07:38:47 +0000 (16:38 +0900)]
apps:webclient add handshake options to connect to webbrowser

6 years agoFix webclient bug when it passes input parameters
kang [Mon, 4 Sep 2017 01:36:08 +0000 (10:36 +0900)]
Fix webclient bug when it passes input parameters

6 years agoMerge pull request #507 from sunghan-chang/typ02
btheosam [Mon, 4 Sep 2017 05:15:05 +0000 (14:15 +0900)]
Merge pull request #507 from sunghan-chang/typ02

apps/tools: fix typo at create_appspec.sh

6 years agoMerge pull request #506 from sunghan-chang/per
btheosam [Mon, 4 Sep 2017 05:14:33 +0000 (14:14 +0900)]
Merge pull request #506 from sunghan-chang/per

external/include: change a file permission to 644

6 years agoMerge pull request #511 from JeonginKim/master
sunghan-chang [Mon, 4 Sep 2017 05:02:03 +0000 (14:02 +0900)]
Merge pull request #511 from JeonginKim/master

Add 'since' at mqtt APIs for doxygen

6 years agoMerge pull request #510 from jeongchanKim/kernel_comment
sunghan-chang [Mon, 4 Sep 2017 04:20:16 +0000 (13:20 +0900)]
Merge pull request #510 from jeongchanKim/kernel_comment

Add comment for get_environ_ptr why this API is in stdlib.h

6 years agoAdd 'since' at mqtt APIs for doxygen
JeonginKim [Mon, 4 Sep 2017 04:17:23 +0000 (13:17 +0900)]
Add 'since' at mqtt APIs for doxygen

6 years agoAdd comment for get_environ_ptr why this API is in stdlib.h
jc_.kim [Mon, 4 Sep 2017 03:38:28 +0000 (12:38 +0900)]
Add comment for get_environ_ptr why this API is in stdlib.h

6 years agoMerge pull request #495 from jeongarmy/fix_doxygen
sunghan-chang [Mon, 4 Sep 2017 01:50:45 +0000 (10:50 +0900)]
Merge pull request #495 from jeongarmy/fix_doxygen

Modify since in doxygen for Tizen RT v1.1

6 years agoModify since in doxygen for Tizen RT v1.1
Ahreum Jeong [Fri, 1 Sep 2017 07:03:58 +0000 (16:03 +0900)]
Modify since in doxygen for Tizen RT v1.1
 - pthread.h, signal.h, stdio.h, stdlib.h, unistd.h, tinyara/math.h, ttrace.h

6 years agoMerge pull request #508 from sunghan-chang/appinit
Taejun-Kwon [Mon, 4 Sep 2017 01:34:34 +0000 (10:34 +0900)]
Merge pull request #508 from sunghan-chang/appinit

apps/init: bind a conditional

6 years agoapps/init: bind a conditional
sunghan [Fri, 1 Sep 2017 10:20:40 +0000 (19:20 +0900)]
apps/init: bind a conditional

When CONFIG_SYSTEM_PREAPP_INIT is disabled, init should not be compiled.
So, bind it at Make.defs of init folder

6 years agoapps/tools: fix typo at create_appspec.sh
sunghan [Mon, 4 Sep 2017 00:27:28 +0000 (09:27 +0900)]
apps/tools: fix typo at create_appspec.sh

DISCRIPTION -> DESCRIPTION

6 years agoexternal/include: change a file permission to 644
sunghan [Mon, 4 Sep 2017 00:30:49 +0000 (09:30 +0900)]
external/include: change a file permission to 644

6 years agoMerge pull request #505 from Samsung/pillip8282-patch-1
sunghan-chang [Mon, 4 Sep 2017 01:08:20 +0000 (10:08 +0900)]
Merge pull request #505 from Samsung/pillip8282-patch-1

Update README.md

6 years agoMerge pull request #504 from jeongchanKim/kernel_builtin
sunghan-chang [Mon, 4 Sep 2017 01:08:09 +0000 (10:08 +0900)]
Merge pull request #504 from jeongchanKim/kernel_builtin

Add FUNCNAME and change (APPNAME)_main to FUNCNAME for builtin apps

6 years agoUpdate README.md
pillip8282 [Mon, 4 Sep 2017 00:56:21 +0000 (09:56 +0900)]
Update README.md

Add a prerequisites section

6 years agoAdd FUNCNAME and change (APPNAME)_main to FUNCNAME for builtin apps
jc_.kim [Sun, 3 Sep 2017 23:06:04 +0000 (08:06 +0900)]
Add FUNCNAME and change (APPNAME)_main to FUNCNAME for builtin apps

6 years agoMerge pull request #468 from kolipka/fix_lwip_addres_reuse
pillip8282 [Sun, 3 Sep 2017 22:07:23 +0000 (07:07 +0900)]
Merge pull request #468 from kolipka/fix_lwip_addres_reuse

Fix LWIP address reuse issue

6 years agoFix LWIP address reuse issue
Konrad Lipner [Tue, 29 Aug 2017 12:31:45 +0000 (14:31 +0200)]
Fix LWIP address reuse issue

Fix #427

6 years agoMerge pull request #466 from kolipka/fix_lwip_error_map
pillip8282 [Sat, 2 Sep 2017 08:45:32 +0000 (17:45 +0900)]
Merge pull request #466 from kolipka/fix_lwip_error_map

Fix LWIP-socket invalid error mapping

6 years agoMerge pull request #467 from kolipka/fix_lwip_eof
pillip8282 [Sat, 2 Sep 2017 08:43:59 +0000 (17:43 +0900)]
Merge pull request #467 from kolipka/fix_lwip_eof

Fix LWIP EOF issue when one side closed connection

6 years agoMerge pull request #500 from btheosam/surrender
Taejun-Kwon [Sat, 2 Sep 2017 08:12:09 +0000 (17:12 +0900)]
Merge pull request #500 from btheosam/surrender

Remove non-artik code from board init and add additional pin macros

6 years agoRemove non-artik code from board init and add extra pin details
bsvt [Sat, 2 Sep 2017 07:59:35 +0000 (00:59 -0700)]
Remove non-artik code from board init and add extra pin details

6 years agoMerge pull request #499 from pillip8282/folder_modification
davidfather [Sat, 2 Sep 2017 07:28:46 +0000 (16:28 +0900)]
Merge pull request #499 from pillip8282/folder_modification

Folder modification

6 years agorename external/netlib as external/netutils
kang [Sat, 2 Sep 2017 07:25:37 +0000 (16:25 +0900)]
rename external/netlib as external/netutils

6 years agomove the netutils README file from 'netutils' to 'external/include'
kang [Sat, 2 Sep 2017 06:35:58 +0000 (15:35 +0900)]
move the netutils README file from 'netutils' to 'external/include'

6 years agochange a way to refer make.defs in external folders
kang [Sat, 2 Sep 2017 05:59:47 +0000 (14:59 +0900)]
change a way to refer make.defs in external folders

6 years agochange the keyword apps/netutils to external written in Make.defs
kang [Sat, 2 Sep 2017 05:41:26 +0000 (14:41 +0900)]
change the keyword apps/netutils to external written in Make.defs

6 years agomove codec headers from protocol to codecs
kang [Sat, 2 Sep 2017 05:33:50 +0000 (14:33 +0900)]
move codec headers from protocol to codecs

6 years agomove the netlib module from protocol to netutils
kang [Sat, 2 Sep 2017 05:24:54 +0000 (14:24 +0900)]
move the netlib module from protocol to netutils

6 years agoMerge branch 'master' into folder_modification
pillip8282 [Sat, 2 Sep 2017 04:24:28 +0000 (13:24 +0900)]
Merge branch 'master' into folder_modification

6 years agoMerge pull request #498 from davidfather/wifi_hahm
pillip8282 [Sat, 2 Sep 2017 04:19:11 +0000 (13:19 +0900)]
Merge pull request #498 from davidfather/wifi_hahm

Move slsi_wifi from apps/ to external/

6 years agoUpdate Make.defs
davidfather [Sat, 2 Sep 2017 03:25:03 +0000 (12:25 +0900)]
Update Make.defs

6 years agoMerge pull request #489 from tadziopazur/i2c_init_for_github
sunghan-chang [Fri, 1 Sep 2017 10:41:47 +0000 (19:41 +0900)]
Merge pull request #489 from tadziopazur/i2c_init_for_github

S5J I2C: fix bus initialization.

6 years agoMerge pull request #496 from sunghan-chang/iotivity
btheosam [Fri, 1 Sep 2017 10:07:30 +0000 (19:07 +0900)]
Merge pull request #496 from sunghan-chang/iotivity

fix issues at iotivity default configuration

6 years agoartik053/iotivity: update defconfig through latest menuconfig
sunghan [Fri, 1 Sep 2017 10:01:20 +0000 (19:01 +0900)]
artik053/iotivity: update defconfig through latest menuconfig

There is no PREAPP_INIT config so that we can't use TASH with iotivity
default config. Update it as latest.

6 years agoiotivity: modify .gitignore for mbedtls which built at build time
sunghan [Fri, 1 Sep 2017 09:35:33 +0000 (18:35 +0900)]
iotivity: modify .gitignore for mbedtls which built at build time

The extlibs/mbedtls/mbedtls is copyed from os for header so that
it should not be merged at repository. Add mbedtls folder at gitignore.

6 years agoMove slsi_wifi from apps/ to external/
Seongil Hahm [Fri, 1 Sep 2017 08:04:53 +0000 (01:04 -0700)]
Move slsi_wifi from apps/ to external/

External libraries have to be moved to external/ folder. slsi_wifi belongs to this category, especially maintained by S.LSI.

6 years agoremove the route table features
kang [Fri, 1 Sep 2017 07:20:54 +0000 (16:20 +0900)]
remove the route table features

6 years agoMerge pull request #492 from sunghan-chang/flash_part
Taejun-Kwon [Fri, 1 Sep 2017 06:55:54 +0000 (15:55 +0900)]
Merge pull request #492 from sunghan-chang/flash_part

modify a dependancy of flash configuration on artik053 and sidk_s5jt200

6 years agomove tls from /os/net to /external
kang [Fri, 1 Sep 2017 06:44:07 +0000 (15:44 +0900)]
move tls from /os/net to /external

6 years agoMerge pull request #493 from jeongarmy/logm
sunghan-chang [Fri, 1 Sep 2017 06:12:35 +0000 (15:12 +0900)]
Merge pull request #493 from jeongarmy/logm

Fix build warnings in logm

6 years agoFix build warnings in logm
Ahreum Jeong [Fri, 1 Sep 2017 04:55:12 +0000 (13:55 +0900)]
Fix build warnings in logm
- Add missing include header
   . logm.c : sched.h for sched_lock/unlock, tinyara/arch.h for up_interrupt_context
   . logm_tashcmds.c : string.h for strcmp
- Delete logm_tash definition from logm.h because it is used in a file only

6 years agoMove network modules from the netutils folder to external
kang [Fri, 1 Sep 2017 02:34:30 +0000 (11:34 +0900)]
Move network modules from the netutils folder to external

6 years agoartik053: fix indentation of Kconfig
sunghan [Fri, 1 Sep 2017 00:51:11 +0000 (09:51 +0900)]
artik053: fix indentation of Kconfig

6 years agoartik053/sidk_s5jt200: modify a depnedancy of flash configurations
sunghan [Fri, 1 Sep 2017 00:45:33 +0000 (09:45 +0900)]
artik053/sidk_s5jt200: modify a depnedancy of flash configurations

For flash_part config, mtd should be enabled but disable_mountpoint
is not needed. But for automount config, disable_mountpoint should
be checked.

6 years agoMerge pull request #486 from pmarcinkiew/gcc7_smart
sunghan-chang [Thu, 31 Aug 2017 10:25:43 +0000 (19:25 +0900)]
Merge pull request #486 from pmarcinkiew/gcc7_smart

smart.c: Fix compilation error with GCC 7

6 years agoMerge pull request #487 from pmarcinkiew/gcc7_kdbg
sunghan-chang [Thu, 31 Aug 2017 10:24:39 +0000 (19:24 +0900)]
Merge pull request #487 from pmarcinkiew/gcc7_kdbg

kdbg_date.c: Fix compilation error on GCC 7

6 years agoS5J I2C: fix bus initialization.
Tomasz Wozniak [Thu, 31 Aug 2017 09:51:02 +0000 (11:51 +0200)]
S5J I2C: fix bus initialization.
Before the bus could only be taken once, otherwise it didn't work.
Even worse, second uninit triggered a DEBUGASSERT failure.

6 years agoMerge pull request #485 from junmin-kim/qemu_patch
sunghan-chang [Thu, 31 Aug 2017 09:58:47 +0000 (18:58 +0900)]
Merge pull request #485 from junmin-kim/qemu_patch

Add qemu patch and update qemu README.md

6 years agoMerge pull request #484 from jeongarmy/fix_license
sunghan-chang [Thu, 31 Aug 2017 09:08:28 +0000 (18:08 +0900)]
Merge pull request #484 from jeongarmy/fix_license

Fix wrong license

6 years agoFix wrong license and remove author from copyright paragraph
Ahreum Jeong [Thu, 31 Aug 2017 05:18:08 +0000 (14:18 +0900)]
Fix wrong license and remove author from copyright paragraph

websocket_main.c, i2c_uio.c
 - Original copyright and license should be kept when we get another open source.

gpio.c
 - This is a file we made, not opensource

other files
 - We won't support author on copyright

6 years agosmart.c: Fix compilation error with GCC 7
Jaroslaw Pelczar [Tue, 29 Aug 2017 10:02:29 +0000 (12:02 +0200)]
smart.c: Fix compilation error with GCC 7

Definition of variables depends on CONFIG_MTD_SMART_WEAR_LEVEL

Fixes following build error:

driver/mtd/smart.c:209:22: error: ‘gWearBitToLevelMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearBitToLevelMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~
driver/mtd/smart.c:198:22: error: ‘gWearLevelToBitMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearLevelToBitMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
6 years agoAdd qemu patch and update qemu README.md
junmin kim [Wed, 30 Aug 2017 11:16:05 +0000 (04:16 -0700)]
Add qemu patch and update qemu README.md

qemu-2.10.0-rc2_increase_ram_size.patch is needed for using ram-increased lm3s6965evb
Without this patch, user can use only original lm3s6965evb(64KB ram)

6 years agoMerge pull request #450 from sunghan-chang/menuconfig
btheosam [Thu, 31 Aug 2017 08:09:02 +0000 (17:09 +0900)]
Merge pull request #450 from sunghan-chang/menuconfig

refactor menuconfig structure

6 years agoMerge pull request #482 from sunghan-chang/permission
btheosam [Thu, 31 Aug 2017 08:00:44 +0000 (17:00 +0900)]
Merge pull request #482 from sunghan-chang/permission

change a file permmision to 644

6 years agoMerge pull request #477 from thapav/fixAPIerrors
sunghan-chang [Thu, 31 Aug 2017 07:57:38 +0000 (16:57 +0900)]
Merge pull request #477 from thapav/fixAPIerrors

Fix wrong filenames

6 years agokdbg_date.c: Fix compilation error on GCC 7
Jaroslaw Pelczar [Tue, 29 Aug 2017 10:00:49 +0000 (12:00 +0200)]
kdbg_date.c: Fix compilation error on GCC 7

This symbol is used only in day_of_week() function

Fixes following error:

kdbg_date.c:76:30: error: ‘g_dayofweek’ defined but not used
[-Werror=unused-const-variable=]
static FAR const char *const g_dayofweek[] = {

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
6 years agoFix LWIP-socket invalid error mapping
Konrad Lipner [Tue, 29 Aug 2017 11:51:31 +0000 (13:51 +0200)]
Fix LWIP-socket invalid error mapping

Solves #424

6 years agoMerge branch 'master' into folder_modification
kang [Thu, 31 Aug 2017 06:15:51 +0000 (15:15 +0900)]
Merge branch 'master' into folder_modification

6 years agoMove modules in netutils to external folder
kang [Thu, 31 Aug 2017 06:11:50 +0000 (15:11 +0900)]
Move modules in netutils to external folder

6 years agoMerge pull request #483 from sunghan-chang/external
pillip8282 [Thu, 31 Aug 2017 06:10:55 +0000 (15:10 +0900)]
Merge pull request #483 from sunghan-chang/external

Add an include path for external

6 years agoAdd an include path for external at every Make.defs
sunghan [Thu, 31 Aug 2017 05:50:24 +0000 (14:50 +0900)]
Add an include path for external at every Make.defs

add this to use external APIs easily like below
  #include <xxx.h>

6 years agochange a file permmision to 644
sunghan [Thu, 31 Aug 2017 05:06:00 +0000 (14:06 +0900)]
change a file permmision to 644

6 years agoMerge pull request #473 from jeongarmy/fix_codingrule
sunghan-chang [Thu, 31 Aug 2017 02:25:47 +0000 (11:25 +0900)]
Merge pull request #473 from jeongarmy/fix_codingrule

Fix coding rule error in os folder

6 years agoMerge pull request #481 from jeongchanKim/kernel_codingrule
sunghan-chang [Thu, 31 Aug 2017 01:57:45 +0000 (10:57 +0900)]
Merge pull request #481 from jeongchanKim/kernel_codingrule

Fix coding rule error : apps

6 years agoFix coding rule error in os folder
Ahreum Jeong [Wed, 30 Aug 2017 09:48:14 +0000 (18:48 +0900)]
Fix coding rule error in os folder

6 years agoFix coding rule error : apps
jc_.kim [Thu, 31 Aug 2017 00:46:41 +0000 (09:46 +0900)]
Fix coding rule error : apps

apps/example/nxplayer
apps/example/testcase
apps/example/wave_gen
apps/system/utils

6 years agoFix wrong filenames
Vidisha Thapa [Wed, 30 Aug 2017 13:55:42 +0000 (19:25 +0530)]
Fix wrong filenames

This patch fixes wrong file names of the files:
lib_rawinstream.c
lib_rawoutstream.c
lib_rawsistream.c
lib_rawsostream.c

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
6 years agoMerge pull request #475 from jeongarmy/ttrace
sunghan-chang [Wed, 30 Aug 2017 10:45:36 +0000 (19:45 +0900)]
Merge pull request #475 from jeongarmy/ttrace

Fix unchanged function name in lib_ttrace.c and update readme

6 years agoFix unchanged function name in lib_ttrace.c and readme file
Ahreum Jeong [Wed, 30 Aug 2017 10:04:32 +0000 (19:04 +0900)]
Fix unchanged function name in lib_ttrace.c and readme file
- trace_begin/end_u -> trace_begin/end_uid
- create_packet_u -> create_packet_uid

6 years agoMerge pull request #474 from sunghan-chang/makefile
davidfather [Wed, 30 Aug 2017 10:19:43 +0000 (19:19 +0900)]
Merge pull request #474 from sunghan-chang/makefile

fixup: Deliver the EXTDIR definition for external folder path on Make…

6 years agofixup: Deliver the EXTDIR definition for external folder path on Makefile
sunghan [Wed, 30 Aug 2017 10:09:57 +0000 (19:09 +0900)]
fixup: Deliver the EXTDIR definition for external folder path on Makefile

EXTDIR should be delevered through LibTargets.mk to use it for compilation flag.

6 years agoMerge pull request #469 from jeongarmy/fix_svace
Taejun-Kwon [Wed, 30 Aug 2017 07:58:24 +0000 (16:58 +0900)]
Merge pull request #469 from jeongarmy/fix_svace

Fix svace issues in arastorage, fs and testcases for them

6 years agoMerge pull request #443 from junmin-kim/ide_specfile
sunghan-chang [Wed, 30 Aug 2017 07:46:16 +0000 (16:46 +0900)]
Merge pull request #443 from junmin-kim/ide_specfile

Add sidk_s5jt200 debug spec file

6 years agoMerge pull request #472 from jeongarmy/ttrace
sunghan-chang [Wed, 30 Aug 2017 07:45:31 +0000 (16:45 +0900)]
Merge pull request #472 from jeongarmy/ttrace

Change some API names and update version in doxygen in T-trace

6 years agoMerge pull request #415 from EunBongSong/ds-dev3
sunghan-chang [Wed, 30 Aug 2017 07:43:50 +0000 (16:43 +0900)]
Merge pull request #415 from EunBongSong/ds-dev3

DS

6 years agoMerge pull request #471 from junmin-kim/lib_codingrule
sunghan-chang [Wed, 30 Aug 2017 07:38:48 +0000 (16:38 +0900)]
Merge pull request #471 from junmin-kim/lib_codingrule

Fix coding rule error in lib

6 years agoChange t-trace API names for unique id from trace_begin/end_u to trace_begin/end_uid...
Ahreum Jeong [Wed, 30 Aug 2017 07:24:54 +0000 (16:24 +0900)]
Change t-trace API names for unique id from trace_begin/end_u to trace_begin/end_uid to make it clear.
'u' means unique ID for distinguishing events.

6 years agoAdd sidk_s5jt200 debug spec file
junmin kim [Wed, 23 Aug 2017 10:26:50 +0000 (03:26 -0700)]
Add sidk_s5jt200 debug spec file

6 years agoFix coding rule error in lib
junmin kim [Wed, 30 Aug 2017 07:12:31 +0000 (00:12 -0700)]
Fix coding rule error in lib

lib_exp2.c : spaces required around that '='
libm.h : space required after that close brace '}'

6 years agoFix svace issues in arastorage and testcases for that
Ahreum Jeong [Wed, 30 Aug 2017 03:31:31 +0000 (12:31 +0900)]
Fix svace issues in arastorage and testcases for that

utc_arastorage_main.c
- Use of vulnerable function 'sprintf' at utc_arastorage_main.c:165. This function is unsafe, use snprintf instead.
- After having been assigned to NULL value at utc_arastorage_main.c:851, pointer '0' is passed as 1st parameter in call to function 'cursor_move_last' at utc_arastorage_main.c:851, where it is dereferenced at cursor.c:80.
- After having been assigned to NULL value at utc_arastorage_main.c:773, pointer '0' is passed as 1st parameter in call to function 'cursor_move_next' at utc_arastorage_main.c:773, where it is dereferenced at cursor.c:86.
- After having been assigned to NULL value at utc_arastorage_main.c:812, pointer '0' is passed as 1st parameter in call to function 'cursor_move_prev' at utc_arastorage_main.c:812, where it is dereferenced at cursor.c:92.
- Expression '(count)' has type 'tuple_id_t' ('unsigned int'), so it's never less than zero

storage_interface.c
- Copying from string 'filename' to '&g_storage_write_buffer.file_name[0]' without null termination at storage_interface.c:557 by calling function 'memcpy'.
- Copying from parameter string 'name' to '&rel->name[0]' at storage_interface.c:184 may form a non-terminated C string of size 17.

aql_exec.c
- This statement in the source code might be unreachable during program execution.

index_bplustree.c
- Dynamic memory referenced by 'path' was allocated at index_bplustree.c:1376 by calling function 'malloc' and lost at index_bplustree.c:1391.
- The handle 'fd' was created at storage_abstraction.c:51 by calling function 'storage_open' at index_bplustree.c:522 and lost at index_bplustree.c:527.

relation.c
- Dynamic memory referenced by 'cursor' was allocated at relation.c:1064 by calling function 'malloc' and lost at relation.c:1102.

6 years agoFix svace issues in mtd and testcases for filesystem.
Ahreum Jeong [Wed, 30 Aug 2017 03:31:00 +0000 (12:31 +0900)]
Fix svace issues in mtd and testcases for filesystem.

fs_main.c
- The handle 'dirp' was created at fs_main.c:629 by calling function 'opendir' and lost at fs_main.c:631.
- The handle 'ret' was created at fs_main.c:392 by calling function 'dup' and lost at fs_main.c:393.
- Handler 'fd' is passed to a function at fs_main.c:489 by calling function 'close' after the handler is closed again at fs_main.c:485 by calling function 'close'.
- The handle 'fd1' was created at fs_main.c:447 by calling function 'dup2' and lost at fs_main.c:449.
- The handle 'dirp' was created at fs_main.c:818 by calling function 'opendir' and lost at fs_main.c:819.

mtd_partition.c
- Use of vulerable function 'strcpy' at mtd_partition.c:572. This function is unsafe, use strncpy instead.

6 years agonetutils/libcoap : minor patch to fix build warning on CPP compiler
Jin-Seong Kim [Mon, 14 Aug 2017 09:02:17 +0000 (18:02 +0900)]
netutils/libcoap : minor patch to fix build warning on CPP compiler

This commit is minor patch to fix build warning on CPP compiler
1. compile warning log
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
  if (size <= (bit >> 3)) {
2. solution
adding casting operator after bit shift operations

Change-Id: I71a512951523f0fb7317e684fdc0f4d8ee4a9cd8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/http: add dependency
Junyeon LEE [Fri, 11 Aug 2017 10:45:57 +0000 (03:45 -0700)]
netutils/http: add dependency

This commit addes dependency in Kconfig.
 * Webclient makes linkding error without Webserver.
 * Easysetup makes linkding error without TLS.

Change-Id: I14dc58b5da2390faaf9fa8d08ba6d947cf788ee9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agoarch/artik053 : trivial patch to fix linking error
Jin-Seong Kim [Fri, 11 Aug 2017 02:25:09 +0000 (11:25 +0900)]
arch/artik053 : trivial patch to fix linking error

This commit is trivial patch to fix linking error

1. Configuration : artik053/minimal
2. Build error log
LD: tinyara
In function `board_i2c_initialize':
artik053_boot.c:131: undefined reference to `s5j_i2c_register'
artik053_boot.c:132: undefined reference to `s5j_i2c_register'
make[1]: *** [../build/output/bin/tinyara] Error 1

CONFIG_S5J_I2C configuration is needed to use s5j_i2c_register function

Change-Id: I67fc21ae8a9493f132e5451dd65f4cd347c8afde
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoexamples/libcoap : minor updates on libcoap examples
Jin-Seong Kim [Thu, 10 Aug 2017 02:47:28 +0000 (11:47 +0900)]
examples/libcoap : minor updates on libcoap examples

This commit is minor updates on libcoap examples
1. build error fix without WITH_MBEDTLS
2. be able to test TCP without WITH_MBEDTLS

Change-Id: I44116c6b6a7768891e6dbaeaf9d95e90c6096e57
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoexamples/libcoap : minor patch on select timeout
Jin-Seong Kim [Wed, 9 Aug 2017 00:19:08 +0000 (09:19 +0900)]
examples/libcoap : minor patch on select timeout

This commit is minor patch on select timeout
 - set timeout to wait_seconds when timeout exceeds it
 - clear readfds when application exits

Change-Id: Ie477b6dc868bbc4d69941579059b0d587300b4ab
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonet/tls: remove ununsed netdb dependency
Junyeon LEE [Thu, 10 Aug 2017 13:15:44 +0000 (06:15 -0700)]
net/tls: remove ununsed netdb dependency

Now that LIBC_NETDB is default configuration for running TLS.
So, removes all ununsed NETDB dependency code.

Change-Id: I96126592b67f1e00f9e29cf90b8af81ce02073b4
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetdb: Fix build error by LIBC_NETDB dependency
EunBong Song [Wed, 9 Aug 2017 11:00:39 +0000 (04:00 -0700)]
netdb: Fix build error by LIBC_NETDB dependency

This patch fixed build error by LIBC_NETDB dependency.

Change-Id: Ib037c10197b56a9a887d72d781258dc714cba121
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agolwm2m: remove unused header files.
EunBong Song [Wed, 9 Aug 2017 04:20:56 +0000 (21:20 -0700)]
lwm2m: remove unused header files.

apps/include/netutils/commandline.h and apps/include/netutils/connection.h
are not used anymore. Remove this.

Change-Id: Ie1831be7bbda0570c21426f267ce6d5fb31a80b7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonet/tls: remove unused file in tls
Junyeon LEE [Wed, 9 Aug 2017 14:02:36 +0000 (07:02 -0700)]
net/tls: remove unused file in tls

This commit removes unused source codes and README file in tls.

Change-Id: Iceac673bbe42cbbe1f2a909541447cff76aeb10f
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetutils: remove unused header files
Junyeon LEE [Wed, 9 Aug 2017 13:32:06 +0000 (06:32 -0700)]
netutils: remove unused header files

Remove unused httpd, thttpd header files and remove unused
code in webserver example's Makefile.

Change-Id: Id2542a74a8572bbd3adae87b2473bfe790642301
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetutils/libcoap : moves CFLAGS on Makefile to libcoap config.h
Jin-Seong Kim [Wed, 9 Aug 2017 01:58:33 +0000 (10:58 +0900)]
netutils/libcoap : moves CFLAGS on Makefile to libcoap config.h

This commit is patch to move CFLAGS on Makefile to libcoap config.h
CFLAG definitions used for TinzenRT are located in Makefile
 - WITH_POSIX, WITH_MBEDTLS, NDEBUG and WITH_TCP
accordingly build sequence, build error can be happened without CFLAGS
to prevent compilation error due to CFLAGS, those definitions are moved
to config.h (configuration file only used by libcoap)

Change-Id: Ic5d1d0fb2bb7c892555393daf54c3f9d427cc951
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/libcoap : add Samsung license statements
Jin-Seong Kim [Wed, 9 Aug 2017 03:02:45 +0000 (12:02 +0900)]
netutils/libcoap : add Samsung license statements

This commit is patch to add Samsung license statements
 - Apache-2.0 license

Change-Id: I6febc083800615c9de6dbde5e43e4fbe3c155e4d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils: cosmetic change of header files for c++ reference
EunBong Song [Wed, 9 Aug 2017 01:03:32 +0000 (18:03 -0700)]
netutils: cosmetic change of header files for c++ reference

This patch changes all header files for cplusplus reference.

Change-Id: I40a16b13291a3bb8c4c3e03a4c33cacf56168765
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agoTurn on DISABLE_POLL when NFILE_DESCRIPTORS = 0
Mikhail Cherkashin [Tue, 8 Aug 2017 10:12:46 +0000 (13:12 +0300)]
Turn on DISABLE_POLL when NFILE_DESCRIPTORS = 0

When NFILE_DESCRIPTORS = 0, set DISABLE_POLL to y and make it
invisible.

Change-Id: I846e1da62d1cfffc5052a99a8e6fcc7bfe2a96b3
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoAdding dependencies of NFILE_DESCRIPTORS > 0
Mikhail Cherkashin [Fri, 4 Aug 2017 10:31:37 +0000 (13:31 +0300)]
Adding dependencies of NFILE_DESCRIPTORS > 0

GPIO, DEV_NULL and DEV_ZERO configs use file descriptors,
so the dependency is needed.

Change-Id: I3858029534c90592d0c2fbddcdd50f28ed1c941a
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoFixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0
Mikhail Cherkashin [Tue, 8 Aug 2017 16:22:34 +0000 (19:22 +0300)]
Fixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0

Most common problem with build fixed: in file fs_close.c an undefined
variable appears when NFILE_DESCRIPTORS=0 and NSOCKET_DESCRIPTORS != 0.

Change-Id: Ia7f2417a37ad3052a04c119b330b41a401de40a1
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>