forked from sklnet/DDT-driver
-
Notifications
You must be signed in to change notification settings - Fork 7
/
kernel.make
66 lines (56 loc) · 2.32 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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
$(SILENT)rm player2/linux/drivers/media/dvb/stm/allocator/modules.order
$(SILENT)rm player2/linux/drivers/media/dvb/stm/backend/modules.order
$(SILENT)rm player2/linux/drivers/media/dvb/stm/dvb/modules.order
$(SILENT)rm player2/linux/drivers/media/dvb/stm/h264_preprocessor/modules.order
$(SILENT)rm player2/linux/drivers/media/dvb/stm/mpeg2_hard_host_transformer/modules.order
$(SILENT)rm player2/linux/drivers/media/sysfs/stm/modules.order
$(SILENT)rm player2/linux/drivers/sound/kreplay/modules.order
$(SILENT)rm player2/linux/drivers/sound/ksound/modules.order
$(SILENT)rm player2/linux/drivers/sound/pcm_transcoder/modules.order
$(SILENT)rm player2/linux/drivers/sound/pseudocard/modules.order
$(SILENT)rm player2/linux/drivers/sound/silencegen/modules.order
$(SILENT)rm player2/linux/drivers/stm/mmelog/modules.order
$(SILENT)rm player2/linux/drivers/stm/monitor/modules.order
$(SILENT)rm player2/linux/drivers/stm/platform/modules.order
$(SILENT)rm player2/linux/modules.order
$(SILENT)rm player2/modules.order
# for CDK compatibility, there is no useable distclean from here
distclean: clean
.PHONY: clean