logic_pio: Build into a library
authorJohn Garry <john.garry@huawei.com>
Mon, 4 Nov 2019 17:22:19 +0000 (01:22 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 5 Nov 2019 00:48:07 +0000 (08:48 +0800)
commitf361c863b3bfa602da37d7a94d90a5dfee0d08fe
tree339ea5f263a6c63c5d7a992c94d4002cfe3fffae
parent3e5cd20d4e1f75b03da58c379ca661e2f1e55cfc
logic_pio: Build into a library

Object file logic_pio.o is always built.

Ideally the object file should only be built when required. This is
tricky, as that would be for archs which define PCI_IOBASE, but no common
config option exists for that.

For now, continue to always build but at least ensure the symbols are not
included in the vmlinux when not referenced.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
lib/Makefile