pciutils를 cross-compile 하고, package 단위로 나눠보자.
lspci
로 유명하다.meta/recipes-bsp/pciutils
에 이미 레시피가 존재한다.openembedded-core/meta/recipes-bsp/pciutils ±(kirkstone) ❯ tree .
.
├── pciutils
│ └── configure.patch(https://velog.velcdn.com/images/markyang92/post/1d784fe5-7515-4b68-9186-5d3b47532d09/image.png)
└── pciutils_3.7.0.bb
wget https://cdn.kernel.org/pub/software/utils/pciutils/pciutils-3.7.0.tar.xz
1-1. check sum
$ sha256sum ./pciutils-3.7.0.tar.xz
9d40b97be8b6a2cdf96aead5a61881d1f7e4e0da9544a9bac4fba1ae9dcd40eb ./pciutils-3.7.0.tar.xz
tar -Jxvf ./pciutils-3.7.0.tar.xz -C ./
meta/recipes-bsp/pciutils ±(kirkstone) ❯ rsync -a ./pciutils/configure.patch ~/pciutils-3.7.0
~/pciutils-3.7.0 : $ patch -p1 < ./configure.patch
patching file Makefile
patching file lib/configure
libpci.pc.in
, libpci.ver
를 주목하자.