summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/include/uboot-control.inc
blob: 859295b3f0e9bd9c2f563c5d25be7d5c0bef1d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
# This function is to add more U-Boot options to build with H3 (SoC: r8a7795)

def get_uboot_config_opt(d):
    option = d.getVar('H3_OPTION')
    if option == "1":
        d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP4_2 KAFLAGS+=-DRCAR_DRAM_MAP4_2')
    elif option == "2":
        d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP2_2 KAFLAGS+=-DRCAR_DRAM_MAP2_2')
    else:
        d.setVar('UBOOT_CONFIG_OPT','')
    return d.getVar('UBOOT_CONFIG_OPT')