Skip to contentSkip to conversation

How to check if a platform supports PCI bus

Buildroot DATACOM - Tiago.Brusamarello 2 participants 2 messages Mar 17, 2016

lore
Share & tools
lore
#0 lore raw

Hello.

I'm about to submit a new package to the upstream. This package is intended to be used for testing the Linux PCIe driver. On the "Config.in" file I'm using the same check made by the "pciutils" package:

# PCI not supported on Blackfin
depends on !BR2_bfin

Is this correct to check if a platform supports PCI bus on Buildroot?

Regards,

Signature · 5 lines
Tiago. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160317/f6384fd6/attachment.html>
#1 lore raw

Hello,

Quoted 6 lines · DATACOM - Tiago.Brusamarello

I'm about to submit a new package to the upstream. This package is intended to be used for testing the Linux PCIe driver. On the "Config.in" file I'm using the same check made by the "pciutils" package:

# PCI not supported on Blackfin
depends on !BR2_bfin

Is this correct to check if a platform supports PCI bus on Buildroot?

No. We don't really try to make sure that the platform has the relevant HW for a certain package. You can build i2c-tools even if you don't have an I2C bus. You can build X.org even if you don't have a screen, etc.

So just don't try to do anything special about the PCI dependency. You can try to build your package on Blackfin to see if it builds or not. If it doesn't, then exclude Blackfin, and that's it. It should build fine on other architectures.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com