Makefile: Add platform generic for platform neutral targets (#127)

This commit is contained in:
Shuotian Cheng 2016-12-15 19:43:17 -08:00 committed by GitHub
parent f92ee6937c
commit da9022971e
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
SONIC_ALL += $(DOCKER_DATABASE) \
$(DOCKER_FPM) \
$(DOCKER_TEAM) \
$(DOCKER_LLDP_SV2) \
$(DOCKER_SNMP_SV2) \
$(DOCKER_PLATFORM_MONITOR)

View File

@ -26,6 +26,7 @@ PROJECT_ROOT = $(shell pwd)
CONFIGURED_PLATFORM := $(shell [ -f .platform ] && cat .platform || echo undefined)
PLATFORM_PATH = platform/$(CONFIGURED_PLATFORM)
PLATFORM_GENERIC_PATH = platform/generic
###############################################################################
## Utility rules
@ -51,6 +52,7 @@ distclean : .platform clean
include $(RULES_PATH)/config
include $(RULES_PATH)/functions
include $(RULES_PATH)/*.mk
include $(PLATFORM_GENERIC_PATH)/rules.mk
ifneq ($(CONFIGURED_PLATFORM), undefined)
include $(PLATFORM_PATH)/rules.mk
endif