-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Windows installer makes use of custom chocolatey packages, which are out of date. See issue #2514. These packages are separate from the main Sming repository and represent an un-necessary maintenance overhead. This PR updates the installation scripts so these custom chocolatey packages are no longer required. The scripts were previously only used for CI testing so have been reworked appropriately. The installation procedure is now similar to that for linux/MacOS. The initial bootstrap installation remains unchanged: The ``choco-install.cmd`` script is fetched from the Sming ``develop`` branch and executed. Note: Contrary to other installs and the documentation, the current sming choco script installs the `master` branch. The user runs a second install script `tools\install` to install required toolchains. This is separate because: - Administrative priviledges are not required - The user gets more control over which toolchains get installed - The script doesn't change anything outside of the `C:\tools` directory (other than python packages) The directory can also be customised by setting `SMING_TOOLS_DIR`. The documentation at https://sming.readthedocs.io/en/latest/getting-started/windows/index.html has been updated to reflect these changes. **CI Compiler Cache** I've moved caching to just before the build starts, so that configuration and zeroing ccache is handled by the build script. This is more logical than doing it as part of the install phase. **Esp32 install/build** A standard IDF tools installation includes the following packages: - cmake - ninja - ccache As Sming installs these system-wide, these are not required. Also, as we now have Ninja in the system path for all platforms some logic in build.mk can be removed. These additional items are not used: - idf-exe - dfu-util The Sming Esp32 installer omits all the above items, for linux/MacOS also. Turns out we can just pass the filter `"*elf*"` to the installer to get all the stuff we **do** actually need. **Python** This defaulted to `python3`, which failed in testing as current installers don't provide it, so change to `python`. The `PYTHON` variable now defaults to the full path determined by `which python`. In Windows, the makefile resolves this to something like `/c/Python312/python.exe`. **MinGW** I've also added `MinGW-2021-04-12.7z` to the [SmingTools](https://github.com/SmingHub/SmingTools/releases). This differs from `MinGW-2020-10-19.7z` which was previously used (in both choco package and CI install) in the following ways: - MinGW version changed from 5.4.1 to 5.4.2 - Files unpack into `./` instead of `MinGw/` so makes it easier to relocate during installation if required - Contents of `var/cache` removed to reduce size of archive (48MB vs 133MB) No changes to GCC, still 9.2.0. **Docs build** Documentation build fails in Windows, problems with libcairo-2.dll. Initially, the error was about not finding the DLL. Some reserach suggests installing gtk+ runtime should fix this. Still fails but with error "can't find .so". Leaving this as a known issue, just build in Linux or WSL.
- Loading branch information
Showing
25 changed files
with
499 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
|
||
REM Check pre-requisites are installed and working, from whatever source | ||
|
||
set MISSING_PACKAGES= | ||
call :check_package python Python | ||
call :check_package mingw-get MinGW | ||
call :check_package cmake CMake | ||
call :check_package ninja Ninja | ||
where /q 7z | ||
if errorlevel 1 set MISSING_PACKAGES=%MISSING_PACKAGES% 7zip | ||
goto :EOF | ||
|
||
REM Could use 'where' but Windows has a stub for python which isn't helpful | ||
:check_package | ||
%1 --version >nul 2>&1 | ||
if errorlevel 1 set MISSING_PACKAGES=%MISSING_PACKAGES% %2 | ||
goto :EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.