Changeset 445


Ignore:
Timestamp:
Jul 15, 2020, 7:43:12 AM (4 years ago)
Author:
coas-nagasima
Message:

ROMファイルシステムのWebコンテンツをwwwフォルダ下に移動。
etcフォルダ追加。

Location:
EcnlProtoTool/trunk
Files:
53 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/Debug/Makefile

    r442 r445  
    221221        APPL_COBJS := main.o fdtable.o stdio_stub.o pipe_stub.o io_stub.o socket_stub.o ffarch.o diskio.o ff.o sdfs.o ccsbcs.o base64.o http-strings.o http_parser.o httpd.o httpd-fs.o sha1.o websocket.o websocket_fbs.o ntshell.o text_editor.o text_history.o usrcmd.o vtrecv.o vtsend.o ntstdio.o ntopt.o syscall.o mbedcall.o ping.o ping6.o resolver.o dhcp4_cli.o netapp_subr.o ntp_cli.o net_misc.o netcmd.o newlib_stub.o shellif.o
    222222endif
    223 APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o mbed_stub.o
    224 APPL_BINOBJS := httpd_fs.o
     223APPL_COBJS := $(APPL_COBJS) log_output.o vasyslog.o t_perror.o strerror.o mbed_stub.o rom_fs.o
    225224APPL_CFLAGS := $(APPL_CFLAGS)
    226225ifdef APPLDIRS
     
    370369#
    371370vpath %.c $(KERNEL_DIRS) $(SYSSVC_DIRS) $(APPL_DIRS)
     371vpath %.cpp $(APPL_DIRS)
    372372vpath %.S $(KERNEL_DIRS) $(SYSSVC_DIRS) $(APPL_DIRS)
    373373vpath %.cfg $(APPL_DIRS)
     
    689689
    690690$(APPL_BINOBJS): $(OBJDIR)/%.o: %.bin
    691         $(OBJCOPY) -B arm -I binary -O elf32-littlearm --rename-section .data=.rodata $< $(OBJDIR)/$*.o
     691        $(OBJCOPY) -B arm -I binary -O elf32-littlearm --rename-section .data=.rodata $< $@
    692692
    693693#
  • EcnlProtoTool/trunk/ntshell/fatfs/diskio.c

    r434 r445  
    1515#define MAX_DRIVES      1       /* Max number of physical drives to be used */
    1616
    17 #define RamDisk _binary____webserver_httpd_fs_bin_start
    1817extern unsigned char RamDisk[];
    1918
  • EcnlProtoTool/trunk/ntshell/webserver/httpd.c

    r442 r445  
    203203                s->filename = &s->message.filename[sizeof(s->message.filename) - 2];
    204204                strcpy_s(s->filename, sizeof(s->message.request_url) + 2, "0:");
     205                strcat_s(s->filename, sizeof(s->message.request_url) + 2, http_www);
    205206                strcat_s(s->filename, sizeof(s->message.request_url) + 2, http_index_html);
    206207                s->file.redirect = 1;
     
    210211                s->filename = &s->message.filename[sizeof(s->message.filename) - 2 - sizeof(http_www) - 1 + 2];
    211212                memcpy(s->filename, "1:", 2);
    212                 memcpy(s->filename, http_www, sizeof(http_www) - 1);
     213                memcpy(&s->filename[2], http_www, sizeof(http_www) - 1);
    213214        }
    214215        else {
    215                 s->filename = &s->message.filename[sizeof(s->message.filename) - 2];
     216                s->filename = &s->message.filename[sizeof(s->message.filename) - 2 - sizeof(http_www) - 1 + 2];
    216217                memcpy(s->filename, "0:", 2);
     218                memcpy(&s->filename[2], http_www, sizeof(http_www) - 1);
    217219        }
    218220        return 0;
  • EcnlProtoTool/trunk/prototool/.cproject

    r444 r445  
    156156                                                                </option>
    157157                                                                <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs.2115660767" name="Other objects" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs" useByScannerDiscovery="false" valueType="userObjs">
    158                                                                         <listOptionValue builtIn="false" value="&quot;${workspace_loc:/musl-1.1.18/lib/crt1.o}&quot;"/>
     158                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/musl-1.1.18/Debug/crt1.o}&quot;"/>
    159159                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/musl-1.1.18/Debug/libmusl.a}&quot;"/>
    160160                                                                        <listOptionValue builtIn="false" value="&quot;${TCINSTALL}/lib/gcc/arm-none-eabi/${GCC_VERSION}/thumb/v7-ar/fpv3/hard/libgcc.a&quot;"/>
  • EcnlProtoTool/trunk/webapp/webmrbc/copy.bat

    r439 r445  
    1 del /Q /S ..\..\httpd-fs
     1del /Q /S ..\..\ntshell\rom_fs\www
    22
    3 mkdir ..\..\httpd-fs
    4 mkdir ..\..\httpd-fs\ace
    5 mkdir ..\..\httpd-fs\bootstrap
    6 mkdir ..\..\httpd-fs\bootstrap\css
    7 mkdir ..\..\httpd-fs\bootstrap\fonts
    8 mkdir ..\..\httpd-fs\bootstrap\js
    9 mkdir ..\..\httpd-fs\css
    10 mkdir ..\..\httpd-fs\img
    11 mkdir ..\..\httpd-fs\js
    12 mkdir ..\..\httpd-fs\xterm
    13 mkdir ..\..\httpd-fs\xterm\addons
    14 mkdir ..\..\httpd-fs\xterm\addons\fit
    15 mkdir ..\..\httpd-fs\xterm\src
     3mkdir ..\..\ntshell\rom_fs\www
     4mkdir ..\..\ntshell\rom_fs\www\ace
     5mkdir ..\..\ntshell\rom_fs\www\bootstrap
     6mkdir ..\..\ntshell\rom_fs\www\bootstrap\css
     7mkdir ..\..\ntshell\rom_fs\www\bootstrap\fonts
     8mkdir ..\..\ntshell\rom_fs\www\bootstrap\js
     9mkdir ..\..\ntshell\rom_fs\www\css
     10mkdir ..\..\ntshell\rom_fs\www\img
     11mkdir ..\..\ntshell\rom_fs\www\js
     12mkdir ..\..\ntshell\rom_fs\www\xterm
     13mkdir ..\..\ntshell\rom_fs\www\xterm\addons
     14mkdir ..\..\ntshell\rom_fs\www\xterm\addons\fit
     15mkdir ..\..\ntshell\rom_fs\www\xterm\src
    1616
    1717rem java -jar ..\..\tools\yuicompressor-2.4.8.jar mrbc.js -o mrbc.min.js
     
    2525java -jar ..\..\tools\yuicompressor-2.4.8.jar xterm\src\xterm.js -o xterm\src\xterm.min.js
    2626
    27 copy /Y ace\ace.min.js ..\..\httpd-fs\ace\ace.js
    28 copy /Y ace\mode-ruby.min.js ..\..\httpd-fs\ace\mode-ruby.js
    29 copy /Y ace\theme-twilight.min.js ..\..\httpd-fs\ace\theme-twilight.js
    30 copy /Y arduino_toolbox.xml ..\..\httpd-fs\arduino_toolbox.xml
    31 copy /Y bootstrap\css\bootstrap-theme.min.css ..\..\httpd-fs\bootstrap\css\bootstrap-theme.min.css
    32 copy /Y bootstrap\css\bootstrap.min.css ..\..\httpd-fs\bootstrap\css\bootstrap.min.css
    33 copy /Y bootstrap\fonts\glyphicons-halflings-regular.eot ..\..\httpd-fs\bootstrap\fonts\glyphicons-halflings-regular.eot
    34 copy /Y bootstrap\fonts\glyphicons-halflings-regular.svg ..\..\httpd-fs\bootstrap\fonts\glyphicons-halflings-regular.svg
    35 copy /Y bootstrap\fonts\glyphicons-halflings-regular.ttf ..\..\httpd-fs\bootstrap\fonts\glyphicons-halflings-regular.ttf
    36 copy /Y bootstrap\fonts\glyphicons-halflings-regular.woff ..\..\httpd-fs\bootstrap\fonts\glyphicons-halflings-regular.woff
    37 copy /Y bootstrap\fonts\glyphicons-halflings-regular.woff2 ..\..\httpd-fs\bootstrap\fonts\glyphicons-halflings-regular.woff2
    38 copy /Y bootstrap\js\bootstrap.min.js ..\..\httpd-fs\bootstrap\js\bootstrap.min.js
    39 copy /Y css\webmrbc.min.css ..\..\httpd-fs\css\webmrbc.css
    40 copy /Y echonet_objects.min.json ..\..\httpd-fs\echonet_objects.json
    41 copy /Y ecnl_toolbox.xml ..\..\httpd-fs\ecnl_toolbox.xml
    42 copy /Y favicon.ico ..\..\httpd-fs\favicon.ico
    43 copy /Y img\banner.svg ..\..\httpd-fs\img\banner.svg
    44 copy /Y img\core-s.svg ..\..\httpd-fs\img\core-s.svg
    45 copy /Y img\no_image.png ..\..\httpd-fs\img\no_image.png
    46 copy /Y index.min.html ..\..\httpd-fs\index.html
    47 copy /Y information.json ..\..\httpd-fs\information.json
    48 copy /Y js\FileSaver.min.js ..\..\httpd-fs\js\FileSaver.min.js
    49 copy /Y js\jquery-3.1.0.min.js ..\..\httpd-fs\js\jquery-3.1.0.min.js
    50 copy /Y js\jszip.min.js ..\..\httpd-fs\js\jszip.min.js
    51 copy /Y /B js\blockly_compressed.js + js\bridge.min.js + js\webmrbc.min.js ..\..\httpd-fs\js\webmrbc.min.js
    52 copy /Y mrbc.min.js ..\..\httpd-fs\mrbc.min.js
    53 copy /Y mrbc.wasm ..\..\httpd-fs\mrbc.wasm
    54 copy /Y xterm\addons\fit\fit.min.js ..\..\httpd-fs\xterm\addons\fit\fit.js
    55 copy /Y xterm\src\xterm.min.css ..\..\httpd-fs\xterm\src\xterm.css
    56 copy /Y xterm\src\xterm.min.js ..\..\httpd-fs\xterm\src\xterm.js
     27copy /Y ace\ace.min.js ..\..\ntshell\rom_fs\www\ace\ace.js
     28copy /Y ace\mode-ruby.min.js ..\..\ntshell\rom_fs\www\ace\mode-ruby.js
     29copy /Y ace\theme-twilight.min.js ..\..\ntshell\rom_fs\www\ace\theme-twilight.js
     30copy /Y arduino_toolbox.xml ..\..\ntshell\rom_fs\www\arduino_toolbox.xml
     31copy /Y bootstrap\css\bootstrap-theme.min.css ..\..\ntshell\rom_fs\www\bootstrap\css\bootstrap-theme.min.css
     32copy /Y bootstrap\css\bootstrap.min.css ..\..\ntshell\rom_fs\www\bootstrap\css\bootstrap.min.css
     33copy /Y bootstrap\fonts\glyphicons-halflings-regular.eot ..\..\ntshell\rom_fs\www\bootstrap\fonts\glyphicons-halflings-regular.eot
     34copy /Y bootstrap\fonts\glyphicons-halflings-regular.svg ..\..\ntshell\rom_fs\www\bootstrap\fonts\glyphicons-halflings-regular.svg
     35copy /Y bootstrap\fonts\glyphicons-halflings-regular.ttf ..\..\ntshell\rom_fs\www\bootstrap\fonts\glyphicons-halflings-regular.ttf
     36copy /Y bootstrap\fonts\glyphicons-halflings-regular.woff ..\..\ntshell\rom_fs\www\bootstrap\fonts\glyphicons-halflings-regular.woff
     37copy /Y bootstrap\fonts\glyphicons-halflings-regular.woff2 ..\..\ntshell\rom_fs\www\bootstrap\fonts\glyphicons-halflings-regular.woff2
     38copy /Y bootstrap\js\bootstrap.min.js ..\..\ntshell\rom_fs\www\bootstrap\js\bootstrap.min.js
     39copy /Y css\webmrbc.min.css ..\..\ntshell\rom_fs\www\css\webmrbc.css
     40copy /Y echonet_objects.min.json ..\..\ntshell\rom_fs\www\echonet_objects.json
     41copy /Y ecnl_toolbox.xml ..\..\ntshell\rom_fs\www\ecnl_toolbox.xml
     42copy /Y favicon.ico ..\..\ntshell\rom_fs\www\favicon.ico
     43copy /Y img\banner.svg ..\..\ntshell\rom_fs\www\img\banner.svg
     44copy /Y img\core-s.svg ..\..\ntshell\rom_fs\www\img\core-s.svg
     45copy /Y img\no_image.png ..\..\ntshell\rom_fs\www\img\no_image.png
     46copy /Y index.min.html ..\..\ntshell\rom_fs\www\index.html
     47copy /Y information.json ..\..\ntshell\rom_fs\www\information.json
     48copy /Y js\FileSaver.min.js ..\..\ntshell\rom_fs\www\js\FileSaver.min.js
     49copy /Y js\jquery-3.1.0.min.js ..\..\ntshell\rom_fs\www\js\jquery-3.1.0.min.js
     50copy /Y js\jszip.min.js ..\..\ntshell\rom_fs\www\js\jszip.min.js
     51copy /Y /B js\blockly_compressed.js + js\bridge.min.js + js\webmrbc.min.js ..\..\ntshell\rom_fs\www\js\webmrbc.min.js
     52copy /Y mrbc.min.js ..\..\ntshell\rom_fs\www\mrbc.min.js
     53copy /Y mrbc.wasm ..\..\ntshell\rom_fs\www\mrbc.wasm
     54copy /Y xterm\addons\fit\fit.min.js ..\..\ntshell\rom_fs\www\xterm\addons\fit\fit.js
     55copy /Y xterm\src\xterm.min.css ..\..\ntshell\rom_fs\www\xterm\src\xterm.css
     56copy /Y xterm\src\xterm.min.js ..\..\ntshell\rom_fs\www\xterm\src\xterm.js
    5757
    58 CD ..\..\
    59 call tools\makefsdata.exe
    60 
    61 copy /Y httpd-fs.bin ntshell\webserver\httpd_fs.bin
     58CD ..\..\ntshell
     59call ..\tools\makefsdata.exe
Note: See TracChangeset for help on using the changeset viewer.