Update rlink_make_speed_table.pl script to add config.h to its output.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1754 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
a28fdee804
commit
e29ed183fc
|
@ -21,13 +21,20 @@
|
||||||
|
|
||||||
# A simple utility to read a list of files (names composed by numeric prescaler arguments) and compose a C source file defining data structures which hold the binary data read from those files.
|
# A simple utility to read a list of files (names composed by numeric prescaler arguments) and compose a C source file defining data structures which hold the binary data read from those files.
|
||||||
|
|
||||||
@speed_table = ();
|
my @speed_table = ();
|
||||||
|
|
||||||
printf("/* This file was created automatically by %s. */\n\n", $0);
|
print <<HEADER;
|
||||||
for $i ('rlink', 'st7') {
|
/* This file was created automatically by the following script:
|
||||||
printf("#include \"$i.h\"\n");
|
* $0
|
||||||
}
|
*/
|
||||||
printf("\n");
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "rlink.h"
|
||||||
|
#include "st7.h"
|
||||||
|
|
||||||
|
HEADER
|
||||||
|
|
||||||
for $prescaler (sort {$b <=> $a} @ARGV) {
|
for $prescaler (sort {$b <=> $a} @ARGV) {
|
||||||
my(@ary) = (
|
my(@ary) = (
|
||||||
|
|
Loading…
Reference in New Issue