[Buildroot] [PATCH v2 2/2] add qmake.conf eglfs_mali option

Giulio Benetti giulio.benetti at micronovasrl.com
Wed Nov 8 22:45:44 UTC 2017


Hi Arnout,

Il 08/11/2017 23:39, Arnout Vandecappelle ha scritto:
> 
> 
> On 08-11-17 19:21, Giulio Benetti wrote:
>> Package qt5base didn't treat eglfs_mali.
>> Add support for eglfs_mali according to package selection
>>
>> Changes v1->v2:
>> * Add eglfs_mali support
>>
>> Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
>> ---
>>   package/qt5/qt5base/qt5base.mk | 13 +++++++++++--
>>   1 file changed, 11 insertions(+), 2 deletions(-)
>>
>> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
>> index d58a58a..23f5138 100644
>> --- a/package/qt5/qt5base/qt5base.mk
>> +++ b/package/qt5/qt5base/qt5base.mk
>> @@ -240,18 +240,27 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport
>>   
>>   QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus
>>   
>> -ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_IMX_GPU_VIV),yy)
>> -# use vivante backend
>> +ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
>> +ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
>> +# use eglfs vivante backend
>>   define QT5BASE_CONFIGURE_QMAKE_CONFIG
>>   	sed 's/@EGLFS_DEVICE@/eglfs_viv/g' $(QT5BASE_PKGDIR)/qmake.conf.in > \
>>   		$(QT5BASE_PKGDIR)/qmake.conf
>>   endef
>> +else ifeq ($(filter y,$(BR2_PACKAGE_SUNXI_MALI) $(BR2_PACKAGE_SUNXI_MALI_MAINLINE)),y)
> 
>   Since the sunxi-mali-mainline package has not been accepted yet, this is not
> correct (yet). To solve that, the easiest way is to include all three in a
> single series.

You're right,
so I will add BR2_PACKAGE_SUNXI_MALI_MAINLINE later.

> 
>> +# use eglfs mali backend
>> +define QT5BASE_CONFIGURE_QMAKE_CONFIG
>> +	sed 's/@EGLFS_DEVICE@/eglfs_mali/g' $(QT5BASE_PKGDIR)/qmake.conf.in > \
>> +		$(QT5BASE_PKGDIR)/qmake.conf
>> +endef
> 
>   This is getting complicated, especially since there will probably be more
> backends that need this... How about:
> 
> ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
> ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
> QT5BASE_EGLFS_DEVICE = eglfs_viv
> else ifeq ($(BR2_PACKAGE_SUNXI_MALI),y)
> QT5BASE_EGLFS_DEVICE = eglfs_mali
> endif
> endif
> 
> ifeq ($(QT5BASE_EGLFS_DEVICE),)
> 	sed '/@EGLFS_DEVICE@/,+1d' $(QT5BASE_PKGDIR)/qmake.conf.in > \
> 		$(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf
> else
>   	sed 's/@EGLFS_DEVICE@/$(QT5BASE_EGLFS_DEVICE)/g'
> $(QT5BASE_PKGDIR)/qmake.conf.in > \
> 		$(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf
> endif
> 

Good idea, I will modify that way and submit [PATCH v3]

> 
>   Regards,
>   Arnout
> 
>>   else
>> +# don't use any eglfs backend
>>   define QT5BASE_CONFIGURE_QMAKE_CONFIG
>>   	sed '/@EGLFS_DEVICE@/,+1d' $(QT5BASE_PKGDIR)/qmake.conf.in > \
>>   		$(QT5BASE_PKGDIR)/qmake.conf
>>   endef
>>   endif
>> +endif
>>   
>>   ifneq ($(QT5BASE_CONFIG_FILE),)
>>   define QT5BASE_CONFIGURE_CONFIG_FILE
>>
> 

Best regards!

-- 
Giulio Benetti
R&D Manager &
Advanced Research

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642



More information about the buildroot mailing list