summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d6df50)
raw | patch | inline | side by side (parent: 4d6df50)
author | Angela Stegmaier <angelabaker@ti.com> | |
Mon, 4 Apr 2016 17:38:59 +0000 (12:38 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Fri, 17 Jun 2016 15:15:48 +0000 (10:15 -0500) |
Add "lib" build that allows only the baselib to be built instead
of both the library and executable. This saves build time if the
executable is not needed (for example if IPUMM is being linked
into another image).
Change-Id: Ic509bd08147652938e7cfc6149d348a26b9fa131
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
of both the library and executable. This saves build time if the
executable is not needed (for example if IPUMM is being linked
into another image).
Change-Id: Ic509bd08147652938e7cfc6149d348a26b9fa131
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index ac1b1cfca99341d2abbfd303afbe93f7e0f67ef8..a00749522b4d18690055bce4b1ee57d166b75d58 100644 (file)
--- a/Makefile
+++ b/Makefile
all: ducatibin
+lib: ducatilib
+
# Include platform build configuration
config:
ifeq (bldcfg.mk,$(wildcard bldcfg.mk))
$(XDCROOT)/xdc --jobs=$(JOBS) clean -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baselib/.; \
$(XDCROOT)/xdc --jobs=$(JOBS) clean -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baseimage/.
+buildlib: config
+ifeq ($(IPCSRC),)
+ @echo "ERROR: IPCSRC not set. Exiting..."
+ @echo "For more info, use 'make help'"
+ @exit 1
+else ifeq ($(TMS470CGTOOLPATH),)
+ @echo "ERROR: TMS470CGTOOLPATH not set. Exiting..."
+ @echo "For more info, use 'make help'"
+ @exit 1
+endif
+ export XDCARGS=$(MYXDCARGS); \
+ $(XDCROOT)/xdc --jobs=$(JOBS) -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baselib/.
+
build: config
ifeq ($(IPCSRC),)
@echo "ERROR: IPCSRC not set. Exiting..."
$(XDCROOT)/xdc --jobs=$(JOBS) -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baselib/.; \
$(XDCROOT)/xdc --jobs=$(JOBS) -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baseimage/.
+ducatilib: buildlib
+
ducatibin: build
ifeq ($(FORSMP),1)
$(TMS470CGTOOLPATH)/bin/armstrip -p $(DUCATIDCEMMSRC)/platform/ti/dce/baseimage/out/ipu/$(PROFILE)/$(INTBINNAME) -o=$(DUCATIBINNAME)