diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-12-17 23:06:42 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-20 00:17:52 -0500 |
commit | a4da2e3ec84cda635ac441efbe781a38d2ee41ee (patch) | |
tree | 47fa696faaf092920ee0c0226ddc7557fa743d4d /arch/powerpc/boot/dtc-src/Makefile.dtc | |
parent | 70e47528aa0eb5ef63fef6ee0d30065d9e09f3e5 (diff) |
[POWERPC] Merge dtc upstream source
This incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This commit only imports the upstream
sources verbatim, a later commit will actually link it into the kernel
Makefiles and use the embedded code during the kernel build.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/dtc-src/Makefile.dtc')
-rw-r--r-- | arch/powerpc/boot/dtc-src/Makefile.dtc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dtc-src/Makefile.dtc b/arch/powerpc/boot/dtc-src/Makefile.dtc new file mode 100644 index 000000000000..d607fdb8df8d --- /dev/null +++ b/arch/powerpc/boot/dtc-src/Makefile.dtc | |||
@@ -0,0 +1,25 @@ | |||
1 | # Makefile.dtc | ||
2 | # | ||
3 | # This is not a complete Makefile of itself. Instead, it is designed to | ||
4 | # be easily embeddable into other systems of Makefiles. | ||
5 | # | ||
6 | DTC_SRCS = dtc.c flattree.c fstree.c data.c livetree.c treesource.c srcpos.c \ | ||
7 | checks.c | ||
8 | DTC_EXTRA = dtc.h srcpos.h | ||
9 | DTC_LEXFILES = dtc-lexer.l | ||
10 | DTC_BISONFILES = dtc-parser.y | ||
11 | |||
12 | DTC_LEX_SRCS = $(DTC_LEXFILES:%.l=%.lex.c) | ||
13 | DTC_BISON_SRCS = $(DTC_BISONFILES:%.y=%.tab.c) | ||
14 | DTC_BISON_INCLUDES = $(DTC_BISONFILES:%.y=%.tab.h) | ||
15 | |||
16 | DTC_GEN_SRCS = $(DTC_LEX_SRCS) $(DTC_BISON_SRCS) | ||
17 | DTC_GEN_ALL = $(DTC_GEN_SRCS) $(DTC_BISON_INCLUDES) | ||
18 | DTC_OBJS = $(DTC_SRCS:%.c=%.o) $(DTC_GEN_SRCS:%.c=%.o) | ||
19 | |||
20 | DTC_CLEANFILES = $(DTC_GEN_ALL) | ||
21 | |||
22 | # We assume the containing Makefile system can do auto-dependencies for most | ||
23 | # things, but we supply the dependencies on generated header files explicitly | ||
24 | |||
25 | $(addprefix $(DTC_objdir)/,$(DTC_GEN_SRCS:%.c=%.o)): $(addprefix $(DTC_objdir)/,$(DTC_BISON_INCLUDES)) | ||