To build Phoenix-RTOS system image build.sh script is used. The simplest way to build the image is the following command.
TARGET=ia32-generic-qemu phoenix-rtos-build/build.sh all
As you can see there can be other arguments like
You can also use the
clean argument to clean last build artifacts.
TARGET=ia32-generic-qemu phoenix-rtos-build/build.sh clean all
When you want to compile only the new changes and save time you don't have to use it.
all argument specifies that all system components for a given target should be compiled (excluding tests).
The available components are listed below:
fs- filesystem image,
core- Phoenix-RTOS core, i.e. kernel and other necessary components,
ports- phoenix-rtos-ports applications,
project- project specific part (user applications),
image- system image to be loaded to the target,
For example, in ia32-generic-qemu target
core fs image project ports.
For the other targets
all can be different components configurations.
You can also choose what components do you want to build, for example the following command will build a system image without test and ports components.
ports component compiling process can take a while. If you need to build the system image quickly, you can use the command above.
TARGET=ia32-generic-qemu phoenix-rtos-build/build.sh core fs image project test
For ia32-generic-qemu target, running the system in a separate window isn't the only option. There is the possibility to run it in a terminal, in that case, you have to set a few other variables.
TARGET=ia32-generic-qemu CONSOLE=serial ./phoenix-rtos-build/build.sh all
After the build completes, the disk image and all files needed to run it will be created and placed in the _boot directory.