diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot.inc')
-rw-r--r-- | recipes-bsp/u-boot/u-boot.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/recipes-bsp/u-boot/u-boot.inc b/recipes-bsp/u-boot/u-boot.inc index a44dde5..f6d496a 100644 --- a/recipes-bsp/u-boot/u-boot.inc +++ b/recipes-bsp/u-boot/u-boot.inc @@ -85,12 +85,13 @@ do_patch_append () { except TypeError: bb.fatal("PR is missing from recipe") f.write(PR + os.linesep) - try: - S = d.getVar("S",True) - except TypeError: - bb.fatal("S is missing from recipe") - - os.system("sed -i s/^CONFIG_BOOTDELAY=.*/CONFIG_BOOTDELAY=2/ " + S + "/configs/at91sam9x5ek_nandflash_defconfig") + SDCARD = d.getvar("BB_USE_SD",True) + if (SDCARD == 1): + try: + S = d.getVar("S",True) + except TypeError: + bb.fatal("S is missing from recipe") + os.system("sed -i s/^CONFIG_BOOTDELAY=.*/CONFIG_BOOTDELAY=2/ " + S + "/configs/at91sam9x5ek_nandflash_defconfig") } |