README.md
1# vendor_alientek
2
3## Introduction
4
5The repository is mainly developed by OpenHarmony community, rather than the typical certain manufacturer, mainly used for UniProton based kernel ability to test and verify.
6
7## Software Architecture
8```
9//device/soc/st
10 | stm32f407zg --- Development board based on the UniProton kernel
11
12//vendor/ohos
13 | rtos_demo --- Basic competence verification demo
14 | rtos_demo_xts --- Basic competence verification xts demo
15```
16
17## Usage
18
19The OpenHarmony uniproton kernel build system is a modular build system based on Generate Ninja (GN) and Ninja. It supports module-based configuration, tailoring, and assembling, and helps you build custom products. This document describes how to build a uniproton project based on GN and Ninja. For details about the methods such as GCC+gn, IAR, and Keil MDK, visit the community websites.
20
21## Compilation and Building
22
23### 1.Setting Up the Environment
24
25Before setting up the environment for a development board, you must set up the basic system environment for OpenHarmony first. The basic system environment includes the OpenHarmony build environment and development environment. For details, see [Setting Up Development Environment](https://gitee.com/openharmony/docs/blob/HEAD/en/device-dev/quick-start/quickstart-lite-env-setup.md).
26
27### 2.Obtaining the OpenHarmony Source Code
28
29For details about how to obtain the source code, see [Source Code Acquisition](https://gitee.com/openharmony/docs/blob/HEAD/en/device-dev/get-code/sourcecode-acquire.md). This document assumes that the clone directory is ~/openHarmony after the complete OpenHarmony repository code is obtained.
30
31### 3. Compile toolchain downloads
32
33Install the GNU Arm Embedded Toolchain 32-bit compiler:
34
35Download address: [GNU Arm Embedded Toolchain](https://developer.arm.com/downloads/-/gnu-rm),Specify version:10-2020-q4-major。
36
37To install, refer to the following command:
38
39```
40tar -xvf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt/tools
41```
42
43Note: After the installation is complete, add the installation directory to the ***environment variable PATH***.
44
45### 4.Compilation
46
47Execute in the source root directory:
48```
49hb set
50```
51
52Choice: alientek@rtos_demo
53
54If you want to perform xts, then choose: alientek@rtos_demo_xts
55
56Compile command:
57```
58hb build -f
59```
60
61## Contribution
62
63[How to contribute](https://gitee.com/openharmony/docs/blob/HEAD/en/contribute/how-to-contribute.md)
64
65## Repositories Involved
66
67[device_soc_st](https://gitee.com/openharmony/device_soc_st)
68
69[kernel_uniproton](https://gitee.com/openharmony-sig/kernel_uniproton)
70