Makefile: Add platform generic for platform neutral targets (#127)
This commit is contained in:
parent
f92ee6937c
commit
da9022971e
6
platform/generic/rules.mk
Normal file
6
platform/generic/rules.mk
Normal file
@ -0,0 +1,6 @@
|
||||
SONIC_ALL += $(DOCKER_DATABASE) \
|
||||
$(DOCKER_FPM) \
|
||||
$(DOCKER_TEAM) \
|
||||
$(DOCKER_LLDP_SV2) \
|
||||
$(DOCKER_SNMP_SV2) \
|
||||
$(DOCKER_PLATFORM_MONITOR)
|
2
slave.mk
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user