zoukankan      html  css  js  c++  java
  • ltp-ddt makefile的思考

    ltp-ddt env.sh

    export PATH=/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:$PATH
    
    export CROSS_COMPILER=arm-linux-gnueabihf-
    export CC=${CROSS_COMPILER}gcc
    export LD=${CROSS_COMPILER}ld
    export AR=${CROSS_COMPILER}ar
    export STRIP=${CROSS_COMPILER}strip
    export RANLIB=${CROSS_COMPILER}ranlib
    
    # cd ../linux-4.14.55-fmxx ; make headers_install; cd -
    make autotools
    ./configure --host=arm-linux-gnueabihf
    
    make SKIP_IDCHECK=1 KERNEL_USR_INC=/home/liu/work/linux-4.14.55-fmxx/usr/include CROSS_COMPILE=arm-linux-gnueabihf- clean
    make SKIP_IDCHECK=1 KERNEL_USR_INC=/home/liu/work/linux-4.14.55-fmxx/usr/include CROSS_COMPILE=arm-linux-gnueabihf- -j16
    if [ $? -eq 0 ]; then
        # make DESTDIR=<destination directory> SKIP_IDCHECK=1 PLATFORM=<Platform name> install
        make DESTDIR=$(pwd)/install_dir SKIP_IDCHECK=1 PLATFORM=fmxx-psoc-db install
    fi
    make autotools

    在Makefile中
    include $(top_srcdir)/include/mk/automake.mk
    automake.mk中有autotools目标

    ./configure --host=arm-linux-gnueabihf


    checking for struct xt_entry_match... yes
    checking for struct xt_entry_target... yes
    checking for __atomic_* compiler builtins... yes
    checking for struct tpacket_req3... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating include/mk/config.mk
    config.status: creating include/mk/config-openposix.mk
    config.status: creating include/mk/features.mk
    config.status: creating lib/ltp.pc
    config.status: creating m4/Makefile
    config.status: creating execltp
    config.status: creating include/config.h
    config.status: executing depfiles commands
    config.status: executing syscalls.h commands
    Generating data for arch aarch64 ...
    Generating data for arch arm ...
    Generating data for arch hppa ...
    Generating data for arch i386 ...
    Generating data for arch ia64 ...
    Generating data for arch powerpc64 ...
    Generating data for arch powerpc ...
    Generating data for arch s390x ...
    Generating data for arch s390 ...
    Generating data for arch sh ...
    Generating data for arch sparc64 ...
    Generating data for arch sparc ...
    Generating stub list ...
    Generating data for arch x86_64 ...
    Combining them all ... OK!
    === configuring in utils/ffsb-6.0-rc2 (/home/zhangyi/work/psoc_ltp/ltp-ddt-fmxx-psoc-bkup/utils/ffsb-6.0-rc2)
    configure: running /bin/sh ./configure --disable-option-checking '--prefix=/opt/ltp'  '--host=arm-linux-gnueabihf' 'host_alias=arm-linux-gnueabihf' --cache-file=/dev/null --srcdir=.
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p



    checking for lrand48_r... yes
    checking for srand48_r... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing default commands

    看了一下生成的时间和内容,貌似是config.status: creating m4/Makefile这个Makefile
    但是找遍代码,没有看到哪里用到了,高度怀疑配置的内容在include/mk/config.mk和include/mk/features.mk

    Makefile还是用的自己的那套系统。



  • 相关阅读:
    newifi3-D2 openwrt挂载u盘扩容/overlay
    # mac使用homebrew安装jdk和tomcat
    React学习小记--setState的同步与异步
    [vscode直接运行js文件报错]: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
    # js权威指南之对象篇
    # 初体验之腾讯位置服务彩云天气开发者api
    自用资源合集(持续更新)
    网页嵌入播客
    网页嵌入音乐歌单
    All live
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/10640783.html
Copyright © 2011-2022 走看看