pciutils交叉编译

Posted by 婷 on February 12, 2023 本文总阅读量

简介

本文主要是简单介绍pciutils工具如何交叉编译

过程

下载地址,选择3.8版本

https://mirrors.edge.kernel.org/pub/software/utils/pciutils/

image-20220615225638578

解压tar -zxvf pciutils-3.8.0.tar.gz

image-20230212152914490

修改Makefile

image-20230212153041822

红框为主要修改点

image-20230212153416787

# Host OS and release (override if you are cross-compiling)
HOST=arm-linux
RELEASE=
CROSS_COMPILE=aarch64-linux-gnu-

# Support for compressed pci.ids (yes/no, default: detect)
ZLIB=no

# Support for resolving ID's by DNS (yes/no, default: detect)
DNS=no

最后make -j12

image-20230212153442572

就看到成果物了

image-20230212153924951