Currently, the Kbuild core manipulates header search paths in a crazy
way [1].
To fix this mess, I want all Makefiles to add explicit $(srctree)/ to
the search paths in the srctree. Some Makefiles are already written in
that way, but not all. The goal of this work is to make the notation
consistent, and finally get rid of the gross hacks.
Having whitespaces after -I does not matter since commit 48f6e3cf5b
("kbuild: do not drop -I without parameter").
I also removed one header search path in:
drivers/net/wireless/broadcom/brcm80211/brcmutil/Makefile
I was able to compile without it.
[1]: https://patchwork.kernel.org/patch/9632347/
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
#
|
|
# Makefile fragment for Broadcom 802.11n Networking Device Driver
|
|
#
|
|
# Copyright (c) 2010 Broadcom Corporation
|
|
#
|
|
# Permission to use, copy, modify, and/or distribute this software for any
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
# copyright notice and this permission notice appear in all copies.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
ccflags-y := \
|
|
-I $(srctree)/$(src) \
|
|
-I $(srctree)/$(src)/phy \
|
|
-I $(srctree)/$(src)/../include
|
|
|
|
brcmsmac-y := \
|
|
mac80211_if.o \
|
|
ucode_loader.o \
|
|
ampdu.o \
|
|
antsel.o \
|
|
channel.o \
|
|
main.o \
|
|
phy_shim.o \
|
|
pmu.o \
|
|
rate.o \
|
|
stf.o \
|
|
aiutils.o \
|
|
phy/phy_cmn.o \
|
|
phy/phy_lcn.o \
|
|
phy/phy_n.o \
|
|
phy/phytbl_lcn.o \
|
|
phy/phytbl_n.o \
|
|
phy/phy_qmath.o \
|
|
dma.o \
|
|
brcms_trace_events.o \
|
|
debug.o
|
|
|
|
brcmsmac-$(CONFIG_BCMA_DRIVER_GPIO) += led.o
|
|
|
|
obj-$(CONFIG_BRCMSMAC) += brcmsmac.o
|