pci: Only link pci_rom.o in some cases
authorTom Rini <trini@konsulko.com>
Wed, 27 Nov 2019 01:40:59 +0000 (20:40 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:43:24 +0000 (08:43 -0500)
commit923e211f8d92d67caa93125f1aff2ae123c6b9d5
tree25c7270df6afee201a2ee5347f1e5edcbdce66fa
parente78f16b751c86de8d20222083b1d14fd4e1c0f59
pci: Only link pci_rom.o in some cases

The content of pci_rom.c is only used in a few cases.  Only build and
link in these cases to avoid a global variable as gcc doesn't always
discard those when they are unused.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/pci/Makefile