Last active
August 29, 2015 14:10
-
-
Save stu9458/89096b085a980f1779c1 to your computer and use it in GitHub Desktop.
Use that to make the oscillateur-gpio-rtdm.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXTRA_CFLAGS := -I/home/emp-chen/git/bbb/xenomai-2.6.4/include | |
ifneq (${KERNELRELEASE},) | |
obj-m += oscillateur-gpio-rtdm.o | |
else | |
ARCH ?= arm | |
CROSS_COMPILE ?= /home/emp-chen/linux-arm-genuhbi- | |
KERNEL_DIR = /home/emp-chen/git/bbb/beagle-kernel/kernel | |
MODULE_DIR := $(shell pwd) | |
CFLAGS := -Wall -g | |
.PHONY: all | |
all:: modules | |
.PHONY: modules | |
modules: | |
${MAKE} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C ${KERNEL_DIR} SUBDIRS=${MODULE_DIR} modules | |
XENOCONFIG=/home/emp-chen/git/bbb/xenomai-2.6.4/RPI/usr/xenomai/bin/xeno-config | |
.PHONY: clean | |
clean:: | |
rm -f *.o .*.o .*.o.* *.ko .*.ko *.mod.* .*.mod.* .*.cmd *~ | |
rm -f Module.symvers Module.markers modules.order | |
rm -rf .tmp_versions | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment