1. Introduction
In the last article, we introduced the environment construction of HiSilicon Hi3861L. In this article, let’s start compiling and downloading the SDK.
Prepare:
SDK:https://download.csdn.net/download/qq_26226375/88245580
Development environment: HiSilicon Hi3861L development one-environment construction_t_guest's blog-CSDN blog
2. SDK introduction
After unzipping the SDK, the following directory will appear:
Here is an introduction to the SDK directory
Table of contents | illustrate |
app | Application layer code (including demo program , i.e. reference example) |
boot | Flash bootloader code |
build | Library files, link files, and configuration files required for SDK construction |
components | SDK component directory |
config | SDK system configuration file |
documents | Documentation directory (including: SDK documentation) |
incllude | API header file storage directory |
output | Target files and intermediate files generated during compilation (including: library files, printed LOG, generated binary files, etc.) |
platform | SDK platform-related files (including: images, kernel driver modules, etc.) |
third_party | Open source third-party software directory |
tools | Tools provided by the SDK for use on Linux systems and Windows systems (including: NV production tools, signature tools, Menuconfig, etc.) |
SConstruct | SCons compilation script |
build.sh | Start the compilation script and support "sh build.sh menuconfig" for customized configuration |
build_patch.sh | Unzip the open source source code package and patch file compilation script |
Makefile | Support makefile compilation, use "make" or "make all" to start compilation |
non_factory.mk | Non-factory test version compilation script |
factory.mk | Factory test version compilation script |
3. Compile SDK (SCONS)
1. Compilation method
Hi3861 native SDK supports compilation with parameters to meet various needs. The simplest one is to execute " ./build.sh " in the SDK root directory to compile. Parameter compilation is displayed in tabular form.
parameter | Example | illustrate |
none | ./build,sh | Start incremental compilation. The default compiled app project is demo. |
all | ./build.sh all |