From da9022971e5e5714ff6c4fa0ab7eb4991eb2b6b2 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Thu, 15 Dec 2016 19:43:17 -0800 Subject: [PATCH] Makefile: Add platform generic for platform neutral targets (#127) --- platform/generic/rules.mk | 6 ++++++ slave.mk | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 platform/generic/rules.mk diff --git a/platform/generic/rules.mk b/platform/generic/rules.mk new file mode 100644 index 0000000000..5ef6468b2f --- /dev/null +++ b/platform/generic/rules.mk @@ -0,0 +1,6 @@ +SONIC_ALL += $(DOCKER_DATABASE) \ + $(DOCKER_FPM) \ + $(DOCKER_TEAM) \ + $(DOCKER_LLDP_SV2) \ + $(DOCKER_SNMP_SV2) \ + $(DOCKER_PLATFORM_MONITOR) diff --git a/slave.mk b/slave.mk index ee89df4b4c..cb7cc03715 100644 --- a/slave.mk +++ b/slave.mk @@ -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