Skip to content
Snippets Groups Projects
Commit 86c52e2e authored by David Sidrane's avatar David Sidrane Committed by Daniel Agar
Browse files

Tools:nuttx_defconf_tool upstream has CONFIG_START_YEAR etal

   Re insetion of CONFIG_START_{YEAR|NONTH|DAY} is not needed as
   CONFIG_START_{YEAR|NONTH|DAY} have been defined always in
   upstream NuttX
parent 1991c277
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
FIXDATE=n
if [ $# -eq 0 ]
then
echo "Usage: $0 <path to defconfig>"
......@@ -31,18 +33,18 @@ echo "Fix up Board Selection"
sed -i -e "/$lead/,/$tail/{ /$lead/{p; r $chunk
}; /$tail/p; d }" $defconf
if grep --quiet CONFIG_START_YEAR $lastconf ; then
lead='^CONFIG_START_YEAR='
tail='^CONFIG_START_DAY='
cat $lastconf | sed -n "/$lead/,/$tail/p" > $chunk
lead='^# Clocks and Timers$'
echo "Fix up Clocks and Timers"
sed -i -e "/$lead/{N;{r $chunk
}}" $defconf
else
echo not found
if [ "$FIXDATE" == "y" ] ; then
if grep --quiet CONFIG_START_YEAR $lastconf ; then
lead='^CONFIG_START_YEAR='
tail='^CONFIG_START_DAY='
cat $lastconf | sed -n "/$lead/,/$tail/p" > $chunk
lead='^# Clocks and Timers$'
echo "Fix up Clocks and Timers"
sed -i -e "/$lead/{N;{r $chunk
}}" $defconf
else
echo not found
fi
fi
rm $lastconf
rm $chunk
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment