aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-03 18:51:22 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-03 18:51:22 -0400
commit3b24b83763e72a6c1e728100104fd99aa83a7b3b (patch)
treebd493c47804a9fe1e85ee41c2532b4748fca0b25 /drivers
parent0734e00ef9e48e78c5c3ce1648572f160d07e323 (diff)
parenta95b37e20db9a2b05354eec009b2188523a21c8e (diff)
Merge tag 'kbuild-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild updates from Masahiro Yamada: - add a shell script to get Clang version - improve portability of build scripts - drop always-enabled CONFIG_THIN_ARCHIVE and remove unused code - rename built-in.o which is now thin archive to built-in.a - process clean/build targets one by one to get along with -j option - simplify ld-option - improve building with CONFIG_TRIM_UNUSED_KSYMS - define KBUILD_MODNAME even for objects shared among multiple modules - avoid linking multiple instances of same objects from composite objects - move <linux/compiler_types.h> to c_flags to include it only for C files - clean-up various Makefiles * tag 'kbuild-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (29 commits) kbuild: get <linux/compiler_types.h> out of <linux/kconfig.h> kbuild: clean up link rule of composite modules kbuild: clean up archive rule of built-in.a kbuild: remove partial section mismatch detection for built-in.a net: liquidio: clean up Makefile for simpler composite object handling lib: zstd: clean up Makefile for simpler composite object handling kbuild: link $(real-obj-y) instead of $(obj-y) into built-in.a kbuild: rename real-objs-y/m to real-obj-y/m kbuild: move modname and modname-multi close to modname_flags kbuild: simplify modname calculation kbuild: fix modname for composite modules kbuild: define KBUILD_MODNAME even if multiple modules share objects kbuild: remove unnecessary $(subst $(obj)/, , ...) in modname-multi kbuild: Use ls(1) instead of stat(1) to obtain file size kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS kbuild: move include/config/ksym/* to include/ksym/* kbuild: move CONFIG_TRIM_UNUSED_KSYMS code unneeded for external module kbuild: restore autoksyms.h touch to the top Makefile kbuild: move 'scripts' target below kbuild: remove wrong 'touch' in adjust_autoksyms.sh ...
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/cavium/liquidio/Makefile51
-rw-r--r--drivers/s390/Makefile2
2 files changed, 17 insertions, 36 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/Makefile b/drivers/net/ethernet/cavium/liquidio/Makefile
index e3fc4645cd8a..bc9937502043 100644
--- a/drivers/net/ethernet/cavium/liquidio/Makefile
+++ b/drivers/net/ethernet/cavium/liquidio/Makefile
@@ -2,42 +2,23 @@
2# 2#
3# Cavium Liquidio ethernet device driver 3# Cavium Liquidio ethernet device driver
4# 4#
5obj-$(CONFIG_LIQUIDIO) += liquidio.o
6 5
7liquidio-$(CONFIG_LIQUIDIO) += lio_ethtool.o \ 6common-objs := lio_ethtool.o \
8 lio_core.o \ 7 lio_core.o \
9 request_manager.o \ 8 request_manager.o \
10 response_manager.o \ 9 response_manager.o \
11 octeon_device.o \ 10 octeon_device.o \
12 cn66xx_device.o \ 11 cn66xx_device.o \
13 cn68xx_device.o \ 12 cn68xx_device.o \
14 cn23xx_pf_device.o \ 13 cn23xx_pf_device.o \
15 cn23xx_vf_device.o \ 14 cn23xx_vf_device.o \
16 octeon_mailbox.o \ 15 octeon_mailbox.o \
17 octeon_mem_ops.o \ 16 octeon_mem_ops.o \
18 octeon_droq.o \ 17 octeon_droq.o \
19 octeon_nic.o 18 octeon_nic.o
20 19
21liquidio-objs := lio_main.o octeon_console.o lio_vf_rep.o $(liquidio-y) 20obj-$(CONFIG_LIQUIDIO) += liquidio.o
21liquidio-y := lio_main.o octeon_console.o lio_vf_rep.o $(common-objs)
22 22
23obj-$(CONFIG_LIQUIDIO_VF) += liquidio_vf.o 23obj-$(CONFIG_LIQUIDIO_VF) += liquidio_vf.o
24 24liquidio_vf-y := lio_vf_main.o $(common-objs)
25ifeq ($(CONFIG_LIQUIDIO)$(CONFIG_LIQUIDIO_VF), yy)
26 liquidio_vf-objs := lio_vf_main.o
27else
28liquidio_vf-$(CONFIG_LIQUIDIO_VF) += lio_ethtool.o \
29 lio_core.o \
30 request_manager.o \
31 response_manager.o \
32 octeon_device.o \
33 cn66xx_device.o \
34 cn68xx_device.o \
35 cn23xx_pf_device.o \
36 cn23xx_vf_device.o \
37 octeon_mailbox.o \
38 octeon_mem_ops.o \
39 octeon_droq.o \
40 octeon_nic.o
41
42liquidio_vf-objs := lio_vf_main.o $(liquidio_vf-y)
43endif
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index 2fdab400c1fe..a863b0462b43 100644
--- a/drivers/s390/Makefile
+++ b/drivers/s390/Makefile
@@ -5,5 +5,5 @@
5 5
6obj-y += cio/ block/ char/ crypto/ net/ scsi/ virtio/ 6obj-y += cio/ block/ char/ crypto/ net/ scsi/ virtio/
7 7
8drivers-y += drivers/s390/built-in.o 8drivers-y += drivers/s390/built-in.a
9 9