summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-06-27 18:37:57 -0500
committerJohn Klug <john.klug@multitech.com>2022-11-16 18:05:56 -0600
commit8f272f29d2d4a932c792fa0ee149a0be4dcabf67 (patch)
treeb536404eddabeb0c18c61019c2ecf063b5eaa485
parent198fce0fdf72b283ec8621dc0561782ea8ca1687 (diff)
downloadmeta-multitech-atmel-8f272f29d2d4a932c792fa0ee149a0be4dcabf67.tar.gz
meta-multitech-atmel-8f272f29d2d4a932c792fa0ee149a0be4dcabf67.tar.bz2
meta-multitech-atmel-8f272f29d2d4a932c792fa0ee149a0be4dcabf67.zip
Make AT91BOOTSTRAP configurable for SD card
-rw-r--r--recipes-bsp/at91bootstrap/at91bootstrap.inc14
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"