1. 03 Jan, 2020 2 commits
    • Sergei Trofimovich's avatar
      include/u-boot/crc.h: pull 'uint' definition on musl targets · c6ad9361
      Sergei Trofimovich authored
      The build failure was originally reported on arm64-musl
      target at https://bugs.gentoo.org/703132. Here is the amd64-musl
      variant:
      
      ```
      $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc)
      $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all            -j$(nproc)
      ...
      include/u-boot/crc.h:37:44: error: unknown type name 'uint'; did you mean 'int'?
         37 | void crc16_ccitt_wd_buf(const uint8_t *in, uint len,
            |                                            ^~~~
            |                                            int
      ```
      
      Note: 'uint' is not defined there.
      
      On glibc 'uint' comes from <sys/types.h> and happens to work on most .c files.
      
      The change imports 'uint' declaration from '<compiler.h>'.
      
      Bug: https://bugs.gentoo.org/703132
      
      
      Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
      c6ad9361
    • Sergei Trofimovich's avatar
      include: fix 'ulong' definition on musl targets · d11fa9c1
      Sergei Trofimovich authored
      The build failure was originally reported on arm64-musl
      target at https://bugs.gentoo.org/703132. Here is the amd64-musl
      variant:
      
      ```
      $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc)
      $ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all            -j$(nproc)
      ...
      In file included from tools/env/../../env/flags.c:7,
                       from tools/env/env_flags.c:1:
      include/env.h:159:1: error: unknown type name 'ulong'; did you mean 'long'?
        159 | ulong env_get_ulong(const char *name, int base, ulong default_val);
            | ^~~~~
            | long
      ```
      
      Note: 'ulong' is not defined there.
      
      On glibc 'ulong' comes from <sys/types.h>:
      
      ```c
      /* Old compatibility names for C types.  */
      typedef unsigned long int ulong;
      ```
      
      On musl it comes from <sys/types.h> as well but from under different guards:
      
      ```c
      typedef unsigned long u_long, ulong;
      ```
      
      The change inlines 'ulong' define similar to 'uint' define.
      
      Bug: https://bugs.gentoo.org/703132
      
      
      Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
      d11fa9c1
  2. 02 Jan, 2020 15 commits
  3. 31 Dec, 2019 3 commits
  4. 28 Dec, 2019 1 commit
  5. 27 Dec, 2019 19 commits