Move PCB and user config to board Kconfig
Files in src/pcbs/xyz.h are moved to boards/xyz/board.h. User settings from src/config.h are also configured via Kconfig, so the file is removed.
This commit is contained in:
@@ -10,18 +10,10 @@ if errorlevel 1 (
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo "---------- Preparation of config -------------"
|
||||
if exist "src/config.h" (
|
||||
echo "Making backup of existing config"
|
||||
move src\config.h src\config.h_backup_checksh
|
||||
)
|
||||
copy src\config.h_template src\config.h
|
||||
|
||||
echo "---------- Running compile check -------------"
|
||||
platformio run -e mppt-2420-lc-v0.10 -e mppt-1210-hus-v0.7 -e pwm-2420-lus-v0.3 -e pwm-2420-lus-v0.3-zephyr
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
move src\config.h_backup_checksh src\config.h
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
@@ -29,7 +21,6 @@ echo "---------- Running unit-tests -------------"
|
||||
platformio test -e unit-test-native
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
move src\config.h_backup_checksh src\config.h
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
@@ -37,10 +28,7 @@ echo "---------- Running static code checks -------------"
|
||||
platformio check -e mppt-1210-hus-v0.7 -e pwm-2420-lus-v0.3
|
||||
if errorlevel 1 (
|
||||
echo Failure Reason is %errorlevel%
|
||||
move src\config.h_backup_checksh src\config.h
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
move src\config.h_backup_checksh src\config.h
|
||||
|
||||
echo "---------- All tests passed -------------"
|
||||
Reference in New Issue
Block a user