diff options
Diffstat (limited to 'scripts/embedded_scripts')
| -rwxr-xr-x | scripts/embedded_scripts | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts index c2e7c6961..86ad44d1d 100755 --- a/scripts/embedded_scripts +++ b/scripts/embedded_scripts | |||
| @@ -81,21 +81,15 @@ exec >"$target.$$" | |||
| 81 | if [ $n -ne 0 ] | 81 | if [ $n -ne 0 ] |
| 82 | then | 82 | then |
| 83 | printf '#ifdef DEFINE_SCRIPT_DATA\n' | 83 | printf '#ifdef DEFINE_SCRIPT_DATA\n' |
| 84 | if [ $n -ne 0 ] | 84 | printf 'const uint16_t applet_numbers[] = {\n' |
| 85 | then | 85 | for i in $custom_scripts $applet_scripts |
| 86 | printf 'const uint16_t applet_numbers[] = {\n' | 86 | do |
| 87 | for i in $custom_scripts $applet_scripts | 87 | # TODO support applets with names including invalid characters |
| 88 | do | 88 | printf '\tAPPLET_NO_%s,\n' $i |
| 89 | # TODO support applets with names including invalid characters | 89 | done |
| 90 | printf '\tAPPLET_NO_%s,\n' $i | 90 | printf '};\n' |
| 91 | done | ||
| 92 | printf '};\n' | ||
| 93 | fi | ||
| 94 | printf '#else\n' | 91 | printf '#else\n' |
| 95 | if [ $n -ne 0 ] | 92 | printf 'extern const uint16_t applet_numbers[];\n' |
| 96 | then | ||
| 97 | printf 'extern const uint16_t applet_numbers[];\n' | ||
| 98 | fi | ||
| 99 | printf '#endif\n' | 93 | printf '#endif\n' |
| 100 | fi | 94 | fi |
| 101 | 95 | ||
