1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4# makefile for building kernel modules using meson 5# takes parameters from the environment 6 7# source file is passed via KMOD_SRC as relative path, we only use final 8# (tail) component of it (:T), as VPATH is used to find actual file. The 9# VPATH is similarly extracted from the non-final (head) portion of the 10# path (:H) converted to absolute path (:tA). This use of VPATH is to have 11# the .o files placed in the build, not source directory 12 13VPATH := ${KMOD_SRC:H:tA} 14SRCS := ${KMOD_SRC:T} device_if.h bus_if.h pci_if.h 15CFLAGS += $(KMOD_CFLAGS) 16.OBJDIR: ${KMOD_OBJDIR} 17 18.include <bsd.kmod.mk> 19