ltp-ddt env.sh
export PATH=/opt/gcc-linaro-7.3.-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.-fmxx ; make headers_install; cd -
make autotools
./configure --host=arm-linux-gnueabihf make SKIP_IDCHECK= KERNEL_USR_INC=/home/liu/work/linux-4.14.-fmxx/usr/include CROSS_COMPILE=arm-linux-gnueabihf- clean
make SKIP_IDCHECK= KERNEL_USR_INC=/home/liu/work/linux-4.14.-fmxx/usr/include CROSS_COMPILE=arm-linux-gnueabihf- -j16
if [ $? -eq ]; then
# make DESTDIR=<destination directory> SKIP_IDCHECK= PLATFORM=<Platform name> install
make DESTDIR=$(pwd)/install_dir SKIP_IDCHECK= 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还是用的自己的那套系统。