• Home
Name Date Size #Lines LOC

..--

rtos_demo/12-May-2024-552413

rtos_demo_xts/12-May-2024-470367

LICENSED12-May-202411.3 KiB202169

OAT.xmlD12-May-20245.1 KiB7830

README.mdD12-May-20242.5 KiB7042

README_zh.mdD12-May-20242.2 KiB7042

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/master/en/device-dev/quick-start/Readme-EN.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

README_zh.md

1# vendor_alientek
2
3## 简介
4
5该仓库托管OpenHarmony社区开发的,而非某个厂商单独开发的典型产品样例代码,主要用于基于UniProton内核的能力验证。
6
7## 软件架构
8```
9//device/soc/st
10  | stm32f407zg   --- 基于UniProton内核的单板
11
12//vendor/ohos
13  | rtos_demo     --- 基础能力验证demo
14  | rtos_demo_xts --- xts
15```
16
17## 使用说明
18
19OpenHarmony的uniproton内核的编译构建系统是一个基于gn和ninja的组件化构建系统,支持按组件配置、裁剪和拼装,按需构建出定制化的产品。本文主要介绍如何基于gn和ninja编译uniproton工程,GCC+gn、IAR、Keil MDK等编译方式可以参考社区爱好者贡献的站点。
20
21## 编译构建指导
22
23### 1.搭建系统基础环境
24
25在搭建各个开发板环境前,需要完成OpenHarmony系统基础环境搭建。系统基础环境主要是指OpenHarmony的编译环境和开发环境,详细介绍请参考官方站点[开发环境准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/porting/Readme-CN.md)。开发者需要根据环境搭建文档完成环境搭建。
26
27### 2.获取OpenHarmony源码
28
29详细的源码获取方式,请见[源码获取](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/get-code/sourcecode-acquire.md)。获取OpenHarmony完整仓代码后,假设克隆目录为`~/openHarmony`。
30
31### 3.编译工具链下载
32
33安装GNU Arm Embedded Toolchain 32位编译器:
34
35官方下载地址为: [GNU Arm Embedded Toolchain编译器](https://developer.arm.com/downloads/-/gnu-rm),指定版本:10-2020-q4-major。
36
37安装参考以下命令:
38
39```
40tar -xvf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt/tools
41```
42
43注意: 安装完成后需要将安装目录加入***环境变量***中。
44
45### 4.编译
46
47在源码根目录执行:
48```
49hb set
50```
51
52选择: alientek@rtos_demo
53
54执行xts测试用例,则选择: alientek@rtos_demo_xts
55
56编译执行命令:
57```
58hb build -f
59```
60
61## 贡献
62
63[如何参与](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE.md)
64
65## 相关仓
66
67[device_soc_st](https://gitee.com/openharmony/device_soc_st)
68
69[kernel_uniproton](https://gitee.com/openharmony-sig/kernel_uniproton)
70