The invention relates to a construction and compiling method and device of an
operating system,
electronic equipment and a storage medium. The method comprises: obtaining a corresponding
system compiling tool in a compiling environment in response to a compiling instruction; calling a
system compiling tool, collecting a tool chain of the first
operating system and a corresponding basic code
library, and constructing a
root system of the first
operating system; scanning a basic code layer of the second operating
system, selecting a corresponding
compiler for the basic code layer according to the compiling rule, and generating a fusion compiling framework; determining a dependency relationship between framework
layers contained in a compiling framework, generating a
dependency tree sorted according to compiling priorities according to the dependency relationship, and representing compiling modules of the framework
layers by nodes in the
dependency tree; and according to the dependency relationship in the
dependency tree, calling a compiling module of the framework layer to obtain a compiling
source code, installing the framework layer into the
root system, and generating a compiling
file system. The system compiling efficiency is greatly improved.