Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssd1306 base #50

Open
wants to merge 4 commits into
base: Dmytro.Kirtoka
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions ssd1306/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# ssd1306
#
ifneq ($(KERNELRELEASE),)

obj-m := i2c_ssd1306.o

else


ifeq ($(KERNELDIR),)
ifeq ($(BBB_KERNEL),)
$(error Path to kernel tree - KERNELDIR or BBB_KERNEL variable is not defined!)
endif
endif

KERNELDIR ?= $(BBB_KERNEL)

export ARCH = arm
export CROSS_COMPILE ?= arm-linux-gnueabihf-


.PHONY: all clean dtb

all:
$(MAKE) -C $(KERNELDIR) M=$(CURDIR) modules

clean:
$(MAKE) -C $(KERNELDIR) M=$(CURDIR) clean

dtb:
cp am335x-bone-common.dtsi $(KERNELDIR)/arch/arm/boot/dts/
$(MAKE) -C $(KERNELDIR) M=$(CURDIR) dtbs


endif
Loading