c2hal user-guide
1. Build
croot
make c2hal ‐j64
2. Run
c2hal [‐g] [‐o dir] ‐p package (‐r interface‐root)+ (header‐filepath)+
-o output path: If missing, the second half of a relevant interface-root will be used.
-p package: For example android.hardware.baz@1.0. This will be used as the package in .hal files and will
also be used to construct the correct directory structure.
-g: Enabling this flag changes the behavior of c2hal to parse opengl files.
-r package:path root: For example ‘android.hardware:hardware/interfaces’.
Examples:
# Build the test.h header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.baz@1.0
system/tools/hidl/c2hal/test/test.h
# Build the simple.h header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.simple@1.0
system/tools/hidl/c2hal/test/simple.h
# Build a particular libhardware header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.nfc@1.0
hardware/libhardware/include/hardware/nfc.h
# Build all headers from libhardware:
python3 system/tools/hidl/c2hal/test/build_all.py
~/android/master/hardware/libhardware/include/hardware/
# Build various OpenGl versions:
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/EGL/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/ETC1/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES2/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES3/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/KHR/
c2hal user-guide相关推荐
- Structured Streaming编程 Programming Guide
Structured Streaming编程 Programming Guide • Overview • Quick Example • Programming Model o Basic Conc ...
- Technology Document Guide of TensorRT
Technology Document Guide of TensorRT Abstract 本示例支持指南概述了GitHub和产品包中包含的所有受支持的TensorRT 7.2.1示例.Tensor ...
- Python神经网络集成技术Guide指南
Python神经网络集成技术Guide指南 本指南将介绍如何加载一个神经网络集成系统并从Python运行推断. 提示 所有框架的神经网络集成系统运行时接口都是相同的,因此本指南适用于所有受支持框架(包 ...
- 深度学习框架集成平台C++ Guide指南
深度学习框架集成平台C++ Guide指南 这个指南详细地介绍了神经网络C++的API,并介绍了许多不同的方法来处理模型. 提示 所有框架运行时接口都是相同的,因此本指南适用于所有受支持框架(包括Te ...
- Unity电子游戏优化终极指南 The Ultimate Guide to Video Game Optimisation
大小解压后:5.2G 含课程文件 时长9h 1280X720 MP4 语言:英语+中英文字幕(根据原英文字幕机译更准确) 电子游戏优化终极指南 信息: 学会从你的Unity游戏开发项目中挤出每一帧表现 ...
- Unity 3D游戏代码编程学习教程 Full Guide To Unity 3D C#: Learn To Code Making 3D Games
Unity 3D游戏代码编程学习教程 Full Guide To Unity 3D & C#: Learn To Code Making 3D Games Full Guide To Unit ...
- Unity增强现实初学者指南视频教程 A Beginner’s Guide to Augmented Reality with Unity
Unity增强现实初学者指南视频教程 A Beginner's Guide to Augmented Reality with Unity MP4 |视频:h264,1280×720 (部分1920X ...
- 安装EBS前期检查工具 - RDA - Health Check / Validation Engine Guide
参考文档 RDA - Health Check / Validation Engine Guide (文档 ID 250262.1) 先下载 RDA 补丁包. Download HCV ...
- 音频(3):iPod Library Access Programming Guide:Introduction
Next Introduction 介绍 iPod库访问(iPod Library Access)让应用程序可以播放用户的歌曲.有声书.和播客.这个API设计使得基本播放变得非常简单,同时也支持高级的 ...
- WSUS Troubleshooting guide
Troubleshooting guide for issues where WSUS clients are not reporting in 来自于WSUS TEAM BLOG This gui ...
最新文章
- [20180317]12c TABLE ACCESS BY INDEX ROWID BATCHED2.txt
- iOS中UISearchBar(搜索框)使用总结
- 推荐VS2008插件CodeRush Xpress for C#
- HTML5如何制作轮播透明效果,js前端开发实现banner轮播透明切换
- 《深入理解Elasticsearch(原书第2版)》一2.3.3 把查询模板保存到文件
- 我的内核学习笔记14:内核设备树学习
- 嵌入式操作系统内核原理和开发(基于链表节点的内存分配算法)
- javascript:Location对象的使用简介
- oracle数据库小总结(2017年7月10日)
- 【RecSys】推荐系统和计算广告经典算法论文及实现总结
- FANUC Robot 编程教程
- DRP项目知识点一: 数据库连接-封装Connection
- Mac电脑彻底卸载office(Excel,Word)
- 计算机存储单元的唯一标志是,存储单元的唯一标志是什么
- 【双轨】分销+量碰+返利+加权分红源码系统 演示网站
- 6款好用的在线思维导图工具推荐
- pycharm破解补丁激活
- 前端项目:从0开始实现一个合成大西瓜
- 【AI视野·今日CV 计算机视觉论文速览 第159期】Tue, 24 Sep 2019
- java判断南北纬度的分界线_中国地理之南北分界线标志园,就在江苏淮安,是南是北一看便知...