aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-04-22 11:42:19 -0500
committerSaurabh Bipin Chandra2013-04-26 09:14:28 -0500
commit6647d1f16d70b9d867ce5b7aef92705939aa5975 (patch)
tree73b154f99e7ceff809c8a98be6489e4ee11d0877 /common.mk
downloadrepo-libdce-6647d1f16d70b9d867ce5b7aef92705939aa5975.tar.gz
repo-libdce-6647d1f16d70b9d867ce5b7aef92705939aa5975.tar.xz
repo-libdce-6647d1f16d70b9d867ce5b7aef92705939aa5975.zip
[libDCE] Add IPC 3.x Adapted code to Repository3.00.01.00
This patch adds libdce code to the repository. LibDCE has been adapted to use the MmRpc layer of IPC 3.x. This version of LibDCE is expected to work on QNX. Patchset 2 adds/modifies: 1. Removes Tiler 2D allocation/free for now. 2. Corrects memplugin_free() for Tiler 1D. 3. Modifies dce_test app to dump output till 30 frames. 4. Renamed dce.h to libdce.h. 5. Corrected header files across all files. 6. Build configuration for QNX 7. Removes build warnings. 8. Add README for Build instructions 9. Takes care of comments of Buddy and Pradeep. Patchset 3 adds/modifies: 1. Reduced Stack usage of each function. 2. Add ptr check in memplugin and remove from libdce. 3. Add DCE_Assert macros. 4. Add DCE_error_status enum. 5. Comments Cleanup 6. Make some functions static. 7. process() cleanup including removing reply_buf. 8. Add else if (for codec_type == Encoder type) 9. Converted Macros to Inline functions. 10.Converted init and deinit to dce_init and dce_deinit functions. 11. Removed dce_init() and dce_deinit() declarations Patchset 4 adds/modifies: 1. Assert Input function arguments. 2. Correct copyright year. 3. Correct memplugin_free for Shared memory. 4. Create dce_priv.h and move trace and assert macros to the header. 5. Redeclare mem_type enum and add mem_error_status enum in memplugin.h and make corresponding changes. 6. Add asserts in memplugin. Intention of some of the changes above is to move towards delinking Libdce and Memplugin. Patchset 5: 1. Missed to add dce_priv.h file. Patchset 6: 1. Take care Pradeep's comment. Change-Id: I6e5e37b7088362e7bad66200fc3454bb828e0eff Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk62
1 files changed, 62 insertions, 0 deletions
diff --git a/common.mk b/common.mk
new file mode 100644
index 0000000..b430901
--- /dev/null
+++ b/common.mk
@@ -0,0 +1,62 @@
1###################### QNX DCE Build Config #######################
2
3#### Include qconfig.mk
4ifndef QCONFIG
5QCONFIG=qconfig.mk
6endif
7
8include $(QCONFIG)
9
10#### Overriding qrules.mk macros before including qtargets.mk
11
12# Flags to add to the C compiler command line
13CCFLAGS+=-O2 -Dxdc_target_types__=qnx/targets/arm/std.h -DBUILDOS_QNX=1
14
15# To get final library name as "libdce". Needed as project name is not dce
16NAME=dce
17
18### Add files to be included for Build
19TITOOLSROOT ?= /usr/local
20TIVIDEOTOOLSROOT ?= $(TITOOLSROOT)
21# Different tool versions can easily be programmed by defining below variables
22# in your environment.
23CEVERSION ?= codec_engine_3_23_00_07
24FCVERSION ?= framework_components_3_23_03_17
25XDAISVERSION ?= xdais_7_23_00_06
26XDCVERSION ?= xdctools_3_25_00_48
27IPCHEADERS ?= $(INSTALL_ROOT_nto)
28
29# Generate the full package paths for tools
30CEPROD = $(TIVIDEOTOOLSROOT)/$(CEVERSION)
31FCPROD = $(TIVIDEOTOOLSROOT)/$(FCVERSION)
32XDAISPROD = $(TITOOLSROOT)/$(XDAISVERSION)
33XDCPROD = $(TITOOLSROOT)/$(XDCVERSION)
34
35EXTRA_INCVPATH += $(CEPROD)/packages
36EXTRA_INCVPATH += $(FCPROD)/packages
37EXTRA_INCVPATH += $(XDAISPROD)/packages
38EXTRA_INCVPATH += $(XDCPROD)/packages
39EXTRA_INCVPATH += $(IPCHEADERS)/usr/include/memmgr
40EXTRA_INCVPATH += $(IPCHEADERS)/usr/include/ti/syslink/
41EXTRA_INCVPATH += $(IPCHEADERS)/usr/include/ti/ipc/mm
42EXTRA_INCVPATH += $(IPCHEADERS)/usr/include/ti/shmemallocator
43EXTRA_INCVPATH += $(IPCHEADERS)/usr/include/
44
45# Include IPC libraries
46LIBS += memmgr mmrpc sharedmemallocatorS
47
48# Include qmacros.mk
49include $(MKFILES_ROOT)/qmacros.mk
50
51#### Overriding qtargets.mk macros before including qtargets.mk
52INSTALLDIR=usr/lib
53INSTALLDIR+=usr/local
54
55define PINFO
56PINFO DESCRIPTION = libdce codec
57endef
58
59#### Include qtargets.mk, it internally includes qrules.mk
60include $(MKFILES_ROOT)/qtargets.mk
61
62#### Post-set make macros after including qtargets.mk (if-any)