Project

General

Profile

How to build cmemk.ko ยป Rules.make

I modified the file paths here. See lines prefaced with #Added MDF - Mary Frantz, 11/08/2012 12:36 PM

 
1
# Where to copy the resulting executables and data to (when executing 'make
2
# install') in a proper file structure. This EXEC_DIR should either be visible
3
# from the target, or you will have to copy this (whole) directory onto the
4
# target filesystem.
5
#EXEC_DIR=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/opt/dvevm
6
EXEC_DIR?=/tmp/cmem
7

    
8

    
9
# The prefix to be added before the GNU compiler tools (optionally including
10
# path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".
11

    
12
# For "kernel_org" builds
13
#MVTOOL_PREFIX=/db/toolsrc/library/vendors2005/cs/arm/arm-2008q1-126/bin/arm-none-linux-gnueabi-
14
#Original line
15
#MVTOOL_PREFIX?=arm-angstrom-linux-gnueabi-
16
#Added MDF
17
MVTOOL_PREFIX?=/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-
18

    
19
# For Davinci builds
20
#MVTOOL_PREFIX=/db/toolsrc/library/vendors2005/mvl/arm/mvl5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-
21

    
22
# Equivalent path for uClibc compiler tools
23
#UCTOOL_PREFIX=/db/toolsrc/library/vendors2005/opensource/buildroot/10122007/build_arm/staging_dir/usr/bin/arm-linux-
24
#Original line
25
#UCTOOL_PREFIX?=arm-angstrom-linux-gnueabi-
26
#Added MDF
27
UCTOOL PREFIX?=/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-
28

    
29

    
30
# The directory that points to your kernel source directory. This is used
31
# for building the cmemk.ko kernel module, as the kernel's build system
32
# gets invoked. Note that this also means that the below C_FLAGS etc. will
33
# be ignored when building this particular module.
34

    
35
# For DM355/DM365 2.6.31 Linux kernel
36
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/kernel_org/arm/KERNEL_DEV.DaVinciPSP.03.00.00.00/DaVinci-PSP-SDK-DEV.DaVinciPSP.03.00.00.00/kernel/dm365
37

    
38
# For OMAP3530 2.6.32-rc5 Linux kernel
39
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/kernel_org/arm/KERNEL_03.00.00.03_enable-iommu-for-iva2/AM35x-OMAP35x-PSP-SDK-03.00.00.03/OMAP35x/linux-03.00.00.03
40

    
41
#Original line
42
#LINUXKERNEL_INSTALL_DIR?=/home/mikew/linux-davinci
43
#Added MDF
44
LINUXKERNEL_INSTALL_DIR?=/home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci
45

    
46
#
47
# The following are kept around for TI developer convenience ...
48
#
49
# LSP 2.00 used for DM6446
50
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/mvl/arm/LSP_20/REL_LSP_02_00_00_100/dm6446/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500
51
# LSP 2.10 used for DM365
52
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/mvl/arm/LSP_210/REL_LSP_02_10_00_08/dm365/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500
53
# LSP 2.20 used for OMAPL137
54
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/mvl/arm/LSP_220/REL_LSP_02_20_00_03/da830/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500
55

    
56

    
57
# If we're a subcomponent, allow larger product settings to override our
58
# defaults.  The variable $(RULES_MAKE) can be overridden on the 'make'
59
# command-line if the location below is not correct (for example, when this
60
# module is not part of an overlying DVSDK).
61
RULES_MAKE := ../../../../../../../../Rules.make
62
-include $(RULES_MAKE)
63

    
64

    
65
# Whether or not to use the udev pseudo filesystem to generate the /dev
66
# filesystem for cmem. This depends on your kernel configuration. If udev is
67
# not used, the /dev/cmem file has to be created manually using mknod.
68
USE_UDEV=1
69

    
70
# The maximum number of memory pools for cmem.
71
MAX_POOLS=128
72

    
    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)