Support python2 based pykms binding Previously only binding with python3 was supported, this patch allows compilation of pykms with python3 or python2. When compiling with python2 some of the python scripts located in the py/test will not work since they import python3 only modules Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Add README.md to custom targets
cmake: set C_FLAGS too
py: Add OmapCard & OmapFramebuffer support Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Add OmapCard and OmapFramebuffer Add OmapCard and OmapFramebuffer classes to utilize omap_bos. Only non-tiled framebuffer is implemented for now. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Add cmake option for -Werror Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
remove -rdynamic gcc flag This reduces the exe sizes. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Improve LTO detection code Split LTO detection into separate func and file, and create a cached LTO_WORKS variable. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fix LTO detection Catch gcc-ar and gcc-ranlib versions compiled without plugin support and disable LTO in that case. Also do the LTO check only once by checking if HAS_LTO_FLAG has been set. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Fix LTO support for cross-compilation. When cross-compiling, the ar and ranlib to be used for LTO are prefixed by the cross-tuple. gcc-ar and gcc-ranlib may not exist. Cfr. http://autobuild.buildroot.net/results/f3c/f3c48da3a9706cd366c0e0a96c3cd0ff959f2a78/ Therefore, search for an appropriate lto-ar and lto-ranlib before enabling LTO. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
cmake: results to bin & lib dirs
rename libkms to kms++
cmake: add option to build shared libs
rename dirs
disable Wmissing-field-initializers when gcc <= 5.0
Require libdrm >= 2.4.64
File/dir renames
Automatically use -flto
improve build type
add -Wextra & fix warnings