diff options
author | John Klug <john.klug@multitech.com> | 2022-06-24 17:59:38 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-11-16 18:05:23 -0600 |
commit | ad29d393fbd7d8b96cb5182e2c2ea845c247f332 (patch) | |
tree | 876b3bf1756363ebba45895aca149be734721917 /recipes-bsp/u-boot/u-boot.inc | |
parent | f5fd6bcf799195e5b869e2a65d27bc1fbd62ccef (diff) | |
download | meta-multitech-atmel-ad29d393fbd7d8b96cb5182e2c2ea845c247f332.tar.gz meta-multitech-atmel-ad29d393fbd7d8b96cb5182e2c2ea845c247f332.tar.bz2 meta-multitech-atmel-ad29d393fbd7d8b96cb5182e2c2ea845c247f332.zip |
Fix u-boot for toggle on SD card
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") } |