[kitten] push by kevin.pe...@gmail.com - Allow multiple rawdata blobs to be embedded in ELF binaries.... on 2013-06-28 23:23 GMT

1 view
Skip to first unread message

kit...@googlecode.com

unread,
Jun 28, 2013, 7:24:07 PM6/28/13
to kitten-...@googlegroups.com
Revision: 93f027917906
Branch: default
Author: Kevin Pedretti <ktp...@sandia.gov>
Date: Wed Jun 12 04:27:48 2013
Log: Allow multiple rawdata blobs to be embedded in ELF binaries.
Useful for embedding multiple guest OS images in hello_world,
or embedding multiple app images in PCT.
http://code.google.com/p/kitten/source/detail?r=93f027917906

Modified:
/user/Makefile.footer

=======================================
--- /user/Makefile.footer Wed Apr 3 14:01:23 2013
+++ /user/Makefile.footer Wed Jun 12 04:27:48 2013
@@ -59,14 +59,36 @@
$(1)_OLDADD_EXPLICIT += $$O/$(1)_rawdata.o
$$O/$(1)_rawdata.o: $$($(1)_RAWDATA) $(CONFIG)
$$(call buildrawobj,$$@,$$<,$(1)_rawdata,$O)
+CLEAN_FILES += $$O/$(1)_rawdata.o
endif

+ifdef $(1)_RAWDATA2
+$(1)_OLDADD_EXPLICIT += $$O/$(1)_rawdata2.o
+$$O/$(1)_rawdata2.o: $$($(1)_RAWDATA2) $(CONFIG)
+ $$(call buildrawobj,$$@,$$<,$(1)_rawdata2,$O)
+CLEAN_FILES += $$O/$(1)_rawdata2.o
+endif
+
+ifdef $(1)_RAWDATA3
+$(1)_OLDADD_EXPLICIT += $$O/$(1)_rawdata3.o
+$$O/$(1)_rawdata3.o: $$($(1)_RAWDATA3) $(CONFIG)
+ $$(call buildrawobj,$$@,$$<,$(1)_rawdata3,$O)
+CLEAN_FILES += $$O/$(1)_rawdata3.o
+endif
+
+ifdef $(1)_RAWDATA4
+$(1)_OLDADD_EXPLICIT += $$O/$(1)_rawdata4.o
+$$O/$(1)_rawdata4.o: $$($(1)_RAWDATA4) $(CONFIG)
+ $$(call buildrawobj,$$@,$$<,$(1)_rawdata4,$O)
+CLEAN_FILES += $$O/$(1)_rawdata4.o
+endif
+
# Rule for building the target program
$$O/$(1): $$($(1)_OOBJS) $$($(1)_OLDADD_EXPLICIT)
$$(call buildprog,$$@,$$^ $$($(1)_LDADD_OTHER))

CLEAN_DIRS += $$O
-CLEAN_FILES += $$O/$(1) $$($(1)_OOBJS) $$O/$(1)_rawdata.o
+CLEAN_FILES += $$O/$(1) $$($(1)_OOBJS)
endef


Reply all
Reply to author
Forward
0 new messages