This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use copy command in makefile?

Hello,

  I used a command like this in the makefile, but the makefile reported an error.

	copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin

process_begin: CreateProcess(NULL, copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin, ...) failed.
make (e=2): The system cannot find the file specified.

But I can generate ota_file.bin with a bat file.

Regards, 

Gray.

Parents
  • Hello Gray, 

    I used a command like this in the makefile, but the makefile reported an error.

    I suspect that the problem here is due to your first path argument - specifically, I think that the '+' character is the cause for this. If I recall correctly the '+' character is a special character in the makefile.

    _build\ota_image\release_1.dat+_build\ota_image\release_1.bin

    What is your intention with this operation, what did you expect to have happen?

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Reply
  • Hello Gray, 

    I used a command like this in the makefile, but the makefile reported an error.

    I suspect that the problem here is due to your first path argument - specifically, I think that the '+' character is the cause for this. If I recall correctly the '+' character is a special character in the makefile.

    _build\ota_image\release_1.dat+_build\ota_image\release_1.bin

    What is your intention with this operation, what did you expect to have happen?

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Children
Related