Forum | Documentation | Website | Blog

Skip to content
  • Haiying Wang's avatar
    Introduce a new linker flag LDFLAGS_FINAL · 6dc1eceb
    Haiying Wang authored
    commit 8aba9dce
    
    
    Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
    
    breaks the usage of --gc-section to build nand_spl. We still need linker option
    --gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes
    the --gc-sections to each uboot image.
    
    To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace
    PLATFORM_LDFLAGS in the Makefile of each nand_spl board.
    
    Signed-off-by: default avatarScott Wood <[email protected]>
    Signed-off-by: default avatarHaiying Wang <[email protected]>
    6dc1eceb