Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/tinet/netapp/Makefile.netapp

    r321 r331  
    22#   TINET (TCP/IP Protocol Stack)
    33
    4 #   Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4#   Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
    55#                    Tomakomai National College of Technology, JAPAN
    66#
     
    5050
    5151TINET_ROOT = $(SRCDIR)/tinet
    52 NETAPP_DIR = $(TINET_ROOT)/netapp
     52NETAPP_DIRS = $(TINET_ROOT)/netapp
    5353NETAPP_COBJS := $(NETAPP_COBJS) netapp_subr.o
    5454
     55ifeq ($(USE_LCD),true)
     56
     57        NETAPP_COBJS := $(NETAPP_COBJS) lcd.o
     58
     59ifeq ($(TARGET_KERNEL),ASP)
     60        NETAPP_COBJS := $(NETAPP_COBJS) target_lcd.o sc1602.o
     61endif
     62
     63ifeq ($(TARGET_KERNEL),JSP)
     64        NETAPP_COBJS := $(NETAPP_COBJS) hw_lcd.o sc1602.o
     65endif
     66
     67endif
     68
    5569#  トランスポート層の選択
    5670
    57 SUPPORT_TCP = false
    58 SUPPORT_UDP = false
     71#SUPPORT_TCP = false
     72#SUPPORT_UDP = false
    5973
    6074#
     
    6276#
    6377
     78ifeq ($(USE_WWW4_SRV),true)
     79        USE_WWW_SRV = true
     80        CDEFS := $(CDEFS) -DUSE_WWW4_SRV
     81endif
     82
    6483ifeq ($(USE_WWW_SRV),true)
    65         SUPPORT_TCP = true
    66         TCP_CFG_PASSIVE_OPEN = true
     84
     85        SUPPORT_TCP = true
    6786        USE_NETAPP_SUBR = true
    6887        CDEFS := $(CDEFS) -DUSE_WWW_SRV
    6988        NETAPP_COBJS := $(NETAPP_COBJS) wwws.o
    70         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/wwws.cfg
     89        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/wwws.cfg
     90
     91endif
     92
     93ifeq ($(USE_TCP4_ECHO_SRV),true)
     94        TCP_ECHO_SRV = tcp_echo_srv1
     95        CDEFS := $(CDEFS) -DUSE_TCP4_ECHO_SRV
    7196endif
    7297
    7398ifeq ($(TCP_ECHO_SRV),tcp_echo_srv1)            # 送受信タスク同一型
    74         SUPPORT_TCP = true
    75         TCP_CFG_PASSIVE_OPEN = true
     99
     100        SUPPORT_TCP = true
    76101        USE_NETAPP_SUBR = true
    77102        CDEFS := $(CDEFS) -DUSE_TCP_ECHO_SRV1
    78103        NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1.o
    79         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_srv1.cfg
     104        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_srv1.cfg
     105
     106        ifeq ($(USE_TCP_NON_BLOCKING),true)
     107                NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1_nblk.o
     108        endif
     109
     110        ifeq ($(USE_TCP_EXTENTIONS),true)
     111                NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1_ext.o
     112        endif
     113
    80114endif
    81115
    82116ifeq ($(TCP_ECHO_SRV),tcp_echo_srv2)            # 送受信タスク分離型
    83117        SUPPORT_TCP = true
    84         TCP_CFG_PASSIVE_OPEN = true
    85118        USE_NETAPP_SUBR = true
    86119        CDEFS := $(CDEFS) -DUSE_TCP_ECHO_SRV2
    87120        NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv2.o
    88         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_srv2.cfg
     121        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_srv2.cfg
     122endif
     123
     124ifeq ($(USE_UDP4_ECHO_SRV),true)
     125        USE_UDP_ECHO_SRV = true
    89126endif
    90127
    91128ifeq ($(USE_UDP_ECHO_SRV),true)
    92         SUPPORT_UDP = true
    93         USE_NETAPP_SUBR = true
     129
    94130        CDEFS := $(CDEFS) -DUSE_UDP_ECHO_SRV
    95         NETAPP_COBJS := $(NETAPP_COBJS) udp_echo_srv.o
    96         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/udp_echo_srv.cfg
     131
     132        ifeq ($(SUPPORT_INET6),true)
     133                SUPPORT_UDP = true
     134                USE_NETAPP_SUBR = true
     135                CDEFS := $(CDEFS) -DUSE_UDP6_ECHO_SRV_TSK
     136                NETAPP_COBJS := $(NETAPP_COBJS) udp6_echo_srv.o
     137                NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp6_echo_srv.cfg
     138
     139                ifeq ($(SUPPORT_INET4),true)
     140                        ifeq ($(USE_UDP4_ECHO_SRV),true)
     141                                CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_SRV_TSK
     142                                NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_srv.o
     143                                NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_srv.cfg
     144                        endif
     145                endif
     146        else
     147                ifeq ($(SUPPORT_INET4),true)
     148                        SUPPORT_UDP = true
     149                        USE_NETAPP_SUBR = true
     150                        CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_SRV_TSK
     151                        NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_srv.o
     152                        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_srv.cfg
     153                endif
     154        endif
     155endif
     156
     157
     158ifeq ($(USE_TCP4_ECHO_CLI),true)
     159        USE_TCP_ECHO_CLI = true
     160        CDEFS := $(CDEFS) -DUSE_TCP4_ECHO_CLI
    97161endif
    98162
     
    101165        USE_NETAPP_SUBR = true
    102166        CDEFS := $(CDEFS) -DUSE_TCP_ECHO_CLI
    103         NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_cli.o
    104         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_cli.cfg
     167        NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_cli.o tcp_echo_cli_snd.o tcp_echo_cli_rcv.o
     168        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_cli.cfg
     169endif
     170
     171ifeq ($(USE_UDP4_ECHO_CLI),true)
     172        USE_UDP_ECHO_CLI = true
    105173endif
    106174
    107175ifeq ($(USE_UDP_ECHO_CLI),true)
    108         SUPPORT_UDP = true
    109         USE_NETAPP_SUBR = true
     176
    110177        CDEFS := $(CDEFS) -DUSE_UDP_ECHO_CLI
    111         NETAPP_COBJS := $(NETAPP_COBJS) udp_echo_cli.o
    112         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/udp_echo_cli.cfg
     178
     179        ifeq ($(SUPPORT_INET6),true)
     180                SUPPORT_UDP = true
     181                USE_NETAPP_SUBR = true
     182                CDEFS := $(CDEFS) -DUSE_UDP6_ECHO_CLI_TSK
     183                NETAPP_COBJS := $(NETAPP_COBJS) udp6_echo_cli.o
     184                NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp6_echo_cli.cfg
     185       
     186                ifeq ($(SUPPORT_INET4),true)
     187                        ifeq ($(USE_UDP4_ECHO_CLI),true)
     188                                CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_CLI_TSK
     189                                NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_cli.o
     190                                NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_cli.cfg
     191                        endif
     192                endif
     193        else
     194                ifeq ($(SUPPORT_INET4),true)
     195                        SUPPORT_UDP = true
     196                        USE_NETAPP_SUBR = true
     197                        CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_CLI_TSK
     198                        NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_cli.o
     199                        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_cli.cfg
     200                endif
     201
     202        endif
    113203endif
    114204
    115205ifeq ($(USE_TCP_DISCARD_SRV),true)
    116206        SUPPORT_TCP = true
    117         TCP_CFG_PASSIVE_OPEN = true
    118207        USE_NETAPP_SUBR = true
    119208        CDEFS := $(CDEFS) -DUSE_TCP_DISCARD_SRV
    120209        NETAPP_COBJS := $(NETAPP_COBJS) tcp_discard_srv.o
    121         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_discard_srv.cfg
     210        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_discard_srv.cfg
    122211endif
    123212
     
    127216        CDEFS := $(CDEFS) -DUSE_TCP_DISCARD_CLI
    128217        NETAPP_COBJS := $(NETAPP_COBJS) tcp_discard_cli.o
    129         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_discard_cli.cfg
     218        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_discard_cli.cfg
    130219endif
    131220
     
    135224        CDEFS := $(CDEFS) -DUSE_UDP_DISCARD_CLI
    136225        NETAPP_COBJS := $(NETAPP_COBJS) udp_discard_cli.o
    137         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/udp_discard_cli.cfg
     226        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp_discard_cli.cfg
    138227endif
    139228
     
    141230        ifeq ($(TCP_CFG_NON_BLOCKING),true)
    142231                SUPPORT_TCP = true
    143                 TCP_CFG_PASSIVE_OPEN = true
    144232                USE_DBG_CONS = true
    145233                USE_NETAPP_SUBR = true
    146234                CDEFS := $(CDEFS) -DUSE_NET_CONS
    147235                NETAPP_COBJS := $(NETAPP_COBJS) net_cons.o
    148                 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/net_cons.cfg
     236                NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/net_cons.cfg
    149237        endif
    150238endif
    151239
    152240ifeq ($(USE_DBG_CONS),true)
    153 
    154241        USE_NETAPP_SUBR = true
    155242        CDEFS := $(CDEFS) -DUSE_DBG_CONS
    156243        NETAPP_COBJS := $(NETAPP_COBJS) dbg_cons.o
    157         NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/dbg_cons.cfg
    158 
     244        NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/dbg_cons.cfg
     245        ifeq ($(USE_DBG_CONS_PARSER),true)
     246                CDEFS := $(CDEFS) -DUSE_DBG_CONS_PARSER
     247        endif
     248        ifeq ($(USE_DBG_CONS_EXTRA_PARSE),true)
     249                CDEFS := $(CDEFS) -DUSE_DBG_CONS_EXTRA_PARSE
     250        endif
    159251endif
    160252
    161253ifeq ($(USE_PING),true)
    162 
    163254        USE_NETAPP_SUBR = true
    164255        CDEFS := $(CDEFS) -DUSE_PING
    165 
    166256        ifeq ($(SUPPORT_INET4),true)
    167 
    168257                NETAPP_COBJS := $(NETAPP_COBJS) ping.o
    169258        endif
    170 
    171259        ifeq ($(SUPPORT_INET6),true)
    172 
    173260                NETAPP_COBJS := $(NETAPP_COBJS) ping6.o
    174261        endif
    175 
     262endif
     263
     264ifeq ($(USE_RESOLVER),true)
     265        SUPPORT_UDP = true
     266        CDEFS := $(CDEFS) -DUSE_RESOLVER
     267        NETAPP_COBJS := $(NETAPP_COBJS) resolver.o
     268
     269endif
     270
     271ifeq ($(USE_DHCP6_CLI),true)
     272        ifeq ($(SUPPORT_INET6),true)
     273                SUPPORT_UDP = true
     274                UDP_CFG_NON_BLOCKING = true
     275                USE_UDP_NON_BLOCKING = true
     276                CDEFS := $(CDEFS) -DDHCP6_CLI_CFG
     277                NETAPP_COBJS := $(NETAPP_COBJS) dhcp6_cli.o
     278        endif
     279endif
     280
     281ifeq ($(USE_DHCP4_CLI),true)
     282        ifeq ($(SUPPORT_INET4),true)
     283                SUPPORT_UDP = true
     284                UDP_CFG_NON_BLOCKING = true
     285                USE_UDP_NON_BLOCKING = true
     286                CDEFS := $(CDEFS) -DDHCP4_CLI_CFG
     287                NETAPP_COBJS := $(NETAPP_COBJS) dhcp4_cli.o
     288        endif
    176289endif
    177290
     
    180293endif
    181294
     295ifeq ($(API_CFG_IP4MAPPED_ADDR),true)
     296        CDEFS := $(CDEFS) -DAPI_CFG_IP4MAPPED_ADDR
     297endif
     298
    182299ifeq ($(USE_COPYSAVE_API),true)
    183300        CDEFS := $(CDEFS) -DUSE_COPYSAVE_API
    184 endif
    185 
    186 ifndef TCP_CFG_PASSIVE_OPEN
    187         CDEFS := $(CDEFS) -DUNDEF_TCP_CFG_PASSIVE_OPEN
    188301endif
    189302
     
    241354endif
    242355
     356ifeq ($(USE_LCD),true)
     357        CDEFS := $(CDEFS) -DUSE_LCD
     358endif
     359
    243360#
    244361#  アプリケーションプログラムに関する定義への追加
     
    247364ifeq ($(TARGET_KERNEL),ASP)
    248365
    249         APPLDIR := $(APPLDIR) $(NETAPP_DIR)
     366        APPLDIR := $(APPLDIR) $(NETAPP_DIRS)
    250367        APPL_COBJS := $(APPL_COBJS) $(NETAPP_COBJS)
    251368        APPL_CFLAGS := $(APPL_CFLAGS) -fno-strict-aliasing
     
    255372ifeq ($(TARGET_KERNEL),JSP)
    256373
    257         UTASK_DIR := $(UTASK_DIR):$(NETAPP_DIR)
     374        UTASK_DIRS := $(UTASK_DIRS):$(NETAPP_DIRS)
    258375        UTASK_COBJS := $(UTASK_COBJS) $(NETAPP_COBJS)
    259376        UTASK_CFLAGS := $(UTASK_CFLAGS) -fno-strict-aliasing
     
    261378endif
    262379
     380ifeq ($(USE_LCD),true)
     381
     382ifeq ($(TARGET_KERNEL),ASP)
     383
     384        APPLDIR := $(APPLDIR) $(SRCDIR)/pdic/sc1602
     385
     386endif
     387
     388ifeq ($(TARGET_KERNEL),JSP)
     389
     390        UTASK_DIRS := $(UTASK_DIRS):$(SRCDIR)/pdic/sc1602
     391
     392endif
     393
     394endif
     395
    263396#
    264397#  TINET コンフィギュレーションファイルの定義への追加
Note: See TracChangeset for help on using the changeset viewer.