Skip to content
Snippets Groups Projects
  1. Mar 22, 2023
  2. Feb 11, 2023
  3. Dec 26, 2021
  4. Nov 11, 2019
    • Vignesh Rajendran's avatar
      gitattributes: dont treat non-text files as text · d6da4da3
      Vignesh Rajendran authored and Tom Rini's avatar Tom Rini committed
      
      With recent update in u-boot gitattributes all files are treated as regular
      text files. This creates problems with special files and repo always
      shows uncommitted files like below.
      
      Your branch is up-to-date with 'origin/master'.
      Changes not staged for commit:
        (use "git add <file>..." to update what will be committed)
        (use "git checkout -- <file>..." to discard changes in working directory)
      
      	modified:   tools/logos/compulab.bmp
      	modified:   tools/logos/denx-comp.bmp
      	modified:   tools/logos/toradex.bmp
      
      To fix above problem special files bmp/ttf files are treated as binary
      files in the gitattributes.
      
      Signed-off-by: default avatarVignesh Rajendran <vignesh.rajendran@in.bosch.com>
      Signed-off-by: default avatarVeeraiyan Chidambaram <veeraiyan.chidambaram@in.bosch.com>
      d6da4da3
  5. Oct 28, 2019
    • Bin Meng's avatar
      Add .gitattributes for line endings · 1f351379
      Bin Meng authored and Tom Rini's avatar Tom Rini committed
      
      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's avatarBin Meng <bmeng.cn@gmail.com>
      1f351379
Loading