qtserialbus: socketcan need openembedded layer

Don't enable socketcan PACKAGECONFIG unless openembedded layer
is available.

Pick-to: 6.5 6.2
Change-Id: I54aa0d70014448bf5425ef7a49f9a32e27ba7807
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2023-03-24 13:20:26 +00:00
parent 99256fd797
commit a4bf9c64e5

View File

@ -16,7 +16,9 @@ include recipes-qt/qt6/qt6.inc
DEPENDS += "qtbase"
PACKAGECONFIG ?= "modbus-serialport socketcan"
PACKAGECONFIG ?= "modbus-serialport \
${@bb.utils.contains('BBFILE_COLLECTIONS', 'openembedded-layer', 'socketcan', '', d)} \
"
PACKAGECONFIG:class-native = ""
PACKAGECONFIG:class-nativesdk = ""