代码拉取完成,页面将自动刷新
修改script/common.mk里根据本机环境配置CROSS_COMPILE所指向位置
ifeq ("$(ARCH)", "arm926")
CROSS_COMPILE =/opt/EasyArm/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-
endif
修改Makefile里的 /work/armdebug/ 目录修改成本机nfs目录
acopy_all:
cp $(OUTPUT_DIR)-$(ARCH)/$(OUTPUT_ELF) /work/armdebug/
acopy_bin:
cp $(OUTPUT_DIR)-$(ARCH)/$(OUTPUT_BIN) /work/armdebug/
acopy_mlib:
cp $(OUTPUT_DIR)-$(ARCH)/$(OUTPUT_SO) /work/armdebug/$(OUTPUT_DIR)-$(ARCH)
cp $(OUTPUT_DIR)-$(ARCH)/$(OUTPUT_A) /work/armdebug/$(OUTPUT_DIR)-$(ARCH)
如下有两个子工程,pi1、pi2,输出文件都是 elf格式 ,默认工程 DP 是pi2,在不加参数情况下直接make就是编译该工程
root@UbuntuServer:mx287_feature_demo$ make lp
pi1=script/default
pi1_arg=elf
pi2=script/watchdog
pi2_arg=elf
DP=pi1
root@UbuntuServer:mx287_feature_demo$ make all
make DP=pi1 --no-print-directory
ARCH [arm926]
create release-arm926/spidev_test.elf
make DP=pi2 --no-print-directory
ARCH [arm926]
compile src/watchdog-simple.c
create release-arm926/watchdog-simple.elf
root@UbuntuServer:mx287_feature_demo$ ls release-arm926/
spidev_test.elf watchdog-simple.elf
拷贝所有输出文件到nfs目录
root@UbuntuServer:mx287_feature_demo$ make copy
cp release-arm926/spidev_test.elf /work/armdebug/
cp release-arm926/watchdog-simple.elf /work/armdebug/
只编译工程pi2
只拷贝工程pi2到nfs目录
只清除工程pi2输出内容
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。