1# Copyright (C) 2021–2022 Beijing OSWare Technology Co., Ltd 2# This file contains confidential and proprietary information of 3# OSWare Technology Co., Ltd 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17MODULE_NAME := hdf_ethernet_model 18 19ETHERNET_PATH := $(shell pwd) 20$(warning ETHERNET_PATH=$(ETHERNET_PATH)) 21 22include $(ETHERNET_PATH)/../../../../../device/board/osware/imx8mm/drivers/ethernet/ethernet_config.mk 23 24ETHERNET_FW_PATH := ../../../../../../out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/drivers/hdf/framework/model/network/ethernet/src 25ETHERNET_AP_PATH := ../../../../../../out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/drivers/hdf/khdf/network/src 26ETHERNET_COMMON_PATH := ../../../../../../out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/drivers/hdf/framework/model/network/common/netdevice 27# for compile 28obj-y += $(ETHERNET_FW_PATH)/eth_chip_driver.o \ 29 $(ETHERNET_FW_PATH)/eth_device.o \ 30 $(ETHERNET_FW_PATH)/hdf_eth_core.o 31 32obj-y += $(MODULE_NAME).o 33$(MODULE_NAME)-objs := hdf_driver_register.o \ 34 net_adapter.o \ 35 nxpeth_mac.o \ 36 nxpeth_phy.o 37ccflags-y += \ 38 $(HDF_FRAMEWORKS_INC) \ 39 $(HDF_ETHERNET_FRAMEWORKS_INC) \ 40 $(SECURE_LIB_INC) \ 41 $(HDF_ETHERNET_ADAPTER_INC) \ 42 $(HDF_ETHERNET_FLAGS) 43 44