From 4d79eb121e56e21dba7013dabbe342829ba4f2fd Mon Sep 17 00:00:00 2001 From: Go Hosohara Date: Wed, 29 Aug 2018 11:06:13 +0900 Subject: [PATCH] add include.am file and comment for related code of Renesas cs+ and e2studio --- .../cs+/Projects/{Readme.txt => README} | 0 IDE/Renesas/cs+/Projects/common/strings.h | 20 ++++++++++++ IDE/Renesas/cs+/Projects/common/unistd.h | 21 +++++++++++++ .../cs+/Projects/common/user_settings.h | 20 ++++++++++++ IDE/Renesas/cs+/Projects/include.am | 12 +++++++ IDE/Renesas/cs+/Projects/test/test_main.c | 31 +++++++++++++------ .../e2studio/Projects/{Readme.txt => README} | 0 .../e2studio/Projects/common/strings.h | 20 ++++++++++++ IDE/Renesas/e2studio/Projects/common/unistd.h | 21 +++++++++++++ .../e2studio/Projects/common/user_settings.h | 20 ++++++++++++ IDE/Renesas/e2studio/Projects/include.am | 14 +++++++++ .../e2studio/Projects/test/src/test_main.c | 31 +++++++++++++------ 12 files changed, 190 insertions(+), 20 deletions(-) rename IDE/Renesas/cs+/Projects/{Readme.txt => README} (100%) create mode 100644 IDE/Renesas/cs+/Projects/include.am rename IDE/Renesas/e2studio/Projects/{Readme.txt => README} (100%) create mode 100644 IDE/Renesas/e2studio/Projects/include.am diff --git a/IDE/Renesas/cs+/Projects/Readme.txt b/IDE/Renesas/cs+/Projects/README similarity index 100% rename from IDE/Renesas/cs+/Projects/Readme.txt rename to IDE/Renesas/cs+/Projects/README diff --git a/IDE/Renesas/cs+/Projects/common/strings.h b/IDE/Renesas/cs+/Projects/common/strings.h index 45b5aff4d..4de5d278d 100644 --- a/IDE/Renesas/cs+/Projects/common/strings.h +++ b/IDE/Renesas/cs+/Projects/common/strings.h @@ -1,2 +1,22 @@ +/* strings.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ int strncasecmp(const char *s1, const char * s2, unsigned int sz); diff --git a/IDE/Renesas/cs+/Projects/common/unistd.h b/IDE/Renesas/cs+/Projects/common/unistd.h index b2e7f054e..3defa71fc 100644 --- a/IDE/Renesas/cs+/Projects/common/unistd.h +++ b/IDE/Renesas/cs+/Projects/common/unistd.h @@ -1 +1,22 @@ +/* unistd.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ + /* DUMMY Header */ \ No newline at end of file diff --git a/IDE/Renesas/cs+/Projects/common/user_settings.h b/IDE/Renesas/cs+/Projects/common/user_settings.h index c7133877d..16c0502ce 100644 --- a/IDE/Renesas/cs+/Projects/common/user_settings.h +++ b/IDE/Renesas/cs+/Projects/common/user_settings.h @@ -1,3 +1,23 @@ +/* user_settings.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ #define NO_MAIN_DRIVER #define BENCH_EMBEDDED diff --git a/IDE/Renesas/cs+/Projects/include.am b/IDE/Renesas/cs+/Projects/include.am new file mode 100644 index 000000000..106f4fe66 --- /dev/null +++ b/IDE/Renesas/cs+/Projects/include.am @@ -0,0 +1,12 @@ +# vim:ft=automake +# included from Top Level Makefile.am +# All paths should be given relative to the root + +EXTRA_DIST+= IDE/Renesas/cs+/README +EXTRA_DIST+= IDE/Renesas/cs+/wolfssl_lib/wolfssl_lib.mtpj +EXTRA_DIST+= IDE/Renesas/cs+/test/test.mtpj +EXTRA_DIST+= IDE/Renesas/cs+/test/test_main.c +EXTRA_DIST+= IDE/Renesas/cs+/common/wolfssl_dummy.c +EXTRA_DIST+= IDE/Renesas/cs+/common/strings.h +EXTRA_DIST+= IDE/Renesas/cs+/common/unistd.h +EXTRA_DIST+= IDE/Renesas/cs+/common/user_settings.h \ No newline at end of file diff --git a/IDE/Renesas/cs+/Projects/test/test_main.c b/IDE/Renesas/cs+/Projects/test/test_main.c index 7243400c4..4d8e0179d 100644 --- a/IDE/Renesas/cs+/Projects/test/test_main.c +++ b/IDE/Renesas/cs+/Projects/test/test_main.c @@ -1,13 +1,24 @@ -/***********************************************************************/ -/* */ -/* FILE :Main.c or Main.cpp */ -/* DATE :Tue, Oct 31, 2006 */ -/* DESCRIPTION :Main Program */ -/* CPU TYPE : */ -/* */ -/* NOTE:THIS IS A TYPICAL EXAMPLE. */ -/* */ -/***********************************************************************/ +/* test_main.c + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ + #include "typedefine.h" #ifdef __cplusplus #include // Remove the comment when you use ios diff --git a/IDE/Renesas/e2studio/Projects/Readme.txt b/IDE/Renesas/e2studio/Projects/README similarity index 100% rename from IDE/Renesas/e2studio/Projects/Readme.txt rename to IDE/Renesas/e2studio/Projects/README diff --git a/IDE/Renesas/e2studio/Projects/common/strings.h b/IDE/Renesas/e2studio/Projects/common/strings.h index 45b5aff4d..4de5d278d 100644 --- a/IDE/Renesas/e2studio/Projects/common/strings.h +++ b/IDE/Renesas/e2studio/Projects/common/strings.h @@ -1,2 +1,22 @@ +/* strings.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ int strncasecmp(const char *s1, const char * s2, unsigned int sz); diff --git a/IDE/Renesas/e2studio/Projects/common/unistd.h b/IDE/Renesas/e2studio/Projects/common/unistd.h index b2e7f054e..3defa71fc 100644 --- a/IDE/Renesas/e2studio/Projects/common/unistd.h +++ b/IDE/Renesas/e2studio/Projects/common/unistd.h @@ -1 +1,22 @@ +/* unistd.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ + /* DUMMY Header */ \ No newline at end of file diff --git a/IDE/Renesas/e2studio/Projects/common/user_settings.h b/IDE/Renesas/e2studio/Projects/common/user_settings.h index c7133877d..16c0502ce 100644 --- a/IDE/Renesas/e2studio/Projects/common/user_settings.h +++ b/IDE/Renesas/e2studio/Projects/common/user_settings.h @@ -1,3 +1,23 @@ +/* user_settings.h + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ #define NO_MAIN_DRIVER #define BENCH_EMBEDDED diff --git a/IDE/Renesas/e2studio/Projects/include.am b/IDE/Renesas/e2studio/Projects/include.am new file mode 100644 index 000000000..2ff97fe8f --- /dev/null +++ b/IDE/Renesas/e2studio/Projects/include.am @@ -0,0 +1,14 @@ +# vim:ft=automake +# included from Top Level Makefile.am +# All paths should be given relative to the root + +EXTRA_DIST+= IDE/Renesas/e2studio/README +EXTRA_DIST+= IDE/Renesas/e2studio/wolfssl/.cproject +EXTRA_DIST+= IDE/Renesas/e2studio/wolfssl/.project +EXTRA_DIST+= IDE/Renesas/e2studio/test/.cproject +EXTRA_DIST+= IDE/Renesas/e2studio/test/.project +EXTRA_DIST+= IDE/Renesas/e2studio/test/src/test_main.c +EXTRA_DIST+= IDE/Renesas/e2studio/common/wolfssl_dummy.c +EXTRA_DIST+= IDE/Renesas/e2studio/common/strings.h +EXTRA_DIST+= IDE/Renesas/e2studio/common/uninstd.h +EXTRA_DIST+= IDE/Renesas/e2studio/common/user_settings.h \ No newline at end of file diff --git a/IDE/Renesas/e2studio/Projects/test/src/test_main.c b/IDE/Renesas/e2studio/Projects/test/src/test_main.c index 15fa497ca..b9ebcff5a 100644 --- a/IDE/Renesas/e2studio/Projects/test/src/test_main.c +++ b/IDE/Renesas/e2studio/Projects/test/src/test_main.c @@ -1,13 +1,24 @@ -/***********************************************************************/ -/* */ -/* FILE : Main.c */ -/* DATE :Tue, Oct 31, 2006 */ -/* DESCRIPTION :Main Program */ -/* CPU TYPE : */ -/* */ -/* NOTE:THIS IS A TYPICAL EXAMPLE. */ -/* */ -/***********************************************************************/ +/* test_main.c + * + * Copyright (C) 2006-2018 wolfSSL Inc. + * + * This file is part of wolfSSL. + * + * wolfSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * wolfSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA + */ + //#include "typedefine.h" #ifdef __cplusplus //#include // Remove the comment when you use ios