Skip to content

Commit dcfe90f

Browse files
committed
[CES-3162] Remove lingering references to EGLFS
- Remove unused dependecies from debian control file - Update the qt config file "ultimaker-linux-imx8-g++" to properly compile without EGLFS. - Remove unused packages from sysroot
1 parent 89490e7 commit dcfe90f

File tree

6 files changed

+34
-51
lines changed

6 files changed

+34
-51
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Makefile
22
.qmake.cache
33
.qmake.super
44
*.pro.user*
5-
tools/sysroot
65
_build*
76
.idea
8-
tools/ccache
7+
*.deb

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -eu
55

66
ARCH="${ARCH:-arm64}" # armhf or x86_64 or amr64
7-
UM_ARCH="${UM_ARCH:-imx8m}" # Empty string, or sun7i for R1, or imx6dl for R2, or imx8m for colorado
7+
UM_ARCH="${UM_ARCH:-imx8}" # Empty string, or sun7i for R1, or imx6dl for R2, or imx8m for colorado
88

99
SRC_DIR="$(pwd)"
1010
BUILD_DIR_TEMPLATE="_build"
@@ -84,7 +84,7 @@ build()
8484
-ccache \
8585
-v \
8686
-platform linux-g++-64 \
87-
-device ultimaker-linux-imx8m-eglfs-g++ \
87+
-device ultimaker-linux-imx8-g++ \
8888
-device-option CROSS_COMPILE="${CROSS_COMPILE}" \
8989
-sysroot "${SYSROOT}" \
9090
-extprefix "${TARGET_DIR}/qt" \

build_for_ultimaker.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ usage()
7373
echo " for testing a new Dockerfile release"
7474
echo " -l Skip running the shellcheck linter"
7575
echo " -h Print usage"
76-
echo " -t Skip tests"
7776
echo
7877
echo "Other options will be passed on to build.sh"
7978
echo "Run './build.sh -h' for more information."

debian/control.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Section: graphics
66
Priority: optional
77
Homepage: https://www.qt.io/
88
Description: Qt is a free and open-source widget toolkit for creating graphical user interfaces.
9-
Depends: python3-sip,libxcb-dri3-0,libwayland-server0,libxcb-dri2-0,libxext6,libx11-xcb1,libxcb-xfixes0,libxcb-present0,libxcb-sync1,libxshmfence1,libwayland-client0,libfontconfig1
9+
Depends: libgles2,python3-sip,libxext6,libfontconfig1

patches/qtbase/0003-Add-imx8-makespecs-software-rendering-and-eglfs.patch

Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -20,54 +20,34 @@ new file mode 100644
2020
index 00000000..8c22f71c
2121
--- /dev/null
2222
+++ b/mkspecs/devices/ultimaker-linux-imx8-g++/qmake.conf
23-
@@ -0,0 +1,49 @@
23+
@@ -0,0 +1,29 @@
2424
+#
25-
+# qmake configuration for linux-g++ (Ultimaker Olimex specific)
25+
+# qmake configuration for the Freescale iMX8 boards (single, dual and quad)
26+
+#
27+
+# Below is an example configure line that assumes the SDK is in
28+
+# $HOME/imx6/toolchain. On device Qt is expected to be placed under
29+
+# /usr/local/qt5 whereas on the host 'make install' will copy the host tools and
30+
+# the target libraries to $HOME/imx6/qt5.
31+
+#
32+
+# ./configure -prefix /usr/local/qt5 -extprefix $HOME/imx6/qt5 -device linux-imx6-g++ \
33+
+# -device-option CROSS_COMPILE=$HOME/imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- \
34+
+# -sysroot $HOME/imx6/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi \
35+
+# -nomake examples -nomake tests -v
2636
+#
2737
+
2838
+include(../common/linux_device_pre.conf)
2939
+
30-
+MAKEFILE_GENERATOR = UNIX
31-
+CONFIG += incremental optimize_full
32-
+QMAKE_INCREMENTAL_STYLE = sublib
33-
+
34-
+include(../../common/linux.conf)
35-
+include(../../common/gcc-base-unix.conf)
36-
+include(../../common/g++-unix.conf)
37-
+
38-
+!load(device_config) {
39-
+ error(Could not successfully load device configuration)
40-
+}
41-
+
42-
+# modifications to g++-unix.conf
43-
+QMAKE_CC = $${CROSS_COMPILE}gcc
44-
+QMAKE_CXX = $${CROSS_COMPILE}g++
45-
+QMAKE_LINK = $${QMAKE_CXX}
46-
+QMAKE_LINK_SHLIB = $${QMAKE_CXX}
47-
+
48-
+# modifications to linux.conf
49-
+QMAKE_AR = $${CROSS_COMPILE}ar cqs
50-
+QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy
51-
+QMAKE_NM = $${CROSS_COMPILE}nm -P
52-
+QMAKE_STRIP = $${CROSS_COMPILE}strip
53-
+
54-
+# modifications to gcc-base.conf
55-
+QMAKE_AR_LTCG = $${CROSS_COMPILE}gcc-ar cqs
56-
+QMAKE_NM_LTCG = $${CROSS_COMPILE}gcc-nm -P
57-
+
58-
+contains(DISTRO_OPTS, deb-multi-arch): \
59-
+QMAKE_PKG_CONFIG = $${CROSS_COMPILE}pkg-config
60-
+
61-
+QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
62-
+
63-
+#include(../common/linux_arm_device_post.conf)
64-
+contains(DISTRO_OPTS, hard-float) {
65-
+ COMPILER_FLAGS += -mfloat-abi=hard
66-
+ LINKER_FLAGS += -mfloat-abi=hard
67-
+} else: !contains(DISTRO_OPTS, aarch64) {
68-
+ COMPILER_FLAGS += -mfloat-abi=softfp
69-
+ LINKER_FLAGS += -mfloat-abi=softfp
70-
+}
40+
+QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
41+
+QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
42+
+
43+
+IMX8_CFLAGS = -march=armv8-a -DLINUX=1 -DEGL_API_FB=1
44+
+QMAKE_CFLAGS += $$IMX8_CFLAGS
45+
+QMAKE_CXXFLAGS += $$IMX8_CFLAGS
46+
+
47+
+DISTRO_OPTS += aarch64
48+
+
49+
+
50+
+include(../common/linux_arm_device_post.conf)
7151
+
7252
+load(qt_config)
7353
\ No newline at end of file

tools/sysroot_multistrap.cfg

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ explicitsuite=true
66
aptsources=Debian
77
bootstrap=Debian DebianStable
88

9+
# When 'true', multistrap will *not* download packages that are 'Priority: required', otherwise it will override
10+
# those specific package versions from your recipe file.
11+
# Set this value to 'false' if you intend to use wildcard values in your recipe.
12+
omitrequired=true
13+
914
[DebianStable]
1015
packages=libgles-dev
11-
packages=perl pkg-config libudev-dev debconf zlib1g-dev libxkbcommon-dev libpng-dev
16+
packages=perl pkg-config debconf libxkbcommon-dev
1217
packages=python3-dev python3-sip-dev libssl-dev
1318
source=http://ftp.debian.org/debian
1419
suite=bookworm
1520
components=main non-free
16-
21+
omitdebsrc=true
1722

0 commit comments

Comments
 (0)