tools/: Update and verify all configuration related tools with new, boards directory layout.

This commit is contained in:
Gregory Nutt
2019-08-07 17:25:54 -06:00
parent c840ac2496
commit 4b6f634a90
4 changed files with 166 additions and 57 deletions
+19 -1
View File
@@ -115,6 +115,24 @@ fi
# Detect the architecture of this board.
ARCHLIST="arm avr hc mips misoc or1k renesas risc-v sim x86 xtensa z16 z80"
ARCHLIST="arm avr hc mips misoc or1k renesas risc-v sim x86 xtensa z16 z80"
CHIPLIST="a1x am335x c5471 cxd56xx dm320 efm32 imx6 imxrt kinetis kl lc823450
lpc17xx_40xx lpc214x lpc2378 lpc31xx lpc43xx lpc54xx max326xx moxart nrf52
nuc1xx sam34 sama5 samd2l2 samd5e5 samv7 stm32 stm32f0l0g0 stm32f7 stm32h7
stm32l4 str71x tiva tms570 xmc4 at32uc3 at90usb atmega mcs92s12ne64 pic32mx
pic32mz lm32 mor1kx m32262f8 sh7032 gap8 nr5m100 sim qemu esp32 z16f2811
ez80 z180 z8 z80"
for arch in ${ARCHLIST}; do
for chip in ${CHIPLIST}; do
if [ -f ${TOPDIR}/boards/${arch}/${chip}/${boarddir}/Kconfig ]; then
ARCHSUBDIR=${arch}
CHIPSUBDIR=${chip}
echo " Detected ${ARCHSUBDIR} Architecture"
echo " Detected ${CHIPSUBDIR} Chip"
fi
done
done
for arch in ${ARCHLIST}; do
if [ -f boards/${arch}/${BOARDSUBDIR}/Kconfig ]; then
@@ -144,7 +162,7 @@ fi
WD=${PWD}
BOARDDIR=boards/$ARCHSUBDIR/$BOARDSUBDIR
BOARDDIR=boards/$ARCHSUBDIR/$CHIPSUBDIR/$BOARDSUBDIR
SCRIPTSDIR=$BOARDDIR/scripts
MAKEDEFS1=$SCRIPTSDIR/Make.defs