Skip to content

Commit

Permalink
Makefile: Add platform generic for platform neutral targets (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Dec 16, 2016
1 parent f92ee69 commit da90229
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/generic/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SONIC_ALL += $(DOCKER_DATABASE) \
$(DOCKER_FPM) \
$(DOCKER_TEAM) \
$(DOCKER_LLDP_SV2) \
$(DOCKER_SNMP_SV2) \
$(DOCKER_PLATFORM_MONITOR)
2 changes: 2 additions & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

This comment has been minimized.

Copy link
@qiluo-msft

qiluo-msft Dec 16, 2016

Collaborator

@stcheng Why not to use $(RULES_PATH)? All the rule files for platform neutral targets are already there.

ifneq ($(CONFIGURED_PLATFORM), undefined)
include $(PLATFORM_PATH)/rules.mk
endif
Expand Down

0 comments on commit da90229

Please sign in to comment.