xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcminternal.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#
2# Broadcom Proprietary and Confidential. Copyright (C) 2020,
3# All Rights Reserved.
4#
5# This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom;
6# the contents of this file may not be disclosed to third parties,
7# copied or duplicated in any form, in whole or in part, without
8# the prior written permission of Broadcom.
9#
10#
11# <<Broadcom-WL-IPTag/Secret:>>
12
13# This file should be seen only by internal builds because it will
14# be mentioned only in internal filelists like brcm.flist. The idea
15# is that it will be conditionally included by makefiles using the
16# "-include" syntax, with the result that internal builds will see
17# this file and set BCMINTERNAL which will eventually result in a
18# -DBCMINTERNAL option passed to the compiler along with possible
19# other effects. External builds will never see it and it will be
20# silently ignored.
21#
22# Any settings which should not be exposed to customers may be
23# placed here. For instance, if we were working on a super-secret
24# new feature in supersecret.c we could set a variable here like
25#    BCMINTERNAL_OBJECTS := supersecret.o
26# and later say
27#    OBJECTS += $(BCMINTERNAL_OBJECTS)
28# within the main makefile.
29#
30# The key point is that this file is never shipped to customers
31# because it's present only in internal filelists so anything
32# here is private.
33
34BCMINTERNAL := 1
35
36BCMINTERNAL_DFLAGS += -DBCMINTERNAL
37BCMINTERNAL_DFLAGS += -DDHD_NO_MOG
38
39# Support unreleased chips
40BCMINTERNAL_DFLAGS += -DUNRELEASEDCHIP
41
42ifneq ($(findstring -fwtrace,-$(TARGET)-),)
43  BCMINTERNAL_DFLAGS += -DDHD_FWTRACE
44  BCMINTERNAL_CFILES += dhd_fwtrace.c
45endif
46
47# support only for SDIO MFG Fedora builds
48ifneq ($(findstring -sdstd-,-$(TARGET)-),)
49  ifneq ($(findstring -mfgtest-,-$(TARGET)-),)
50    BCMINTERNAL_DFLAGS += -DDHD_SPROM
51    BCMINTERNAL_CFILES += bcmsrom.c bcmotp.c
52  endif
53endif
54
55ifneq ($(findstring -pciefd-,$(TARGET)-),)
56# NCI_BUS support
57BCMINTERNAL_DFLAGS += -DSOCI_NCI_BUS -DBOOKER_NIC400_INF
58BCMINTERNAL_CFILES += nciutils.c
59endif
60# vim: filetype=make shiftwidth=2
61