diff options
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/at91bootstrap/at91bootstrap.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/recipes-bsp/at91bootstrap/at91bootstrap.inc b/recipes-bsp/at91bootstrap/at91bootstrap.inc index 38602ef..f2f29bd 100644 --- a/recipes-bsp/at91bootstrap/at91bootstrap.inc +++ b/recipes-bsp/at91bootstrap/at91bootstrap.inc @@ -85,9 +85,21 @@ do_configure() { # Copy defconfig to .config if .config does not exist. This allows # recipes to manage the .config themselves in do_configure_prepend() # and to override default settings with a custom file. - if [[ ${MACHINE} == mtr ]] || [[ ${MACHINE} == mtrv1 ]] || [[ ${MACHINE} == mtre ]] ; then + if [ ${MACHINE} == mtr ]] || [[ ${MACHINE} == mtrv1 ]] || [[ ${MACHINE} == mtre ]] ; then CTYPE=".mtr" fi + + + if [ ${MACHINE} = "mtcdt" ] ; then + bbnote "Found mtcdt" + if [ -n "${BB_USE_SD}" -a "${BB_USE_SD}" = "1" ]; then + bbnote "Building for SD card" + cp ${WORKDIR}/defconfig-sd ${WORKDIR}/defconfig + else + bbnote "Building for NAND" + cp ${WORKDIR}/defconfig-n ${WORKDIR}/defconfig + fi + fi if [ -f "${WORKDIR}/defconfig${CTYPE}" ] && [ ! -f "${B}/.config" ]; then cp "${WORKDIR}/defconfig${CTYPE}" "${B}/.config" |