Building WP 34S / 31S with Docker
|
03-24-2024, 10:47 AM
Post: #1
|
|||
|
|||
Building WP 34S / 31S with Docker
Although it is said that "the WP 34S project is effectively shut down at this point", an open source project can always be revived. With old code often comes the problem of an ancient toolchain that won't run on modern systems anymore. Over the years I started to create Docker images for various projects that contain all tools to build the software (ideally reproducible, but I'm happy when it compiles at all). Well, here is the …
So far it is just the Dockerfile that allows you to build the Docker image yourself (I haven't checked all licenses to see if redistribution of all software is allowed, but I assume it is). As usual for most Docker images, it is based on a Linux environment (Ubuntu 22.04) and includes Wine and the Yagarto 4.6.0 compiler as described in the "Compiling WP 34S / 31S on Linux" documentation. I skipped the CodeSourcery part because compilation was quick enough on my system. How does it work? You start the container and mount your local source tree. I prefer to keep local and container files isolated, so I mounted it read-only and copied the files into a new working directory. Code: host> docker run -it --rm --name wp34s-builder -v /path/to/source:/wp-src:ro wp34s-builder After a few seconds you can find the firmware images in the realbuild subdirectory. You can copy it from the container to your host system by running: Code: host> docker cp wp34s-builder:/wp/trunk/realbuild/calc.bin . I haven't spent much time improving and automating the build process (it could be much easier). Right now it doesn't parse the revision number because I haven't included SVN or Git (and haven't checked if svnversion works after copying the directory). I guess right now there's nobody actually working with the source anymore. With this simplified build process there might be a chance that more people start modifying and extending WP 34S. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Building WP 34S / 31S with Docker - SammysHP - 03-24-2024 10:47 AM
RE: Building WP 34S / 31S with Docker - FreeBlues - 03-24-2024, 04:43 PM
RE: Building WP 34S / 31S with Docker - Nigel (UK) - 03-27-2024, 11:51 AM
RE: Building WP 34S / 31S with Docker - FreeBlues - 03-27-2024, 03:41 PM
RE: Building WP 34S / 31S with Docker - johnb - 03-25-2024, 06:32 PM
RE: Building WP 34S / 31S with Docker - FreeBlues - 03-26-2024, 07:45 PM
RE: Building WP 34S / 31S with Docker - pascal_meheut - 03-26-2024, 09:18 PM
RE: Building WP 34S / 31S with Docker - FreeBlues - 03-27-2024, 07:43 AM
RE: Building WP 34S / 31S with Docker - SammysHP - 03-26-2024, 09:20 PM
RE: Building WP 34S / 31S with Docker - pascal_meheut - 03-26-2024, 09:39 PM
RE: Building WP 34S / 31S with Docker - FreeBlues - 03-27-2024, 07:44 AM
RE: Building WP 34S / 31S with Docker - SammysHP - 03-26-2024, 09:46 PM
|
User(s) browsing this thread: 2 Guest(s)