c++ - 编译cyanoboot : No rule to make target

标签 c++ cygwin u-boot

我正在尝试编译找到的 cyanoboot 项目 here .我没有使用 c++ 编译的经验,但我已经按照自述文件进行了操作,但似乎遇到了瓶颈。我已经提取下载的源文件并在 cygwin 中导航到它们,然后运行命令:

make clean

看起来成功了。之后我跑

make omap4430sdp_config

这似乎也可以工作,但不会创建任何文件(不确定是否应该?)。然后,当我运行最终的 make 命令时,出现错误:

makefile:98: /cygdrive/c/cyanoboot/config.mk: No such file or directory 
make: *** No rule to make target `/cygdrive/c/cyanoboot/config.mk'.  Stop.

这个 config.mk 文件确实存在,您可以在上面的 git hub 链接中看到它,我没有更改任何文件。我已经为此苦苦挣扎了几个小时,我就是想不通。任何帮助深表感谢。谢谢。

最佳答案

这个包对我来说是新的。但是,支持多种处理器,例如 i386/m68k/arm。因此,您可能需要正确设置环境,例如 ARCH=arm 和 CROSS_COMPILE=arm-linux-gnueabi-

要检查 make config 是否有效,您可以查找修改过的或新的文件。自己做,在这里你看到一个链接已被添加: ~/cmn/CMNookTablet-acclaim_cyanoboot-02c6247$ 找到 . | xargs ls -alt |更多的 lrwxrwxrwx 1 joe joe 7 Oct 24 10:03 ./include/asm -> asm-arm ...

我用我的工具链尝试了你的构建,得到了这个 FWIW

... arm-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D_KERNEL_ -DTEXT_BASE=0x80e80000 -I/home/joe/cmn/CMNookTablet-acclaim_cyanoboot-02c6247/include -fno-builtin -ffreestanding -nostdinc -isystem/usr/lib/gcc/arm-linux-gnueabi/4.6/include -pipe -DCONFIG_ARM -D_ARM _ -march=armv7-a -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hal_services.o hal_services.c

{标准输入}:汇编器消息: {标准输入}:276: 错误:所选处理器不支持 Thumb 模式“smc#0”

make[1]: * [hal_services.o] 错误 1

make[1]: 离开目录`/home/joe/cmn/CMNookTablet-acclaim_cyanoboot-02c6247/board/omap4430sdp'

制作:* [board/omap4430sdp/libomap4430sdp.a] 错误 2

关于c++ - 编译cyanoboot : No rule to make target,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13014924/

相关文章:

c++ - 函数可以接受静态函数指针作为参数吗?

c++ - 并排定义指针和类型问题

linux - 如何查看ELF文件中包含的函数名和参数?

linux-kernel - 有没有办法让uboot知道内核启动状态

environment-variables - 如何清除以前使用 u-boot 保存的环境变量?

linux - 启动 linux 内核和独立应用程序有什么区别?

c++ - 正确使用 GetComputerName - 我是否需要为空字符保留额外的空间

c# - 如何在 C# 中将带参数的函数绑定(bind)到包中

cygwin - Python 2.7.2,Cygwin,raw_input : why does it only print the prompt after I give the input?

python - 机器人框架无法将 cygwin 创建的 .dll 文件加载到 python 脚本中