2011년 9월 15일 목요일

pciutils build and install


Introduction


The PCI Utilities package contains a library for portable access to PCI bus configuration registers and several utilities based on this library.

- lspci: displays detailed information about all PCI buses and devices.
- setpci: allows to read from and write to PCI device configuration
    registers. For example, you can adjust the latency timers with it.
    CAUTION: There is a couple of dangerous points and caveats, please read
    the manual page first!
- update-pciids: download the current version of the pci.ids file.

For more detail , refer to README file in this package

download


ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
https://ftp.kernel.org/pub/software/utils/pciutils/
or git tree
git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git

Configure and build for cross compile


pci-util does not support configure.

$ make CROSS_COMPILE=arm-none-linux-gnueabi- HOST=arm-none-linux PREFIX=/targetnfs/durota/rfs/user/local/pciutils all
$make install

strip option is defined as below inside of make file

STRIP=-s

and install includes below

$(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)

change makefile as below

STRIP=$(CROSS_COMPILE)strip
$(STRIP) lspci
$(STRIP) setpci
$(INSTALL) -c -m 755 lspci setpci $(DESTDIR)$(SBINDIR)

or just remove $(STRIP)

$(INSTALL) -c -m 755  lspci setpci $(DESTDIR)$(SBINDIR)

2011년 9월 9일 금요일

simple busybox build

just do it

 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- CONFIG_PREFIX=../rootfs_skel_tmp/ install