mirror of https://github.com/wolfSSL/wolfssh.git
add ide/MQX/include.am, README, Makefile
parent
69791e1ff2
commit
94bf4a83c8
|
@ -0,0 +1,89 @@
|
||||||
|
WOLFSSL_ROOT = ../../../wolfssl
|
||||||
|
WOLFSSH_ROOT = ../..
|
||||||
|
MQX_ROOT = /mnt/c/Freescale/Freescale_MQX_4_1
|
||||||
|
CC = arm-none-eabi-gcc
|
||||||
|
AR = arm-none-eabi-ar
|
||||||
|
|
||||||
|
MQXLIB =
|
||||||
|
WOLFSSL_MKDIR = $(WOLFSSL_ROOT)/IDE/MQX
|
||||||
|
WOLFLIBS = $(WOLFSSHLIB) $(WOLFSSL_MKDIR)/libwolfssl.a
|
||||||
|
WOLFSSHLIB = ./libwolfssh.a
|
||||||
|
|
||||||
|
OPTIMIZE = -O2
|
||||||
|
|
||||||
|
WORNING = \
|
||||||
|
-Wno-int-to-pointer-cast\
|
||||||
|
-Wno-incompatible-pointer-types\
|
||||||
|
-Wno-discarded-qualifiers\
|
||||||
|
-Wno-int-conversion\
|
||||||
|
-Wno-implicit-function-declaration\
|
||||||
|
-Wno-pointer-to-int-cast\
|
||||||
|
-Wno-format
|
||||||
|
|
||||||
|
SETTINGS_H = -DWOLFSSL_USER_SETTINGS -DWOLFSSL_TEST_H -I$(WOLFSSL_MKDIR)
|
||||||
|
CONFIG_H = -DHAVE_CONFIG_H
|
||||||
|
CFLAGS = $(OPTIMIZE) -I$(WOLFSSH_ROOT) -I$(WOLFSSL_ROOT) $(CONFIG_H) $(SETTINGS_H) -I. $(MQX_INCLUDE) $(WORNING)
|
||||||
|
|
||||||
|
MQX_INCLUDE = -I$(MQX_ROOT)/mqx/source/include\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/psp/cortex_m\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/psp/cortex_a/compiler/gcc_arm\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/psp/cortex_m/cpu\
|
||||||
|
-I$(MQX_ROOT)/mfs/source/include\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/bsp/twrk70f120m\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/cm\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/lpm\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/serial\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/dma\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/spi\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/i2c\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/io_mem\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/io_null\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/enet\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/enet/macnet\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/lwgpio\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/gpio\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/gpio/kgpio\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/esdhc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/sdcard\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/sdcard/sdcard_spi\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/sdcard/sdcard_esdhc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/pccard\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/pcflash\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/adc/kadc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/adc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/lwadc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/flashx\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/flashx/freescale\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/hwtimer\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/rtc\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/debug\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/tchres\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/nandflash\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/timer\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/usb\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/hmi\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/sai\
|
||||||
|
-I$(MQX_ROOT)/mqx/source/io/rtcs\
|
||||||
|
-I$(MQX_ROOT)/rtcs/source/include
|
||||||
|
|
||||||
|
OBJ =\
|
||||||
|
$(WOLFSSH_ROOT)/src/agent.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/internal.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/io.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/keygen.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/log.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/port.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/ssh.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/wolfscp.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/wolfsftp.o\
|
||||||
|
$(WOLFSSH_ROOT)/src/wolfterm.o\
|
||||||
|
|
||||||
|
|
||||||
|
all : wolfsshlib echoserver
|
||||||
|
|
||||||
|
wolfsshlib : $(OBJ)
|
||||||
|
$(AR) r $(WOLFSSHLIB) $(OBJ)
|
||||||
|
echoserver : $(WOLFLIBS) $(WOLFSSL_MKDIR)/user_settings.h
|
||||||
|
$(CC) -o echoserver $(CFLAGS) $(WOLFSSH_ROOT)/examples/echoserver/echoserver.c $(WOLFLIBS) $(MQXLIB)
|
||||||
|
clean :
|
||||||
|
rm $(OBJ) $(WOLFSSHLIB)
|
|
@ -0,0 +1,25 @@
|
||||||
|
# MQX向けビルド方法
|
||||||
|
## 概要
|
||||||
|
このMakefileはwolfSSHライブラリーとサンプルプログラムをMQX向けにビルドするためのものです。
|
||||||
|
以下のターゲットを含んでいます。
|
||||||
|
- wolfsshlib: wolfSSH静的ライブラリー
|
||||||
|
- echoserver: Echoサーバサンプルプログラム
|
||||||
|
|
||||||
|
|
||||||
|
## 準備
|
||||||
|
- 事前にMQXをインストールしておいてください。
|
||||||
|
- 事前にwolfSSHを有効化したwolfSSLの静的ライブラリーをビルドしておいてください。
|
||||||
|
|
||||||
|
## 設定
|
||||||
|
- wolfSSH コンフィグレーションオプション
|
||||||
|
<wolfSSH-root>/ide/MQX/user_settings.hファイルに必要なオプションを追加または削除してください。
|
||||||
|
|
||||||
|
- Makefileの設定
|
||||||
|
WOLFSSL_ROOT:wolfSSLソースコードのルート
|
||||||
|
WOLFSSH_ROOT:Makefileの格納位置を変える場合はこの定義を変更してください
|
||||||
|
MQX_ROOT: MQX のインストールパス
|
||||||
|
MQXLIB: リンクするMQX ライブラリのパス
|
||||||
|
CC: コンパイラコマンド
|
||||||
|
AR: ARコマンド
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#How to build with MQX
|
||||||
|
## Overview
|
||||||
|
This Makefile is for building wolfSSH library and echoserver sample program running with MQX.
|
||||||
|
It has following tartes.
|
||||||
|
- wolfsshlib: wolfSSH static library
|
||||||
|
- echoserver: Simple echo-server example
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
- Installed MQX
|
||||||
|
- wolfSSH enabled wolfSSL static library
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
- wolfSSH configuration parameters
|
||||||
|
You can add or remove configuration options in <wolfSSH-root>/ide/MQX/user_settings.h.
|
||||||
|
|
||||||
|
- Setup Makefile
|
||||||
|
WOLFSSL_ROOT: wolfSSL install path
|
||||||
|
WOLFSSH_ROOT: change this if you move this Makefile location
|
||||||
|
MQX_ROOT: MQX source code installed path
|
||||||
|
MQXLIB: MQX library path to like with
|
||||||
|
CC: compiler
|
||||||
|
AR: archiver
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# vim:ft=automake
|
||||||
|
# included from Top Level Makefile.am
|
||||||
|
# All paths should be given relative to the root
|
||||||
|
|
||||||
|
EXTRA_DIST+= ide/MQX/Makefile
|
||||||
|
EXTRA_DIST+= ide/MQX/README-jp.md
|
||||||
|
EXTRA_DIST+= ide/MQX/README.md
|
|
@ -4,5 +4,6 @@
|
||||||
|
|
||||||
include ide/winvs/include.am
|
include ide/winvs/include.am
|
||||||
include ide/CSBENCH/include.am
|
include ide/CSBENCH/include.am
|
||||||
|
include ide/MQX/include.am
|
||||||
|
|
||||||
EXTRA_DIST += ide/Renesas
|
EXTRA_DIST += ide/Renesas
|
||||||
|
|
Loading…
Reference in New Issue