blob: b53085a970dd45d7ecf4a63fa0002a19cc994185 (
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 ChromiumOS Authors
# 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)
|