Commit Graph

55 Commits

Author SHA1 Message Date
Randy Li
5fa4ff0d48 [osal]: match system implementation with compiler marco
It would make the build system more simple, and the cross
toolchains would do the rest to you.

Toolchains like buildroot default not enable the __gnu_linux__
marco in the pre-processor will surfure from the systsm unknown
problem. You should enable the marco in building toolchains
or have a look on those scripts in build directory.

Change-Id: I8f6af3391aa3d94d602ec8d84ba5e43839859169
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-05-04 14:29:29 +08:00
Herman Chen
76e5398633 [build]: Add build script for arm64
Change-Id: I4ed1b62ce5baeb21fd8e9fb0d804d48f8d065698
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-04-06 09:37:31 +08:00
Herman Chen
d3ccbde5b1 [cmake]: add toolchain detection for rk1108
Also add codec options

Change-Id: I14b159f6deedb3e325f9500d0c3060fac321e31a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-13 15:10:31 +08:00
Herman Chen
30c6bd08c1 [cmake]: add codec option
Use mpp/codecs.cmake to enable/disable codecs in order to reduce library
size.
All decoder and encoder can be disbaled now. Default all open.

Change-Id: I3307460df12f2f3fc82898d823ab2da12002d6c6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-10 15:46:12 +08:00
Herman Chen
243568bd92 [cmake]: set linux/arm cmake script to Release
Change-Id: Id99284a22713276c42b6eedaca3b4cd8695686e2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-09 14:30:29 +08:00
Herman Chen
673bc0eef4 [osal]: fix allocator error on x86_64
x86_64 is for simulation debug. It is just for working flow test.

Change-Id: I2d1cb50e52a104e58f6eaf3b27fd9dcf41b9ada6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-06 16:22:58 +08:00
Herman Chen
72a6e3b06a [cmake]: add git and svn version script
Change-Id: Ia1f908986f503191c3e5a6bbe9dc5daa55648b40
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-08-22 10:45:29 +08:00
Herman Chen
9da1bfaa04 [cmake]: fix compile error on 64bit os
Change-Id: I5b6e961d4786e79748e1a1a290a04424bd3ad230
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-08-19 17:40:53 +08:00
ChenHengming
33f1b5491b [cmake]: add hardfp config to arm linux build script
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1205 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-17 10:14:49 +00:00
GaoZhili
10805b1b6b [bulid-linux-script]: modify
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1152 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-04 02:19:11 +00:00
ChenHengming
06807e8a33 [cmake]: fix script for arm-linux
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1148 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-03 06:43:01 +00:00
ChenHengming
e7e1abaca0 [cmake]: fix script for arm-linux
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1147 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-03 06:42:11 +00:00
ChenHengming
76af3c56e6 [linux]: add executable property to script
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1130 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-30 08:47:32 +00:00
ZhaoJun
d341178dbf [sofia-3gr-linux]: add missing makefile for linux-arm and linux-x86_64
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1117 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-28 06:32:27 +00:00
ZhaoJun
41f3fb8cc8 [sofia-3gr-linux]: add sofia-3gr makefile
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1114 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-28 03:43:15 +00:00
ZhaoJun
120b82550e [sofia-3gr-linux]: some modifications for intel-iotg
1. add input block flags OMX_BUFFERFLAG_SYNC
2. change max index number to 32
3. mv sofia-3gr makefile to build/linux/x86 directory

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1113 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-28 03:13:16 +00:00
ZhaoJun
abc739862e [sofia-3gr-linux]: add sofia-3gr-linux platform compile script
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1097 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-25 08:33:42 +00:00
ChenHengming
82e7dbe57a [android]: separate different arch script to different directory
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1093 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-25 06:51:09 +00:00
GaoZhili
897831f1f1 [build/linux]: add the compile script for arm-linux
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1080 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-22 12:11:59 +00:00
ChenHengming
58cf49779a [mpp_buf_slot]: set default buffer size rate to width * height * 9 / 5
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1042 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-19 03:44:11 +00:00
ChenHengming
7965f5dfd9 [android]: fix android binary runtime error due to error bionic libc linking
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@992 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-08 07:33:03 +00:00
ChenHengming
e9d3ac9861 [cmake]: add x86 android script for 3gr
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@933 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-17 00:59:29 +00:00
ChenHengming
b1066150e9 [android]: use static library in android rather than share library
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@898 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-08 08:17:08 +00:00
ChenHengming
0792547b10 [android]: revert crtbegin_dynamic and crtend_android object on Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@897 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-08 07:50:43 +00:00
ChenSiyong
8446a6f086 [linux] add ion.h for linux
[cmake] add RKPLATFORM set  

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@842 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-05-27 09:55:22 +00:00
ChenHengming
7e6fb578d2 remove extra link object which will cause first script run error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@820 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-05-25 07:21:21 +00:00
ChenHengming
a0723a356e [Android]: Add 64bit script
NOTE: there will be ndk error:

../libosal.a(os_env.c.o): In function `os_get_env_u32':
os_env.c:(.text.os_get_env_u32+0x20): undefined reference to `__system_property_get'
../libosal.a(os_env.c.o): In function `os_get_env_str':
os_env.c:(.text.os_get_env_str+0x34): undefined reference to `__system_property_get'
../libosal.a(os_env.c.o): In function `os_set_env_u32':
os_env.c:(.text.os_set_env_u32+0x34): undefined reference to `__system_property_set'
../libosal.a(os_env.c.o): In function `os_set_env_str':
os_env.c:(.text.os_set_env_str+0x8): undefined reference to `__system_property_set'

Solution here: http://www.bubuko.com/infodetail-1014879.html


git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@613 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-04-22 02:56:03 +00:00
ChenHengming
2600979beb [Android]: fix 32bit script error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@612 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-04-22 02:50:20 +00:00
ChenHengming
a0ba2b11ce [android]: add script to update library
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@545 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-01-24 01:33:19 +00:00
ChenHengming
9f274ee171 [cmake]: use release build for Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@538 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-01-20 08:33:55 +00:00
ChenHengming
41fcb47315 [android]: use libvpu.so to replace libmpp_legacy.so in Android.mk
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@523 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-01-07 06:55:02 +00:00
ChenHengming
1de081d88f [cmake]: add -ldl flag for dlopen on Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@441 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-11-02 14:56:41 +00:00
ChenSiyong
138350d30e [h265d]: dpb size change to MAX_DPB_SIZE
[vpu_legacy]: add vpu_mem alloc and rk_list.cpp to compatibility old version vpu
[vpu_legacy]: used dlopen to compatibility using old librk_vpuapi


git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@419 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-10-21 22:36:08 +00:00
ChenHengming
c651fae624 [android]: add both libmpp and libmpp_legacy to Android.mk
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@410 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-10-21 14:07:33 +00:00
ChenHengming
4ffa74d72b [android]: add Android.mk for libmpp_legacy.so
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@357 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-10-12 20:27:13 +00:00
ChenSiyong
bbc3b15c7b [android]:fix can't compile so
[h265d]:fix android compile error & fix fifo buf alloc may no enought


git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@312 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-09-27 21:16:40 +00:00
ChenHengming
847046a6a3 [cmake]: add ANDROID_NDK path detection using host IP address
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@311 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-09-27 21:07:04 +00:00
ChenHengming
e43cc93487 [build/window]: fix build script on vc10 and vc12
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@67 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 10:45:33 +00:00
ChenHengming
66e3a56c0f [build]: add build script for vc10-x86_64
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@66 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 10:34:08 +00:00
ChenHengming
8e0e2c3f75 [cmake/android]: fix mpp_info C++ STL compile error on Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@61 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 09:20:40 +00:00
ChenHengming
25830cd201 [cmake]: add date to svn_info.in
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@55 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 06:54:40 +00:00
ChenHengming
ba806a522a [cmake]: cmake script update
1. add svn author and date to cmake
2. change unit test install directory
2. use macro to add osal unit test


git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@49 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 06:13:46 +00:00
ChenHengming
b830db1c0a [cmake]: output svn_info to mpp directory
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@47 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-06 10:49:44 +00:00
ChenHengming
ef042eb9df [cmake/android]: add ndk download link
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@34 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 07:57:35 +00:00
ChenHengming
e3c0fc8412 [os_env/android]: add android os_env implementation
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@33 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 07:55:35 +00:00
ChenHengming
cd7f86c83a [cmake/android]: add build script on Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@25 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 07:26:24 +00:00
ChenHengming
747f44a2c6 [cmake/android]: remove unused print
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@23 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 07:20:52 +00:00
ChenHengming
e85b6426df [cmake/android]: add crtbegin/crtend/libgcc to sdk build script
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@20 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 06:55:02 +00:00
ChenHengming
f1437f11df [cmake/android]: move toolchain scrip to build/android directory
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@19 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 03:42:34 +00:00
ChenHengming
14a93174a5 [cmake/android]: add extra flag for android sdk build
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@18 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 03:34:45 +00:00