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.

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

Regards, 

Gray.

  • 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.


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

    Looking forward to resolving this issue together!

    Best regards,
    Karl

  • Hi Karl.

    My purpose is to merge the dat file and the bin file into one bin file.

  • I would not think you can do so by appending the .bin file path to the .bat file path.
    If the '+' character is being interpreted without any specific makefile meaning, then you will still just append the one path string to the other, which is likely why the error reads "cant find the specified file".

    You mention that you are able to successfully merge the two files together in your bat script, could you not just do this as an operation following the make command?

    Best regards,
    Karl

  • Thanks for your suggestion, I know what to do.