summaryrefslogtreecommitdiff
path: root/extra/i2c_pseudo/Makefile
blob: f7fda6e2de407d7cc02d2ac3dcdea5e915071d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Makefile for i2c-pseudo module.  Typical usage:
#   $ make
#   $ sudo make modules_install
#   $ make clean

obj-m := i2c-pseudo.o

.PHONY: all

all: modules

CFLAGS_i2c-pseudo.o += "-DHAVE_STREAM_OPEN=$(shell "$M"/check_stream_open.sh)"

.DEFAULT:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build \
		M=$(shell pwd) \
		$(MAKECMDGOALS)