Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MityDSP-L138 (ARM9 Based Platforms)
All Projects
Mity CPU Platforms
»
MityDSP-L138 (ARM9 Based Platforms)
Overview
Activity
Wiki
Forums
Download (634 Bytes)
RE: Driver Development Procedure
» Makefile
david kasper, 11/19/2010 12:14 PM
#
# Sample out of tree build Makefile
# for the TARGET system
#
PWD
=
$(
shell
pwd
)
ROOTDIR
?=
$(
KERNEL_ROOT
)
/..
KSRC
=
$(
ROOTDIR
)
/
$(
LINUXDIR
)
ARCH
?=
arm
CROSS_COMPILE
?=
arm-angstrom-linux-gnueabi-
MAKEARCH_KERNEL
?=
$(
MAKE
)
ARCH
=
$(
ARCH
)
CROSS_COMPILE
=
$(
CROSS_COMPILE
)
#ifdef M
obj-m
+=
gpio.o
#else
all
:
CFLAGS
=
""
CPPFLAGS
=
""
LDFLAGS
=
""
\
$(
MAKEARCH_KERNEL
)
-C
$(
ROOTDIR
)
/
$(
LINUXDIR
)
M
=
$(
PWD
)
modules
$(
MAKEARCH_KERNEL
)
-C
$(
ROOTDIR
)
/
$(
LINUXDIR
)
M
=
$(
PWD
)
\
INSTALL_MOD_PATH
=
$(
ROOTDIR
)
/romfs
DEPMOD
=
true
modules_install
romfs
:
clean
:
$(
MAKEARCH_KERNEL
)
-C
$(
ROOTDIR
)
/
$(
LINUXDIR
)
M
=
$(
PWD
)
clean
#endif
« Previous
1
2
Next »
(1-1/2)
Go to top
Loading...