Make.boards (1219B)
1 # 2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 # 4 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 # 6 # Board support 7 # 8 9 ifneq (,$(findstring BOARD,$(FEATURE_LIST))) 10 11 # board feature is defined 12 13 ifdef ESW_CHIPS 14 NEEDS_I2C=1 15 endif 16 17 ifndef NEEDS_I2C 18 FEATURE_EXCLUDE_LIST += I2C 19 endif 20 21 ifndef BOARD_LIST 22 23 # if BOARD_LIST is not defined, create one based on the devices 24 # available 25 26 BOARD_LIST = 27 28 # 29 # device architecture dependent generic board drivers 30 # 31 ifdef ESW_CHIPS 32 ESW_GENERIC_BOARD=1 33 endif 34 35 ifdef ESW_GENERIC_BOARD 36 BOARD_LIST += GENERIC 37 endif 38 39 # 40 # BCM956504R24, BCM956504R48 and other similar designs 41 # 42 ifdef BCM_56504_A0 43 BCM956504R24=1 44 endif 45 46 ifdef BCM_56504_B0 47 BCM956504R24=1 48 endif 49 50 ifdef BCM_56514_A0 51 BCM956504R24=1 52 endif 53 54 ifdef BCM_56102_A0 55 BCM956504R24=1 56 endif 57 58 ifdef BCM_56112_A0 59 BCM956504R24=1 60 endif 61 62 ifdef BCM_56304_B0 63 BCM956504R24=1 64 endif 65 66 # 67 # single and dual device boards 68 # 69 ifdef BCM956504R24 70 BOARD_LIST += BCM956504R24 71 BOARD_LIST += BCM956504R48 72 endif 73 74 # expand board list to defines 75 CFGFLAGS += $(foreach board,$(BOARD_LIST), -DINCLUDE_BOARD_$(board)) 76 77 endif # ifndef BOARD_LIST 78 79 endif # if BOARD FEATURE