ksdk: Build ksdk fsl_enet.c and fsl_phy.c

Add ksdk components necessary to build a network driver on k64f to the
build process.

Origin: Original

Change-Id: I777ab2594b4c443d634264625c39c6c875c34d9f
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-06-14 21:50:15 +01:00 committed by Anas Nashif
parent 98357de7a3
commit ec60dcc4c1
3 changed files with 23 additions and 0 deletions

View file

@ -21,6 +21,9 @@ KSDK_DEVICE = $(shell echo $(CONFIG_SOC) | tr '[:lower:]' '[:upper:]')
KSDK_CPU = CPU_$(subst $(DQUOTE),,$(CONFIG_SOC_PART_NUMBER))
ifdef CONFIG_HAS_KSDK
ifdef CONFIG_ETH_KSDK
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/ksdk/components/phyksz8081
endif
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/ksdk/devices/$(KSDK_DEVICE)
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/ksdk/drivers
@ -36,6 +39,7 @@ KBUILD_CFLAGS += -D$(KSDK_CPU)
obj-y += devices/$(KSDK_DEVICE)/fsl_clock.o
# Build ksdk drivers that can be used for multiple SoC's.
obj-y += components/
obj-y += drivers/
endif

View file

@ -0,0 +1,18 @@
# Makefile - Kinetis SDK
#
# Copyright (c) 2016, ARM Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
obj-$(CONFIG_ETH_KSDK) += phyksz8081/fsl_phy.o

View file

@ -14,5 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
obj-$(CONFIG_ETH_KSDK) += fsl_enet.o
obj-$(CONFIG_I2C_KSDK) += fsl_i2c.o
obj-$(CONFIG_KSDK_RNGA) += fsl_rnga.o