Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to check if a platform supports PCI bus
@ 2016-03-17 12:55 DATACOM - Tiago.Brusamarello
  2016-03-17 20:32 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: DATACOM - Tiago.Brusamarello @ 2016-03-17 12:55 UTC (permalink / raw)
  To: buildroot

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, 

-- 
Tiago. 

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] How to check if a platform supports PCI bus
  2016-03-17 12:55 [Buildroot] How to check if a platform supports PCI bus DATACOM - Tiago.Brusamarello
@ 2016-03-17 20:32 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-03-17 20:32 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 17 Mar 2016 09:55:44 -0300 (BRT), DATACOM - Tiago.Brusamarello
wrote:

> 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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-17 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 12:55 [Buildroot] How to check if a platform supports PCI bus DATACOM - Tiago.Brusamarello
2016-03-17 20:32 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox