This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CP] Fix compilation issues for ClearLinux integration(CL#806263)
Fix compilation issues for ClearLinux integration 1. Auto detect libdrm 2. Auto detect systemd 3. Standard installation path 4. Explictly compile common module as static library 5. Add pkg-config file 6. Add shared library version Change-Id: Id9bb8d597cb260304f1aad7f8560ae729846cf7a
- Loading branch information
1 parent
0972f98
commit 0b1e72f
Showing
9 changed files
with
139 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: @CMAKE_PROJECT_NAME@ | ||
Description: Intel Unified HDCP SDK | ||
Version: @HDCP_VERSION@ | ||
Libs: -L${libdir} -lhdcpsdk | ||
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
|
||
systemctl disable hdcpd.service | ||
systemctl enable hdcpd.service | ||
systemctl start hdcpd.service | ||
systemctl stop hdcpd.service | ||
systemctl start hdcpd.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (c) 2018, Intel Corporation | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
# OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
include(FindPkgConfig) | ||
|
||
pkg_check_modules(SYSTEMD "systemd") | ||
|
||
if (SYSTEMD_FOUND AND "${SYSTEMD_SERVICES_INSTALL_DIR}" STREQUAL "") | ||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} | ||
--variable=systemdsystemunitdir systemd | ||
OUTPUT_VARIABLE SYSTEMD_SERVICES_INSTALL_DIR) | ||
string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SERVICES_INSTALL_DIR | ||
"${SYSTEMD_SERVICES_INSTALL_DIR}") | ||
configure_file(${CMAKE_SOURCE_DIR}/config/hdcpd.service.in | ||
${CMAKE_BINARY_DIR}/hdcpd.service | ||
@ONLY) | ||
install(FILES ${CMAKE_BINARY_DIR}/hdcpd.service DESTINATION | ||
${SYSTEMD_SERVICES_INSTALL_DIR} COMPONENT cp) | ||
|
||
elseif (NOT SYSTEMD_FOUND AND SYSTEMD_SERVICES_INSTALL_DIR) | ||
message (FATAL_ERROR "Variable SYSTEMD_SERVICES_INSTALL_DIR is\ | ||
defined, but we can't find systemd using pkg-config") | ||
endif() | ||
|
||
if (SYSTEMD_FOUND) | ||
set(WITH_SYSTEMD "ON") | ||
message(STATUS "systemd services install dir: ${SYSTEMD_SERVICES_INSTALL_DIR}") | ||
else() | ||
set(WITH_SYSTEMD "OFF") | ||
endif (SYSTEMD_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters