Commit Graph

87 Commits

Author SHA1 Message Date
xueman.ruan
1766466864 chore[script]: add rebuild and clean for build
Change-Id: I73b2d2e9ed11c5aef8c773323b2ab8c5f08b0dc3
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-01-05 16:03:27 +08:00
xueman.ruan
32148cb689 docs: update mpp developer guide markdown
modify compiling part

Change-Id: Ia24e1371cd0d31c268ad1e4f946c590ac7a8e6e1
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2023-12-11 15:26:29 +08:00
Herman Chen
318bfc1b78 fix[cmake]: Remove HAVE_DRM option
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I6ce230a7e85472acca5feafc9ad84effb222f57a
2023-11-30 09:22:44 +08:00
xueman.ruan
a4b66352f1 fix[script]: fix shift clear input parameter error
Change-Id: Ia48238e47d110fd049788b3d2abd86d5f69aa0b0
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2023-11-02 17:08:16 +08:00
Herman Chen
ea54baa35a [script]: Add opt clear
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I8a6719fad436f90942bc2ab67572873aacf0b260
2023-10-26 10:37:18 +08:00
Chen Jinsen
72de096794 [cmake]: remove unused judgment
Change-Id: Ic5b0b0c3b033815a3994fac5947f9cacb5942728
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
2023-10-09 09:44:26 +08:00
Herman Chen
44996a76ce [cmake]: Fix ndk r10d compile error
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I64fcf77e7adf13702f98d5d7735338846faff843
2023-07-25 14:59:11 +08:00
Herman Chen
78a6ca648e [cmake]: Adapt to Android 14 requirement
1. Android 14 required to use libc++ instead of libstdc++
2. Add ndk search path and options for ndk switch.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I07595fc0290daaaf6518eca18d7b318be89fc6ae
2023-06-25 10:08:43 +08:00
Jeffy Chen
0f0d28c2ec Fix compile errors with musl
Tested on RK3588 EVB with musl-1.2.2 and gcc-10.2.

Change-Id: I10574446f46964bad5e67ab45c76060a193b8335
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-05-26 11:19:59 +08:00
Herman Chen
57ff4c6b46 [cmake]: Enable HAVE_DRM by default
Change-Id: I30db9d3f283913809452d6050e45524fe615221d
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-09-13 09:39:18 +08:00
Johnson Ding
643d2116f8 [build]: support NDK-17 and above
Change-Id: I59bb0a1ad06a3e6d2a2b51610c528ade61e9c5d3
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2021-01-13 11:23:55 +08:00
Herman Chen
c21d2dee3b [cmake]: Fix TOOLCHAIN_NAME error on aarch64
Change-Id: I2a56b86a716bfe2d2220e98d78126825e26ef19b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-26 20:38:03 +08:00
Herman Chen
6e6f9733ef [script]: Update script for binary update
Change-Id: I09002e8cba2a47ef3510a8c11ac220d18160b537
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-20 19:48:36 +08:00
Jeffy Chen
0216da20b8 [cmake]: Fix missing CMAKE_C_LINK_EXECUTABLE
Change-Id: I1c9f4eadebab04d53b0c5b054261b4cfcc40ae8c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-05-20 17:55:47 +08:00
Herman Chen
54b047e396 [cmake]: Add history log
1. Remove SVN version record.
2. CMakeLists will record max 10 git version.
3. Use mpp_show_history to control the history display.
4. Use strings libmpp.so | grep author to get history log from binary.

Change-Id: I5231ced4031d868fe1329488c914730dc91a3531
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-03-04 11:05:50 +08:00
Herman Chen
95db60b3ad [cmake]: change build script for x86_64
Change-Id: I181d09afdd10eadbf78ba1e016990b606205e6eb
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-02-27 15:37:42 +08:00
Johnson Ding
e3c7e72d69 [build]: Fix cmake version comparison
Change-Id: I42a752f5fac642784688bb4f47156948d438f06f
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2019-12-24 15:24:05 +08:00
Johnson Ding
06a6014817 [build]: Update Android build script
1. Detect NDK path and version
2. Enable cmake multithread compiling if version > 3.12
3. Support specifying args to build script

Change-Id: I2179aeb5460de6b8d39a867ba3a4200c51b61be7
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2019-12-19 10:43:41 +08:00
Herman Chen
208f0004a5 [build]: Add path detection for different ndk
Support r10d and r16b first.

Change-Id: I289813c26b79ad4a1b038fc07f8375832fe78162
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-10-10 18:04:21 +08:00
syzby
451ae59386 [cmake]: Fix aarch linux cmake compile error
Change CMAKE_SYSTEM_PROCESSOR from armv8 to armv8-a

Change-Id: I4e0021a44b933813d336383b5363170ecf2b7027
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-09-05 17:17:49 +08:00
Herman Chen
0a7e306cd1 [cmake]: Add make path detection
Higher cmaker version require CMAKE_MAKE_PROGRAM parameter.

Change-Id: I4ed9f4ef1592f5683ec0f9a3679840bf6dfb0d2d
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-08-21 09:35:28 +08:00
ywj
88355a42f5 [vp8d]:fix memory leak problem
Change-Id: I4c932ed336c1d44a30e0961b7a26692ff78d7dc6
Signed-off-by: ywj <ywj@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2018-06-20 09:01:07 +08:00
sliver.chen
e11e7e7e76 [cmake]: fix cmake error about need twice make
modify cmake script to allow multiple define about ndk variables.
It is a bug caused by low version ndk.

Change-Id: I92584f050b0cfd5397b7cf85a8963dbe492baa69
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
2018-03-07 19:24:09 +08:00
sliver.chen
552e2db07f [cmake]: linux aarch should define HAVE_DRM ON by default.
Just like in the android arm/aarch directory.

Change-Id: I27fd97835c92e23e0422cfdcd381c540b9af8fd9
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
2018-02-08 09:20:09 +08:00
Herman Chen
c7cdadb5a9 [build]: Add libc.so for Android arm64 compiling
Change-Id: I2ba9eec174d87e9d02dff4731287397ab593115e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-01-17 15:47:29 +08:00
sliver.chen
73b7fc36fd [cmake]: fix cmake syntax error about macro HAVE_DRM
It is obvious,just a clerical error.

Change-Id: Iee22c422ff1786d513afd4f8b3d7fee502a9c89b
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
2018-01-15 18:19:15 +08:00
Herman Chen
5d6e5c857a [cmake]: Default enable drm on Android
Due to more platform using 4.4 kernel with drm we default enable
drm support on Android platform.

Change-Id: I4690d3d5f65a471b797d2474426836e6e357cf66
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-12-22 08:56:27 +08:00
Herman Chen
0bfe09555d [misc]: Update ndk links
Update ndk links to r16

Change-Id: I157ad34ef3877a07cb1a7a88d3c76ebe2e9e518a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-12-20 17:10:16 +08:00
Herman Chen
b186d04390 [cmake]: Change to shorter RKPLATFORM macro
Change Android and Linux branches to use RKPLATFORM macro.
RKPLATFORM is shorter and it is not a cmake variable.

Change-Id: I09a6fe72e7dacedbb4b2b8e1a66b6f7ca625f019
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-12-19 19:46:36 +08:00
Ding Wei
785b0f220d [cmake]: Partly merged Android and Linux branch
Use libmpp.so / libvpu.so on Android.
Use librockchip_mpp.so / librockchip_vpu.so

In early stage we use libmpp.so / libvpu.so on Android. later we found
it is better to use vendor name as library prefix. So we fix the name
rule on Linux platform.

But due to historical reason we can not change all sdk to use the same
name. So we choose to use this ugly method to define the name according
to different target platform.

Also we add version to library but Android has binary name issue so we
have to disable version on Android platform.

Change-Id: I785c3bc740f345e473f2d81c5cd2a4e32a1bf0bc
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-12-18 15:15:07 +08:00
Herman Chen
170581176e [script]: Update ndk link
Change-Id: I9935f31fa5cea6d08f0e13bbcda2c3f874b4674e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-12-15 10:04:53 +08:00
Randy Li
1f9ea05036 .gitignore: ignore those debian generated files
Those files are generated in Debian package building
system.

Change-Id: I4be4e583a36c43687b1b40af944722c3f3415ba5
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-08-19 14:37:42 +08:00
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