Merge pull request #2 from lbernstone/idfcommit_out
Add a define into sdkconfig.h that shows the exact idf commit of build
This commit is contained in:
commit
381ced5474
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ cat 1platform_mid.txt >> "$AR_PLATFORM_TXT"
|
|||
rm platform_start.txt platform_mid.txt 1platform_mid.txt
|
||||
|
||||
#sdkconfig
|
||||
IDF_COMMIT=$(git -C $IDF_PATH rev-parse --short HEAD)
|
||||
IDF_BRANCH=$(git -C $IDF_PATH symbolic-ref --short HEAD)
|
||||
echo #define CONFIG_ARDUINO_IDF_COMMIT "$IDF_COMMIT">> build/include/sdkconfig.h
|
||||
echo #define CONFIG_ARDUINO_IDF_BRANCH "$IDF_BRANCH">> build/include/sdkconfig.h
|
||||
mkdir -p $AR_SDK/include/config && cp -f build/include/sdkconfig.h $AR_SDK/include/config/sdkconfig.h
|
||||
cp -f sdkconfig $AR_SDK/sdkconfig
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue