forked from sklnet/DDT-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel.make
50 lines (40 loc) · 1.31 KB
/
kernel.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# common build includes for the tuxbox
# change CDKPREFIX and CVSROOT
# according to your setup if
# necessary
# directory containing the cdk
#CDKDIR:=$(HOME)/tuxbox/target
# directory containing the cvs sources
#CVSDIR:=$(HOME)/tuxbox/cvs
#######################################
#ARCH=sh
#CROSS_COMPILE=sh4-linux-
#######################################
#PATH:=$(CDKDIR)/cdk/bin:$(PATH)
#CDKROOT:=$(CDKDIR)/cdkroot
#MAKE=/usr/bin/make
#######################################
#KERNEL_LOCATION=$(CVSDIR)/cdk/linux
#INSTALL_MOD_PATH=$(CDKDIR)/cdkroot
#######################################
# we need to get rid of the ".." at the end to avoid having to rebuild
# everything in case we switch directories :S
DRIVER_TOPDIR:=$(shell $(DRIVER_TOPDIR)/unify_path $(DRIVER_TOPDIR))
#export PATH
#export CVSROOT
#export MAKE
#export ARCH
#export CROSS_COMPILE
#export KERNEL_LOCATION
#export INSTALL_MOD_PATH
export DRIVER_TOPDIR
# set KBUILD_VERBOSE to 1 to get all the dirty details
all:
@$(MAKE) -C $(KERNEL_LOCATION) M=$(DRIVER_TOPDIR) KBUILD_VERBOSE=0 modules
install: all
@$(MAKE) -C $(KERNEL_LOCATION) M=$(DRIVER_TOPDIR) KBUILD_VERBOSE=0 modules_install
clean:
@$(MAKE) -C $(KERNEL_LOCATION) M=$(shell pwd) KBUILD_VERBOSE=0 clean
# for CDK compatibility, there is no useable distclean from here
distclean: clean
.PHONY: clean