From: Tom Rini Date: Wed, 30 Oct 2019 13:03:07 -0400 Subject: [U-Boot] [PATCH v3 7/9] Add .gitattributes for line endings In-Reply-To: <1572178788-26246-8-git-send-email-bmeng.cn@gmail.com> References: <1572178788-26246-1-git-send-email-bmeng.cn@gmail.com> <1572178788-26246-8-git-send-email-bmeng.cn@gmail.com> Message-ID: <20191030170307.GO11173@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Oct 27, 2019 at 05:19:46AM -0700, Bin Meng wrote: > When building U-Boot host tools for Windows from Microsoft Azure > Pipelines, we see tons of weird warnings and errors emitted from > every Kconfig files: > > Kconfig:6:warning: ignoring unsupported character '' > Kconfig:6:warning: ignoring unsupported character '' > Kconfig:8:warning: ignoring unsupported character '' > Kconfig:9:warning: ignoring unsupported character '' > Kconfig:10:warning: ignoring unsupported character '' > Kconfig:10:warning: ignoring unsupported character '' > Kconfig:13:warning: ignoring unsupported character '' > arch/Kconfig:1:warning: ignoring unsupported character '' > arch/Kconfig:2:warning: ignoring unsupported character '' > arch/Kconfig:2:warning: ignoring unsupported character '' > arch/Kconfig:4:warning: ignoring unsupported character '' > ... > > After several rounds of experiments, it turns out this is caused > by line endings. Historically, Linux and macOS used linefeed (LF) > characters while Windows used a carriage return plus a linefeed > (CRLF). When Azure Pipelines checks out the U-Boot repo, Git tries > to compensate for the difference by automatically making lines end > in CRLF in the working directory on Windows, which confuses the > Kconfig file parsing logic. > > Fortunately Git provides a way for repos to tell Git not to do such > automatical line endings conversion via .gitattributes file below: > > * text eol=lf > > Signed-off-by: Bin Meng Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: