Makefile (1504B)
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 # Makefile for SOC driver Library 7 # 8 LOCALDIR = src/soc 9 10 CFGFLAGS += -DSOURCE_CHECK_LIBSOC 11 12 include ${SDK}/make/Make.config 13 14 subdirs = phy common shared 15 16 ifdef ESW_CHIPS 17 subdirs += mcm 18 endif 19 20 ifdef ESW_CHIPS 21 subdirs += esw 22 endif 23 24 ifdef KBP_DEVICE 25 subdirs += kbp 26 endif 27 28 # 29 # The 'dnx' directory is reserved for JR2 family (JR2 and up) 30 # The 'dnxf' directory is reserved for Ramon family (Ramon and up) 31 # 32 ifdef DNX_CHIPS 33 subdirs += dnx 34 subdirs += mcm 35 subdirs += dnxc 36 endif 37 38 ifdef DNXF_CHIPS 39 subdirs += dnxf 40 subdirs += mcm 41 subdirs += dnxc 42 endif 43 44 ifdef SAND_CHIPS 45 subdirs += sand 46 endif 47 48 ifdef DPP_CHIPS 49 subdirs += dpp 50 subdirs += mcm 51 subdirs += dcmn 52 subdirs += hwstate 53 endif 54 55 ifdef DFE_CHIPS 56 subdirs += dfe 57 subdirs += mcm 58 subdirs += dcmn 59 subdirs += hwstate 60 endif 61 62 ifdef PORTMOD_SUPPORT 63 ifdef PORTMOD_STAND_ALONE 64 subdirs += mcm 65 endif 66 subdirs+= portmod 67 endif 68 69 ifdef CPRIMOD_SUPPORT 70 subdirs+= cprimod 71 endif 72 73 74 ifdef COND_LIB_SOC_I2C 75 subdirs += i2c 76 endif 77 78 ifdef BCM_56440_A0 79 ifdef COND_LIB_CES 80 subdirs += ces 81 endif 82 endif 83 84 ifdef FEATURE_FCMAP 85 subdirs += phy/fcmap/src 86 endif 87 88 subdirs += phy/chip/koi/merlin_koi_src 89 subdirs += phy/chip/orca/eagle_orca_src 90 91 ifdef IMACSEC_HOME 92 subdirs += ${IMACSEC_HOME} 93 endif 94 95 include ${SDK}/make/Make.subdirs 96 97 lib = libsoc 98 include ${SDK}/make/Make.lib 99 100 include ${SDK}/make/Make.depend