Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | ############################################################################### |
| 2 | # |
| 3 | # <:copyright-BRCM:2016:DUAL/GPL:standard |
| 4 | # |
| 5 | # Copyright (c) 2016 Broadcom |
| 6 | # All Rights Reserved |
| 7 | # |
| 8 | # Unless you and Broadcom execute a separate written software license |
| 9 | # agreement governing use of this software, this software is licensed |
| 10 | # to you under the terms of the GNU General Public License version 2 |
| 11 | # (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, |
| 12 | # with the following added to such license: |
| 13 | # |
| 14 | # As a special exception, the copyright holders of this software give |
| 15 | # you permission to link this software with independent modules, and |
| 16 | # to copy and distribute the resulting executable under terms of your |
| 17 | # choice, provided that you also meet, for each linked independent |
| 18 | # module, the terms and conditions of the license of that module. |
| 19 | # An independent module is a module which is not derived from this |
| 20 | # software. The special exception does not apply to any modifications |
| 21 | # of the software. |
| 22 | # |
| 23 | # Not withstanding the above, under no circumstances may you combine |
| 24 | # this software in any way with any other Broadcom software provided |
| 25 | # under a license other than the GPL, without Broadcom's express prior |
| 26 | # written consent. |
| 27 | # |
| 28 | # :> |
| 29 | # |
| 30 | ############################################################################### |
| 31 | # EPON OAM Negotiation user application |
| 32 | |
| 33 | ifeq ("$(ENABLE_CLI)", "y") |
| 34 | |
| 35 | MOD_NAME = bcm_user_appl_eon |
| 36 | MOD_TYPE = lib |
| 37 | MOD_DEPS = bal_api common_epon_oam bcm_user_appl_epon_oam |
| 38 | |
| 39 | ifeq ("$(OS_KERNEL)", "linux") |
| 40 | MOD_DEPS += dev_log_linux |
| 41 | endif |
| 42 | |
| 43 | srcs = bcmolt_eon.c bcmolt_eon_log.c bcmolt_oam_heartbeat.c |
| 44 | |
| 45 | ENABLE_DPOE_OAM ?= y |
| 46 | ifeq ("$(ENABLE_DPOE_OAM)", "y") |
| 47 | EXTRA_DEFINES += -DEON_OAM_SET_DPOE_SUPPORTED |
| 48 | srcs += oam_sets/dpoe/dpoe.c |
| 49 | endif # ENABLE_DPOE_OAM |
| 50 | |
| 51 | ENABLE_BRCM_OAM ?= y |
| 52 | ifeq ("$(ENABLE_BRCM_OAM)", "y") |
| 53 | EXTRA_DEFINES += -DEON_OAM_SET_BRCM_SUPPORTED |
| 54 | srcs += oam_sets/brcm/brcm.c |
| 55 | endif # ENABLE_BRCM_OAM |
| 56 | |
| 57 | endif |