Cross-compile pciutils

Table of Contents

目前busybox的lspci不能显示足够可用的信息,需要重新交叉编译一个lspci。

下载pciutils源码

make

修改Makefile

  • CROSS_COMPILE => ppc-linux-
  • ZLIB => no
  • DNS => no
  • SHARED => no

修改lib/config.h和lib/config.mk

注释掉

  • PCI_ARCH_I386
  • PCI_HAVE_PM_INTEL_CONF
  • PCI_HAVE_64BIT_ADDRESS

删掉lib下面所有的.o文件

重新make

搞定。

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.