All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: buildroot@buildroot.org,
	Andrea Ricchi <andrea.ricchi@amarulasolutions.com>,
	Roy Kollen Svendsen <roykollensvendsen@gmail.com>,
	Angelo Compagnucci <angelo.compagnucci@gmail.com>,
	Jesse Van Gavere <jesseevg@gmail.com>,
	linux-amarula@amarulasolutions.com,
	Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>,
	Angelo Compagnucci <angelo@amarulasolutions.com>
Subject: Re: [Buildroot] [RFC v3 1/5] package/qt6: Add qmake functionality
Date: Fri, 15 Aug 2025 17:28:51 +0200	[thread overview]
Message-ID: <20250815172851.77009124@windsurf> (raw)
In-Reply-To: <20250814153259.6822-2-dario.binacchi@amarulasolutions.com>

Hello Dario,

Thanks for bringing this further. This really seems like a copy/paste
of the Qt5 logic, with even some parts that are dead code (see below).
How much have you validated that everything added by this patch is
actually *needed*, as opposed to just blindly copy/pasted from the Qt5
logic?

Also, in the commit log:

> flags/cross-compiler the biggest difference is that where previously
> qt.conf was used to fixup per-paths builds, this is now always
> created with changed contents so qmake looks at the correct target
> directories.

I'm a bit confused by what this means. Is this about
QT6_INSTALL_QT_CONF being called not only by QT6_QT_CONF_FIXUP in the
BR2_PER_PACKAGE_DIRECTORIES=y case but also being called by:

QT6BASE_POST_INSTALL_STAGING_HOOKS += QT6_INSTALL_QT_CONF

 ?

If so, why does this has to be different?

On Thu, 14 Aug 2025 17:32:55 +0200
Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote:


> diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk
> index 51a4f1b5be7f..697d1a96a920 100644
> --- a/package/qt6/qt6base/qt6base.mk
> +++ b/package/qt6/qt6base/qt6base.mk
> @@ -55,6 +55,9 @@ QT6BASE_CONF_OPTS = \
>  	-DFEATURE_system_zlib=ON \
>  	-DFEATURE_system_libb2=ON
>  
> +QT6BASE_CFLAGS = $(TARGET_CFLAGS)
> +QT6BASE_CXXFLAGS = $(TARGET_CXXFLAGS)

These variables are not "changed" anywhere, so you could directly use
TARGET_CFLAGS/TARGET_CXXFLAGS. Unless the goal is to keep the logic as
similar as qt5 as possible.

> +
>  # x86 optimization options. While we have a BR2_X86_CPU_HAS_AVX512, it
>  # is not clear yet how it maps to all the avx512* options of Qt, so we
>  # for now keeps them disabled.
> @@ -431,5 +434,20 @@ define QT6BASE_RM_USR_MKSPECS
>  endef
>  QT6BASE_TARGET_FINALIZE_HOOKS += QT6BASE_RM_USR_MKSPECS
>  
> +define QT6BASE_MAKE_BR_SPEC
> +	mkdir -p $(@D)/mkspecs/devices/linux-buildroot-g++/
> +	sed 's/@EGLFS_DEVICE@/$(QT6BASE_EGLFS_DEVICE)/g' \
> +		$(QT6BASE_PKGDIR)/qmake.conf.in > \
> +		$(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf

$(QT6BASE_EGLFS_DEVICE) doesn't seem to be defined anywhere, so I have
some doubts that this is doing something useful.

This also means the @EGLFS_DEVICE@ in qmake.conf.in is not relevant.

> +	$(INSTALL) -m 0644 -D $(QT6BASE_PKGDIR)/qplatformdefs.h \
> +		$(@D)/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
> +endef
> +
> +QT6BASE_CONF_OPTS += -DQT_QMAKE_DEVICE_OPTIONS=CROSS_COMPILE="$(TARGET_CROSS)";BR_COMPILER_CFLAGS="$(QT6BASE_CFLAGS)";BR_COMPILER_CXXFLAGS="$(QT6BASE_CXX_FLAGS)"

What is this doing? Does it actually work? I'm asking because that
doesn't seem to exist in the Qt5 case.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2025-08-15 15:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14 15:32 [Buildroot] [RFC v3 0/5] Support qmake for Qt6 Dario Binacchi
2025-08-14 15:32 ` [Buildroot] [RFC v3 1/5] package/qt6: Add qmake functionality Dario Binacchi
2025-08-15 15:28   ` Thomas Petazzoni via buildroot [this message]
2025-09-01 20:32     ` Dario Binacchi
2025-09-01 12:43   ` Richard GENOUD via buildroot
2025-08-14 15:32 ` [Buildroot] [RFC v3 2/5] package/qwt: bump to version 6.3.0 Dario Binacchi
2025-08-14 15:32 ` [Buildroot] [RFC v3 3/5] package/pkg-qmake: support Qt6 Dario Binacchi
2025-08-14 15:32 ` [Buildroot] [RFC v3 4/5] package/qwt: enable build with Qt6 Dario Binacchi
2025-08-14 15:32 ` [Buildroot] [RFC v3 5/5] package/cutekeyboard: " Dario Binacchi
2025-09-01  8:03 ` [Buildroot] [RFC v3 0/5] Support qmake for Qt6 Richard GENOUD via buildroot
2025-09-01 12:25   ` Richard GENOUD via buildroot
2025-09-01 13:18     ` Dario Binacchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250815172851.77009124@windsurf \
    --to=buildroot@buildroot.org \
    --cc=andrea.ricchi@amarulasolutions.com \
    --cc=angelo.compagnucci@gmail.com \
    --cc=angelo@amarulasolutions.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=giuseppe.dangelo@kdab.com \
    --cc=jesseevg@gmail.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=roykollensvendsen@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.