cpack_generator=deb on rbpi platform

Hi

I’m trying to compile kodi for Raspberry Pi and setting the CPACK_GENERATOR=DEB to generate debian packages at the end.

However, since CORE_SYSTEM_NAME is set to rbpi, it makes use of the Install.cmake file from cmake/scripts/rbpi which in turn it’s a symlink to cmake/scripts/linux/Install.cmake.

This file has a check for CORE_SYSTEM_NAME STREQUAL linux (https://github.com/xbmc/xbmc/blob/master…cmake#L353) which will not work for the rbpi platform, because the core system name is different.

I see two options here:
– replace that line with [preferred]

Code:
if(CPACK_GENERATOR STREQUAL DEB AND ( CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL rbpi) )

– copy the file and change the line to:

Code:
if(CPACK_GENERATOR STREQUAL DEB AND CORE_SYSTEM_NAME STREQUAL rbpi )

Any thoughts on this?

Thanks in advance.
Nuno