Renamed for consistency.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12338 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
6db6291bd2
commit
086f9822c0
|
@ -3,18 +3,18 @@ if [ $# -eq 2 ]
|
|||
then
|
||||
if [ $1 = "rootpath" ]
|
||||
then
|
||||
find $2 -name "mcuconf.h" -exec bash update_mcuconf_stm32l4r5xx.sh "{}" \;
|
||||
find $2 -name "mcuconf.h" -exec bash update_mcuconf_stm32l4rxxx.sh "{}" \;
|
||||
else
|
||||
echo "Usage: update_mcuconf_stm32l4r5xx.sh [rootpath <root path>]"
|
||||
echo "Usage: update_mcuconf_stm32l4rxxx.sh [rootpath <root path>]"
|
||||
fi
|
||||
elif [ $# -eq 1 ]
|
||||
then
|
||||
declare conffile=$(<$1)
|
||||
if egrep -q "STM32L4R5_MCUCONF" <<< "$conffile"
|
||||
if egrep -q "STM32L4R5_MCUCONF" <<< "$conffile" || egrep -q "STM32L4S5_MCUCONF" <<< "$conffile" || egrep -q "STM32L4R7_MCUCONF" <<< "$conffile" || egrep -q "STM32L4S7_MCUCONF" <<< "$conffile" || egrep -q "STM32L4R9_MCUCONF" <<< "$conffile" || egrep -q "STM32L4S9_MCUCONF" <<< "$conffile"
|
||||
then
|
||||
echo Processing: $1
|
||||
egrep -e "\#define\s+[a-zA-Z0-9_()]*\s+[a-zA-Z0-9_]" <<< "$conffile" | sed -r 's/\#define\s+([a-zA-Z0-9_]*)(\([^)]*\))?\s+/\1=/g' > ./values.txt
|
||||
if ! fmpp -q -C conf.fmpp -S ../ftl/processors/conf/mcuconf_stm32l4r5xx
|
||||
if ! fmpp -q -C conf.fmpp -S ../ftl/processors/conf/mcuconf_stm32l4rxxx
|
||||
then
|
||||
echo
|
||||
echo "aborted"
|
||||
|
@ -24,6 +24,6 @@ then
|
|||
rm ./mcuconf.h ./values.txt
|
||||
fi
|
||||
else
|
||||
echo "Usage: update_mcuconf_stm32l4r5xx.sh [rootpath <root path>]"
|
||||
echo " update_mcuconf_stm32l4r5xx.sh <configuration file>]"
|
||||
echo "Usage: update_mcuconf_stm32l4rxxx.sh [rootpath <root path>]"
|
||||
echo " update_mcuconf_stm32l4rxxx.sh <configuration file>]"
|
||||
fi
|
Loading…
Reference in New Issue