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-fmsh ; make headers_install; cd -
make autotools
./configure --host=arm-linux-gnueabihf

make SKIP_IDCHECK=1 KERNEL_USR_INC=/home/liulei/work/linux-4.14.55-fmsh/usr/include CROSS_COMPILE=arm-linux-gnueabihf- clean
make SKIP_IDCHECK=1 KERNEL_USR_INC=/home/liulei/work/linux-4.14.55-fmsh/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=fmsh-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-fmsh-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还是用的自己的那套系统。



转载于:https://www.cnblogs.com/idyllcheung/p/10640783.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值