From 8f272f29d2d4a932c792fa0ee149a0be4dcabf67 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 27 Jun 2022 18:37:57 -0500 Subject: Make AT91BOOTSTRAP configurable for SD card --- recipes-bsp/at91bootstrap/at91bootstrap.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'recipes-bsp') 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" -- cgit v1.2.3