U-boot-1.1.4中关于hello_world.srec出错 分类: DSP arm-linux-Ubuntu 2013-07-22 16:29 352人阅读 评论(0) 收藏

make[1]: *** No rule to make target `hello_world.srec', needed by `all'.  Stop.
make[1]: Leaving directory `/home/mort/src/targa/u-boot/u-boot-TOT/examples'
make: *** [examples] Error 2
的问题。可是可以在网上找到解决方法:
打开 vi examples/Makefile
  
    119 $(LIB): .depend $(LIBOBJS)
    120         $(AR) crv $@ $(LIBOBJS)
    121
    122 %:      %.o $(LIB)
    123         $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
    124                 -o $@ -e $(<:.o=) $< $(LIB) \
    125                 -L$(gcclibdir) -lgcc
    126 %.srec: %
    127         $(OBJCOPY) -O srec $< $@ 2>/dev/null
    128
    129 %.bin:  %
    130         $(OBJCOPY) -O binary $< $@ 2>/dev/null
   
把126行和129行改为:
     %.srec: %.o
     %.bin: %.o
再make就可以了。

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted @ 2013-07-22 16:29  毛毛虫的薄刻  阅读(150)  评论(0编辑  收藏  举报