07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

07 Apr, 2018

1 commit

  • Commit 7653942b10e9e ("common/env_embedded.c: drop support for
    CONFIG_SYS_USE_PPCENV") dropped the .ppcenv section which was
    used in linking scripts to allow fine placement of embedded
    environment sections.

    This implies that GCC randomly places objects from env/embedded.o
    and environment is not guaranteed to be located at the correct address:

    04003df8 g F .text 00000038 mii_init
    04004000 g O .text 00000004 env_size
    04004004 g O .text 00002000 environment
    04006004 g F .text 00000040 .hidden __lshrdi3

    This patch restores this capability by allocating each object marked
    with __UBOOT_ENV_SECTION__ into a different section. Hence
    'environment' will be alone in .text.environment, allowing a
    fine placement in u-boot.lds with:

    . = DEFINED(env_offset) ? env_offset : .;
    env/embedded.o (.text.environment)

    Fixes: 7653942b10e9e ("common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV")
    Cc: Thomas Petazzoni
    Signed-off-by: Christophe Leroy

    Christophe Leroy
     

15 Aug, 2017

1 commit