3.2导入u-boot工程
由于只是测试所用,笔者下载的是征对beaglebone这块板子配置好的u-boot源码。
File->New->Project
将路径指向到已存在的u-boot中:
3.3为u-boot工程设置一些选项
我们要设置好使用何种交叉工具链,指定好交叉工具链的路径,指定好要使用的MinGW/MSYS中linux命令的路径,然后做好编译u-boot时需要的编译选项。
在工程u-boot处右击,选择Properties:
C/C++ Bulid ->Environment->Add Name: CROSS_COMPILE Value: arm-none-linux-gnueabi-
Name: PATH Value:
D:\\MinGW\\bin;D:\\MinGW\\msys\\1.0\\bin;D:\\Sourcery_CodeBench_Lite_for_ARM_EABI\\bin
在C/C++ Build下,选择Builder Settings,将Use default build command前面的钩取消,在下面Build command中添加: make CROSS_COMPILE=$(CROSS_COMPILE),选择Behavior,在Build(Incremental build)和clean 前打钩,将Build(Incremental build)后的all去掉:
在C/C++ Build->Settings 中钩上GNU Elf Parser,然后在弹出的addr2line command和c++filt command中指明路径:
D:\\Sourcery_CodeBench_Lite_for_ARM_EABI\\bin\\arm-none-linux-gnueabi-addr2line.exe D:\\Sourcery_CodeBench_Lite_for_ARM_EABI\\bin\\arm-none-linux-gnueabi-c++filt.exe
在Project下选择Make Target->Creat: