X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=mkconfig;h=27d9f2bac7ca500f51a771000030d42081c8be3b;hb=a1725999b8b7527971183122cdfb54e2f87f61ae;hp=10755107900cf190e664596be862d196cd0a4f30;hpb=a8fa379d47f06c7d3ed75c8fb26ae43ee38e1fd7;p=u-boot diff --git a/mkconfig b/mkconfig index 1075510790..27d9f2bac7 100755 --- a/mkconfig +++ b/mkconfig @@ -79,6 +79,13 @@ echo "BOARD = $4" >> config.mk [ "$6" ] && [ "$6" != "NULL" ] && echo "SOC = $6" >> config.mk +# Assign board directory to BOARDIR variable +if [ -z "$5" -o "$5" = "NULL" ] ; then + BOARDDIR=$4 +else + BOARDDIR=$5/$4 +fi + # # Create board specific header file # @@ -94,6 +101,8 @@ for i in ${TARGETS} ; do echo "#define CONFIG_MK_${i} 1" >>config.h ; done +echo "#define CONFIG_BOARDDIR board/$BOARDDIR" >>config.h + echo "#include " >>config.h echo "#include " >>config.h