【解决】make: *** [uboot-socfpga/.applypatch.add_fms_extensions_cflag] Error 1

问题描述:

de1-soc生成preloader image file过程中,已生成bsp preloader source code,使用make编译preloader的elf和binary文件中出错

环境:embeded command tool 13.1,cygwin 2.0

问题具体

tar zxf/cygdrive/d/altera/13.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz

"generated/build.h"-> "uboot-socfpga/board/altera/socfpga/build.h"

"generated/iocsr_config_cyclone5.c"-> "uboot-socfpga/board/altera/socfpga/iocsr_config_cyclone5.c"

"generated/iocsr_config_cyclone5.h"-> "uboot-socfpga/board/altera/socfpga/iocsr_config_cyclone5.h"

"generated/reset_config.h"-> "uboot-socfpga/board/altera/socfpga/reset_config.h"

"generated/pll_config.h"-> "uboot-socfpga/board/altera/socfpga/pll_config.h"

"generated/pinmux_config_cyclone5.c"-> "uboot-socfpga/board/altera/socfpga/pinmux_config_cyclone5.c"

"generated/pinmux_config.h"-> "uboot-socfpga/board/altera/socfpga/pinmux_config.h"

"generated/sdram/sdram_config.h"-> "uboot-socfpga/board/altera/socfpga/sdram/sdram_config.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/alt_types.h"-> "uboot-socfpga/board/altera/socfpga/sdram/alt_types.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sdram_io.h"-> "uboot-socfpga/board/altera/socfpga/sdram/sdram_io.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer_auto_ac_init.c"->"uboot-socfpga/board/altera/socfpga/sdram/sequencer_auto_ac_init.c"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer_auto.h"-> "uboot-socfpga/board/altera/socfpga/sdram/sequencer_auto.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer_auto_inst_init.c"->"uboot-socfpga/board/altera/socfpga/sdram/sequencer_auto_inst_init.c"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer.c"-> "uboot-socfpga/board/altera/socfpga/sdram/sequencer.c"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer_defines.h"-> "uboot-socfpga/board/altera/socfpga/sdram/sequencer_defines.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/sequencer.h"-> "uboot-socfpga/board/altera/socfpga/sdram/sequencer.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/system.h"-> "uboot-socfpga/board/altera/socfpga/sdram/system.h"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/tclrpt.c"-> "uboot-socfpga/board/altera/socfpga/sdram/tclrpt.c"

"D:\\useful\\de1-soc\\altera-tran\\DE1_SoC_GHRD\\hps_isw_handoff\\soc_system_hps_0/tclrpt.h"-> "uboot-socfpga/board/altera/socfpga/sdram/tclrpt.h"

ApplyingPatch:D:/altera/13.1/embedded/host_tools/altera/preloader/uboot-socfpga.patch/cygwin/add_fms_extensions_cflag.patch

patch-p1 --directory=uboot-socfpga --input=D:/altera/13.1/embedded/host_tools/altera/preloader/uboot-socfpga.patch/cygwin/add_fms_extensions_cflag.patch

(Strippingtrailing CRs from patch; use --binary to disable.)

patchingfile config.mk

Hunk #1FAILED at 94 (different line endings).

1 out of1 hunk FAILED -- saving rejects to file config.mk.rej

make:*** [uboot-socfpga/.applypatch.add_fms_extensions_cflag] Error 1

思路:可以看出是makefile的patch出了问题

把原来的文件全部删除,重新make,使用参数 -i,将可能出现的错误全部ignore

                               


你可能感兴趣的:(fpga)