Browse Source
By tricking Zephyt arch Makefiles compute them for us (not just for Zephyr). This make potentially break as Zephyr evolves.pull/2500/head
Paul Sokolovsky
8 years ago
2 changed files with 29 additions and 9 deletions
@ -0,0 +1,17 @@ |
|||||
|
srctree = $(ZEPHYR_BASE) |
||||
|
|
||||
|
include $(Z_DOTCONFIG) |
||||
|
override ARCH = $(subst $(DQUOTE),,$(CONFIG_ARCH)) |
||||
|
SOC_NAME = $(subst $(DQUOTE),,$(CONFIG_SOC)) |
||||
|
SOC_SERIES = $(subst $(DQUOTE),,$(CONFIG_SOC_SERIES)) |
||||
|
SOC_FAMILY = $(subst $(DQUOTE),,$(CONFIG_SOC_FAMILY)) |
||||
|
ifeq ($(SOC_SERIES),) |
||||
|
SOC_PATH = $(SOC_NAME) |
||||
|
else |
||||
|
SOC_PATH = $(SOC_FAMILY)/$(SOC_SERIES) |
||||
|
endif |
||||
|
|
||||
|
KBUILD_CFLAGS := -c |
||||
|
include $(ZEPHYR_BASE)/scripts/Kbuild.include |
||||
|
|
||||
|
include $(ZEPHYR_BASE)/arch/$(ARCH)/Makefile |
Loading…
Reference in new issue