Commit Graph

146 Commits

Author SHA1 Message Date
Joel Sherrill
c218d01d7a tools/build/eolstrip.c: Use snprintf() to avoid potential buffer overflow
This was spotted by Coverity Scan.
2017-03-14 12:02:09 -05:00
Chris Johns
eb733202ad Fix rtems-test-check with a BSD sed.
BSD sed does not support '\t' and treated '[ \t]' as 3 characters. This patch
uses a standard method of supporting blank spaces.
2017-03-14 13:54:21 +11:00
Stavros Passas
ac01d2468a rtems-test-check: Fix to properly process excludes
Closes #2867.
2017-01-17 17:58:37 -06:00
Chris Johns
28fda6279b testsuite: Add test states to the testsuit configuration files.
Change the testsuite configuration files to hold state information about
a test. The states are:

 exclude        - Do not build the test
 expected-fail  - The test is expected to fail
 indeterminate  - The test may pass or may fail

A message is printed just after the test's BEGIN message to indicate
there is a special state for the test. No state message means the test
is expected to pass.

This support requires tests are correctly written to the use standard
support to begin and end a test.
2016-12-07 17:22:41 +11:00
Sebastian Huber
2f3d8040ca tools: Delete unused binpatch
This was a no-install binary apparently unused.

Update #2730.
2016-06-06 14:10:56 +02:00
Joel Sherrill
c2451845f4 tools/build/binpatch.c: Include <unistd.h> for getopt() 2015-03-24 08:16:38 -05:00
Joel Sherrill
6442d54d5c tools/build/rtems-test-check: Support multiple include files 2015-03-22 10:29:57 -05:00
Sebastian Huber
748fbd1b3f rtems-bin2c: Fix Windows build
Update #2238.
2015-02-23 16:55:12 +01:00
Gedare Bloom
1281c34a23 Use counted strnlen in bin2c. Closes #2238. 2015-02-23 10:38:37 -05:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Sebastian Huber
9ab1558f6e tools: Provide strnlen() if missing 2014-12-02 13:05:30 +01:00
Joel Sherrill
a8b071dbd5 rtems-bin2c.c: Fix free() of altered pointer 2014-11-27 09:28:42 -06:00
Josh Oguin
b164303012 tools/build/*.c: Clean up issues reported by CodeSonar
This code is built without warnings and ignored by Coverity Scan.
CodeSonar found a wide range of issues including buffer overruns,
buffer underruns, questionable type conversions, leaks, etc. This
set of patches addresses all reported issues.
2014-11-26 07:52:00 -06:00
Chris Johns
960c9f0298 tools: Remove invalid cpp characters from the header guards.
The waf converter in examples-v2 uses an absolute path and this
creates defines with invalid characters.
2014-09-05 13:29:45 +10:00
Chris Johns
431bb85dde rtems-test-check: Ignore tests which require real ISR based clock tick
BSPs for simulators which do not include a clock tick interrupt source
are incapable of running some tests successfully. This is a common
characteristic of some BSPs and a fixed set of tests. There is no point
in duplicating this list of tests in those BSPs test configuration.

Read testsuites/testdata/require-tick-isr.tcfg for details.
2014-05-28 23:44:26 +10:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Cynthia Rempel
2f0d5e453b Initialize the string before replacing characters 2013-08-26 09:25:58 +02:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Ralf Corsépius
bb2b8259ea Require automake-1.12.2. 2012-07-19 15:47:55 +02:00
Ralf Corsépius
0f772813aa Require autoconf-2.69. 2012-07-19 15:44:32 +02:00
Joel Sherrill
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
0b6bf2b6a1 Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Joel Sherrill
903bd10600 2011-06-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* config.h.in: Regenerated.
2011-06-08 16:13:16 +00:00
Joel Sherrill
d751cecbb1 * tools/build/.cvsignore, tools/build/ChangeLog,
tools/build/Makefile.am, tools/build/README, tools/build/binpatch.c,
	tools/build/cklength.c, tools/build/config.h.in,
	tools/build/configure.ac, tools/build/cvsignore-add.sh,
	tools/build/doxy-filter, tools/build/eolstrip.c,
	tools/build/install-if-change.in, tools/build/multigen,
	tools/build/packhex.c, tools/build/rtems-bin2c.c,
	tools/build/search-id.sh, tools/build/unhex.c, tools/cpu/.cvsignore,
	tools/cpu/ChangeLog, tools/cpu/Makefile.am, tools/cpu/configure.ac,
	tools/cpu/generic/.cvsignore, tools/cpu/generic/ChangeLog,
	tools/cpu/generic/Makefile.am, tools/cpu/generic/configure.ac,
	tools/cpu/generic/size_rtems.in, tools/cpu/nios2/.cvsignore,
	tools/cpu/nios2/ChangeLog, tools/cpu/nios2/Makefile.am,
	tools/cpu/nios2/README, tools/cpu/nios2/bridges.c,
	tools/cpu/nios2/bridges.h, tools/cpu/nios2/clocks.c,
	tools/cpu/nios2/clocks.h, tools/cpu/nios2/configure.ac,
	tools/cpu/nios2/devices.c, tools/cpu/nios2/devices.h,
	tools/cpu/nios2/linkcmds.c, tools/cpu/nios2/linkcmds.h,
	tools/cpu/nios2/memory.c, tools/cpu/nios2/memory.h,
	tools/cpu/nios2/nios2gen.c, tools/cpu/nios2/output.c,
	tools/cpu/nios2/output.h, tools/cpu/nios2/ptf.c,
	tools/cpu/nios2/ptf.h, tools/cpu/nios2/sample.ptf,
	tools/cpu/sh/.cvsignore, tools/cpu/sh/AUTHORS, tools/cpu/sh/COPYING,
	tools/cpu/sh/ChangeLog, tools/cpu/sh/Makefile.am, tools/cpu/sh/TODO,
	tools/cpu/sh/configure.ac, tools/cpu/sh/sci.c, tools/cpu/sh/sci.h,
	tools/cpu/sh/shgen.c: New files.
2011-05-17 20:39:40 +00:00
Joel Sherrill
d305d75c7e 2011-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* tools/build/.cvsignore, tools/build/ChangeLog,
	tools/build/Makefile.am, tools/build/README, tools/build/binpatch.c,
	tools/build/cklength.c, tools/build/configure.ac,
	tools/build/cvsignore-add.sh, tools/build/doxy-filter,
	tools/build/eolstrip.c, tools/build/install-if-change.in,
	tools/build/multigen, tools/build/packhex.c,
	tools/build/rtems-bin2c.c, tools/build/search-id.sh,
	tools/build/unhex.c, tools/cpu/.cvsignore, tools/cpu/ChangeLog,
	tools/cpu/Makefile.am, tools/cpu/configure.ac,
	tools/cpu/generic/.cvsignore, tools/cpu/generic/ChangeLog,
	tools/cpu/generic/Makefile.am, tools/cpu/generic/configure.ac,
	tools/cpu/generic/size_rtems.in, tools/cpu/nios2/.cvsignore,
	tools/cpu/nios2/ChangeLog, tools/cpu/nios2/Makefile.am,
	tools/cpu/nios2/README, tools/cpu/nios2/bridges.c,
	tools/cpu/nios2/bridges.h, tools/cpu/nios2/clocks.c,
	tools/cpu/nios2/clocks.h, tools/cpu/nios2/configure.ac,
	tools/cpu/nios2/devices.c, tools/cpu/nios2/devices.h,
	tools/cpu/nios2/linkcmds.c, tools/cpu/nios2/linkcmds.h,
	tools/cpu/nios2/memory.c, tools/cpu/nios2/memory.h,
	tools/cpu/nios2/nios2gen.c, tools/cpu/nios2/output.c,
	tools/cpu/nios2/output.h, tools/cpu/nios2/ptf.c,
	tools/cpu/nios2/ptf.h, tools/cpu/nios2/sample.ptf,
	tools/cpu/sh/.cvsignore, tools/cpu/sh/AUTHORS, tools/cpu/sh/COPYING,
	tools/cpu/sh/ChangeLog, tools/cpu/sh/Makefile.am, tools/cpu/sh/TODO,
	tools/cpu/sh/configure.ac, tools/cpu/sh/sci.c, tools/cpu/sh/sci.h,
	tools/cpu/sh/shgen.c, tools/schedsim/.cvsignore,
	tools/schedsim/ChangeLog, tools/schedsim/Makefile.am,
	tools/schedsim/README, tools/schedsim/configure.ac,
	tools/schedsim/rtems/.cvsignore, tools/schedsim/rtems/ChangeLog,
	tools/schedsim/rtems/Makefile.am, tools/schedsim/rtems/interr.c,
	tools/schedsim/rtems/rtems_init.c,
	tools/schedsim/rtems/rtems_sched.h, tools/schedsim/rtems/wkspace.c,
	tools/schedsim/rtems/sched_cpu/cpu.c,
	tools/schedsim/rtems/sched_cpu/cpu_asm.c,
	tools/schedsim/rtems/sched_cpu/rtems/asm.h,
	tools/schedsim/rtems/sched_cpu/rtems/stringto.h,
	tools/schedsim/rtems/sched_cpu/rtems/score/cpu.h,
	tools/schedsim/rtems/sched_cpu/rtems/score/cpu_asm.h,
	tools/schedsim/rtems/sched_cpu/rtems/score/cpuopts.h,
	tools/schedsim/rtems/sched_cpu/rtems/score/no_cpu.h,
	tools/schedsim/rtems/sched_cpu/rtems/score/types.h,
	tools/schedsim/shell/.cvsignore, tools/schedsim/shell/ChangeLog,
	tools/schedsim/shell/Makefile.am,
	tools/schedsim/shell/schedsim_priority/.cvsignore,
	tools/schedsim/shell/schedsim_priority/Makefile.am,
	tools/schedsim/shell/schedsim_priority/config.c,
	tools/schedsim/shell/schedsim_priority/printheir_executing.c,
	tools/schedsim/shell/schedsim_priority/schedsim.cc,
	tools/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c,
	tools/schedsim/shell/scripts/script01,
	tools/schedsim/shell/scripts/script02,
	tools/schedsim/shell/scripts/script03,
	tools/schedsim/shell/scripts/script04,
	tools/schedsim/shell/scripts/script05,
	tools/schedsim/shell/scripts/script06,
	tools/schedsim/shell/shared/.cvsignore,
	tools/schedsim/shell/shared/Makefile.am,
	tools/schedsim/shell/shared/commands.c,
	tools/schedsim/shell/shared/getopt.c,
	tools/schedsim/shell/shared/lookup_semaphore.c,
	tools/schedsim/shell/shared/lookup_task.c,
	tools/schedsim/shell/shared/main_clocktick.c,
	tools/schedsim/shell/shared/main_echo.c,
	tools/schedsim/shell/shared/main_executing.c,
	tools/schedsim/shell/shared/main_heir.c,
	tools/schedsim/shell/shared/main_help.c,
	tools/schedsim/shell/shared/main_rtemsinit.c,
	tools/schedsim/shell/shared/main_semcreate.c,
	tools/schedsim/shell/shared/main_semdelete.c,
	tools/schedsim/shell/shared/main_semflush.c,
	tools/schedsim/shell/shared/main_semobtain.c,
	tools/schedsim/shell/shared/main_semrelease.c,
	tools/schedsim/shell/shared/main_taskcreate.c,
	tools/schedsim/shell/shared/main_taskdelete.c,
	tools/schedsim/shell/shared/main_taskmode.c,
	tools/schedsim/shell/shared/main_taskpriority.c,
	tools/schedsim/shell/shared/main_taskresume.c,
	tools/schedsim/shell/shared/main_tasksuspend.c,
	tools/schedsim/shell/shared/main_taskwakeafter.c,
	tools/schedsim/shell/shared/schedsim_shell.h,
	tools/schedsim/shell/shared/shell_cmdset.c,
	tools/schedsim/shell/shared/shell_makeargs.c,
	tools/schedsim/shell/shared/include/shell.h,
	tools/schedsim/shell/shared/include/newlib/_ansi.h,
	tools/schedsim/shell/shared/include/newlib/getopt.h: Removed.

	* configure.ac: RTEMS Scheduler Simulator is now in its own CVS module
	named rtems-schedsim.
2011-05-17 20:37:15 +00:00
Ralf Corsepius
8ee3775f30 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
2011-02-02 15:01:43 +00:00
Ralf Corsepius
49fb1c5033 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems-bin2c.c: Fix memory leak in '.c' suffix strip.
	Also strip '.h' suffix.
2010-07-30 12:44:32 +00:00
Ralf Corsepius
b3ef132204 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems-bin2c.c: Make -v (verbose) working.
2010-07-30 12:26:11 +00:00
Ralf Corsepius
88c93c310b 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for libgen.h, basename.
	* rtems-bin2c.c: Use basename(3) instead of strrchr cascade.
	Introduce ifbasename. Use ifbasename in generated files.
2010-07-30 12:09:38 +00:00
Ralf Corsepius
bafe269d8e 2010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems-bin2c.c: Add -C and -H options.
2010-07-29 17:12:38 +00:00
Joel Sherrill
438997f6a4 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* eolstrip.c: Readdress use of ctype methods per recommendation from
	D.J. Delorie on the newlib mailing list. We should pass an unsigned
	char into these methods.
2010-03-12 16:27:00 +00:00
Ralf Corsepius
335d67ac6b Whitespace removal. 2009-12-10 14:23:57 +00:00
Joel Sherrill
37b1a9468d 2007-09-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rename bin2c to rtems-bin2c.
2007-09-18 13:23:58 +00:00
Joel Sherrill
c82e98f4f2 2007-09-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* bin2c.c: Updated license after author changed it.
2007-09-10 11:27:44 +00:00
Joel Sherrill
f6e2e97b59 2007-09-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* bin2c.c: Update comments.
2007-09-07 13:08:01 +00:00
Joel Sherrill
d39cbae967 2007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* bin2c.c: Significant improvements -- add multiple options, generate
	both C and H files, do not always generate static. fix indentation,
	add comments.
2007-09-04 14:20:37 +00:00
Joel Sherrill
9df0a95f1c 2007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* bin2c.c: New file.
	http://www.wxwidgets.org/wiki/index.php/Embedding_PNG_Images-Bin2c_In_C
2007-09-04 14:20:27 +00:00
Joel Sherrill
472bb41903 2007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Add bin2c so we can have a more reliable way to convert
	binary files to objects. If they are in C, we can use the correct CPU
	CFLAGS and they will link easier.
2007-09-04 13:30:55 +00:00
Ralf Corsepius
fcb0cd462c 2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: New BUG-REPORT address.
2006-12-02 06:06:55 +00:00
Ralf Corsepius
ba2c04fa2c 2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.60. Require automake-1.10.
2006-10-17 07:38:02 +00:00
Ralf Corsepius
b18c5f7ceb 2006-07-13 Ralf Corsepius <ralf.corsepius@rtems.org>
* doxy-filter: New.
	* Makefile.am: Add doxy-filter.
2006-07-13 06:37:43 +00:00
Ralf Corsepius
488c3ce716 Remove. 2006-07-11 03:38:43 +00:00
Ralf Corsepius
8f85c46ac9 2006-07-11 Ralf Corsepius <ralf.corsepius@rtems.org>
* ampolish3.in: Remove.
	* Makefile.am: Remove ampolish3.
	* configure.ac: Remove ampolish3, perl.
2006-07-11 03:37:31 +00:00
Ralf Corsepius
a09b068cfc 2006-10-14 Ralf Corsepius <ralf.corsepius@rtems.org>
* ampolish3.in: Check Makefile.am for SUBDIRS.
	Add all-am: for PREINSTALL_FILES.
2006-01-14 06:10:51 +00:00
Ralf Corsepius
87b133a8ce 2006-10-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* ampolish3.in: Add all: for PREINSTALL_FILES.
	Add all-local for TMPINSTALL_FILES.
	Misc bug fixes.
2006-01-12 09:54:27 +00:00
Ralf Corsepius
9db0ec2889 2006-10-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* ampolish3.in: Check if Makefile.am already contains CLEANFILES or
	DISTCLEANFILES.
2006-01-12 04:02:51 +00:00
Ralf Corsepius
7dd22c32e9 2006-10-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* ampolish3.im: Update.
2006-01-10 17:51:03 +00:00