Hi,

 

Windows has a 8191 chars long command line length limit (all version of windows have this) see: [1].

As a workaround you could make the PATH to TF-M working copy shorter. You could:


/George


1: https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation
2: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink
3: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/subst

 

From: Anton Komlev via TF-M <tf-m@lists.trustedfirmware.org>
Date: Thursday, 4 April 2024 at 12:08
To: Antonio De Angelis <Antonio.DeAngelis@arm.com>, tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>, Michael Khoyilar <mkhoyilar@innophaseiot.com>
Subject: [TF-M] Re: Windows 10 error file name or extension too long

Hi Michael,

 

You can also try to move your TF-M project close to the root (C:\) folder.

It works for me in “C:\projects\trusted-firmware-m” in Windows build.

 

Hope that helps,

Anton

 

From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Thursday, April 4, 2024 9:28 AM
To: tf-m@lists.trustedfirmware.org; Michael Khoyilar <mkhoyilar@innophaseiot.com>
Subject: [TF-M] Re: Windows 10 error file name or extension too long

 

Hi Michael,

 

I am not an expert on make but it looks like it's hitting some corner case on the size of the file being processed? I'd suggest to use as a workaround ninja, if possible, instead of make, and use -GNinja in the CMake config options when configuring the project.

 

Thanks, Antonio


From: Michael Khoyilar via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Wednesday, April 3, 2024 18:56
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] Windows 10 error file name or extension too long

 

Hi all

 

I am new to TF-M and want to know if there is a public forum to post questions or search for answers? I am getting this error under Windows 10 when making clean:

 

make (e=206): The filename or extension is too long

 

Thank you

 

Michael