嗯,按照你说的方法,果然可行:
先执行
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_config
然后执行
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm
就可以成功编译了。但是不知道加上all不啥就不行了呢,我在Makefile中添加一些调试信息发现 这一句
mv $@.tmp $@ 没有执行成功,不知道为啥。
701 #
702 # Auto-generate the autoconf.mk file (which is included by all makefiles)
703 #
704 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
705 # the dep file is only include in this top level makefile to determine when
706 # to regenerate the autoconf.mk file.
707 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
708 @$(XECHO) Generating $@ ;
709 set -e ;
710 : Generate the dependancies ;
711 $(CC) -x c -DDO_DEPS_ONLY -M $(CFLAGS) $(CPPFLAGS)
712 -MQ $(obj)include/autoconf.mk include/common.h > $@
713
714 $(obj)include/autoconf.mk: $(obj)include/config.h
715 @$(XECHO) Generating $@ ;
716 set -e ;
717 : Extract the config macros ;
718 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h |
719 sed -n -f tools/scripts/define2mk.sed > $@.tmp &&
720
mv $@.tmp $@
嗯,按照你说的方法,果然可行:
先执行
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_config
然后执行
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm
就可以成功编译了。但是不知道加上all不啥就不行了呢,我在Makefile中添加一些调试信息发现 这一句
mv $@.tmp $@ 没有执行成功,不知道为啥。
701 #
702 # Auto-generate the autoconf.mk file (which is included by all makefiles)
703 #
704 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
705 # the dep file is only include in this top level makefile to determine when
706 # to regenerate the autoconf.mk file.
707 $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
708 @$(XECHO) Generating $@ ;
709 set -e ;
710 : Generate the dependancies ;
711 $(CC) -x c -DDO_DEPS_ONLY -M $(CFLAGS) $(CPPFLAGS)
712 -MQ $(obj)include/autoconf.mk include/common.h > $@
713
714 $(obj)include/autoconf.mk: $(obj)include/config.h
715 @$(XECHO) Generating $@ ;
716 set -e ;
717 : Extract the config macros ;
718 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h |
719 sed -n -f tools/scripts/define2mk.sed > $@.tmp &&
720
mv $@.tmp $@
举报