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相关推荐

  1. Structured Streaming编程 Programming Guide

    Structured Streaming编程 Programming Guide • Overview • Quick Example • Programming Model o Basic Conc ...

  2. Technology Document Guide of TensorRT

    Technology Document Guide of TensorRT Abstract 本示例支持指南概述了GitHub和产品包中包含的所有受支持的TensorRT 7.2.1示例.Tensor ...

  3. Python神经网络集成技术Guide指南

    Python神经网络集成技术Guide指南 本指南将介绍如何加载一个神经网络集成系统并从Python运行推断. 提示 所有框架的神经网络集成系统运行时接口都是相同的,因此本指南适用于所有受支持框架(包 ...

  4. 深度学习框架集成平台C++ Guide指南

    深度学习框架集成平台C++ Guide指南 这个指南详细地介绍了神经网络C++的API,并介绍了许多不同的方法来处理模型. 提示 所有框架运行时接口都是相同的,因此本指南适用于所有受支持框架(包括Te ...

  5. Unity电子游戏优化终极指南 The Ultimate Guide to Video Game Optimisation

    大小解压后:5.2G 含课程文件 时长9h 1280X720 MP4 语言:英语+中英文字幕(根据原英文字幕机译更准确) 电子游戏优化终极指南 信息: 学会从你的Unity游戏开发项目中挤出每一帧表现 ...

  6. 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 ...

  7. 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 ...

  8. 安装EBS前期检查工具 - RDA - Health Check / Validation Engine Guide

    参考文档        RDA - Health Check / Validation Engine Guide (文档 ID 250262.1) 先下载 RDA 补丁包.  Download HCV ...

  9. 音频(3):iPod Library Access Programming Guide:Introduction

    Next Introduction 介绍 iPod库访问(iPod Library Access)让应用程序可以播放用户的歌曲.有声书.和播客.这个API设计使得基本播放变得非常简单,同时也支持高级的 ...

  10. WSUS Troubleshooting guide

    Troubleshooting guide for issues where WSUS clients are not reporting in  来自于WSUS TEAM BLOG This gui ...

最新文章

  1. [20180317]12c TABLE ACCESS BY INDEX ROWID BATCHED2.txt
  2. iOS中UISearchBar(搜索框)使用总结
  3. 推荐VS2008插件CodeRush Xpress for C#
  4. HTML5如何制作轮播透明效果,js前端开发实现banner轮播透明切换
  5. 《深入理解Elasticsearch(原书第2版)》一2.3.3 把查询模板保存到文件
  6. 我的内核学习笔记14:内核设备树学习
  7. 嵌入式操作系统内核原理和开发(基于链表节点的内存分配算法)
  8. javascript:Location对象的使用简介
  9. oracle数据库小总结(2017年7月10日)
  10. 【RecSys】推荐系统和计算广告经典算法论文及实现总结
  11. FANUC Robot 编程教程
  12. DRP项目知识点一: 数据库连接-封装Connection
  13. Mac电脑彻底卸载office(Excel,Word)
  14. 计算机存储单元的唯一标志是,存储单元的唯一标志是什么
  15. 【双轨】分销+量碰+返利+加权分红源码系统 演示网站
  16. 6款好用的在线思维导图工具推荐
  17. pycharm破解补丁激活
  18. 前端项目:从0开始实现一个合成大西瓜
  19. 【AI视野·今日CV 计算机视觉论文速览 第159期】Tue, 24 Sep 2019
  20. java判断南北纬度的分界线_中国地理之南北分界线标志园,就在江苏淮安,是南是北一看便知...

热门文章

  1. Qt下实现XML、INI、JSON的文件读写示例开发
  2. OpenCV读取AVI文件
  3. Excel作图-二维面积图展现占比变化
  4. 面试中软件开发测试题--Java自学网
  5. ns-3学习手记15_ns3中使用Trace Sourse 和Trace Sink输出数据
  6. Camtasia Studio2023喀秋莎新增功能及电脑配置要求介绍
  7. Windows 下编译使用 TCMalloc
  8. U-Boot启动参数详解(U-Boot-2014.07版本)
  9. UKF随笔与Python实现(无运动模型)
  10. 二级管工作原理(PN结原理)学习