Armadilloフォーラム

SE050 ミドルウェア (Plug&Trust MW) ビルドでできるフォルダ名について

sshida

2020年10月17日 12時13分

SE050 ミドルウェア (Plug&Trust MW) ビルド手順を試しております。
https://armadillo.atmark-techno.com/howto/aiot_g3m1-se050-build_middle_…

Armadillo IoT G3 M1 M を Buster に更新して、
バージョン 02.16.01 の SE050-PLUG-TRUST-MW.zip を展開し、
cmake と libssl-dev を追加インストールして、
simw-top/scripts/create_cmake_projects.py を一部変更して、
~/simw-top でガイドにある、ビルドコマンドを実行すると、ガイドとは異なる名前のフォルダができていました。

ビルドコマンドはエラーなしで終了しました。
$ python scripts/create_cmake_projects.py

できたフォルダ名はこちらでしたが、問題ないでしょうか?
 /root/simw-top_build/simw-top-eclipse_jrcpv1

ガイドにあるフォルダ名はこちらでした。
simw-top_build/imx_native_se050_t1oi2c_openssl_el2go

ビルドコマンドの表示は次のとおりです。

root@m:~/simw-top# python scripts/create_cmake_projects.py
INFO:__main__:Preprocessing /root/simw-top/ext/open62541/tools/schema/Opc.Ua.NodeSet2.Minimal.xml
INFO:__main__:Generating Code for Backend: open62541
INFO:__main__:NodeSet generation code successfully printed
 
 
### JRCP V1 on Linux
#cmake -DCMAKE_ECLIPSE_VERSION="4.5 (Mars)" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DHost=PCLinux64 -DApplet=SE05X_C -DCMAKE_BUILD_TYPE=Debug -DSMCOM=JRCP_V1 -G "Eclipse CDT4 - Unix Makefiles"
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Eclipse version is set to 4.5 (Mars). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- BUILD_TYPE: Debug
-- CMAKE_CXX_COMPILER_ID = GNU
-- CMAKE_SYSTEM_NAME = Linux
-- SE05X_Auth - None
-- Configuring done
-- Generating done
-- Build files have been written to: /root/simw-top_build/simw-top-eclipse_jrcpv1
コメント

at_mitsuhiro.yoshida

2020年10月19日 18時00分

吉田です。

お手数おかけします。

現状の、simw-top/scripts/create_cmake_projects.py
imx_native_compilation() を再度確認して頂いてもいいでしょうか?

以下の様に記載されていれば imx_native_compilation が
True になるので、simw-top_build/ 下に
imx_native_a7x_sci2c
imx_native_se050_t1oi2c
imx_native_se050_t1oi2c_openssl_el2go
が生成されるのを確認しております。

    @classmethod
    def imx_native_compilation(cls):
        print('node:', platform.node())
        if 'imx6' in platform.node():
            return True
        if 'imx8' in platform.node():
            return True
        if 'armadillo' in platform.node():
            return True
        return False

もし platform.node() の戻り値が 'armadillo' ではない場合は、
'armadillo' の部分をその値に変更するか、
一番下の return False を return True にしてしまう手もあります。

sshida

2020年10月22日 21時29分

python の platform.node() の返り値を確認すればよかったのですね。ありがとうございます。
ボード名のようなものが返るのかと思いましたが、ホスト名 (ネットワーク名) でした。

出荷時の "armadillo" というホスト名を私のほうで別名に変えていたため、おかしな状態になっていました。