Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------------------------------------- #
- # Makefile
- #
- # @author Christian H. Bohlbro
- # Nikolaj André Jensen
- # Mikkel O. Laursen
- # @date 2018.09.14
- # @version 0.1
- # -------------------------------------- #
- # Check if this is being included from the kernel Makefile.
- ifeq ($(KERNELRELEASE),)
- # If KERNELDIR is not set
- ifeq ($(KERNELDIR),)
- # Assign KERNELDIR to default path
- KERNELDIR = ~/sources/rpi-4.14
- endif
- # If CCPREFIX is not set
- ifeq ($(CCPREFIX),)
- CCPREFIX = arm-poky-linux-gnueabi-
- endif
- # Pass the curretn directory to sub-makes as argument
- PWD := $(shell pwd)
- modules:
- $(MAKE) ARCH=arm CROSS_COMPILE=$(CCPREFIX) -C $(KERNELDIR) M=$(PWD) modules
- clean:
- rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers
- .PHONY: modules clean
- else
- ccflags-y := -DDEBUG -g -std=gnu99 -Wno-declaration-after-statement -Werror
- obj-m := sw2.o
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement