diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-06-16 11:49:56 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 12:07:26 +0100 |
| commit | efb0410d388cb389a18e299b87fdb3554d527b39 (patch) | |
| tree | 0ba990254e449a421ab7ec56c3409c69e9100d24 /meta/recipes-graphics | |
| parent | e1f059f34e7f1e6a252aff1ec5b1eb3376bd4d65 (diff) | |
| download | poky-efb0410d388cb389a18e299b87fdb3554d527b39.tar.gz | |
meta: set S from UNPACKDIR in recipes that use only local files
There is no need to have two assignments; also setting S from
UNPACKDIR (and not vice versa) is more logical as unpack
task comes first, and tasks that come after unpack use S to access
unpack results.
Also adjust reference test data in selftest/recipeutils to reflect changes in test recipes.
(From OE-Core rev: f64b7e5fb3181734c8dde87b27e872a026261a74)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
8 files changed, 8 insertions, 16 deletions
diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb index 39abaf31ce..b8a7798364 100644 --- a/meta/recipes-graphics/builder/builder_0.1.bb +++ b/meta/recipes-graphics/builder/builder_0.1.bb | |||
| @@ -7,8 +7,7 @@ LIC_FILES_CHKSUM = "file://builder_session.sh;endline=5;md5=84796c3c41785d86100f | |||
| 7 | SRC_URI = "file://builder_session.sh \ | 7 | SRC_URI = "file://builder_session.sh \ |
| 8 | " | 8 | " |
| 9 | 9 | ||
| 10 | S = "${WORKDIR}/sources" | 10 | S = "${UNPACKDIR}" |
| 11 | UNPACKDIR = "${S}" | ||
| 12 | 11 | ||
| 13 | RDEPENDS:${PN} = "mini-x-session" | 12 | RDEPENDS:${PN} = "mini-x-session" |
| 14 | 13 | ||
diff --git a/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb b/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb index 8a4cfef631..3f446445e7 100644 --- a/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb +++ b/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb | |||
| @@ -11,8 +11,7 @@ RCONFLICTS:${PN} = "matchbox-common" | |||
| 11 | 11 | ||
| 12 | SRC_URI = "file://matchbox-session" | 12 | SRC_URI = "file://matchbox-session" |
| 13 | 13 | ||
| 14 | S = "${WORKDIR}/sources" | 14 | S = "${UNPACKDIR}" |
| 15 | UNPACKDIR = "${S}" | ||
| 16 | 15 | ||
| 17 | 16 | ||
| 18 | inherit update-alternatives | 17 | inherit update-alternatives |
diff --git a/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb index 48d50c8f66..a6626b5d18 100644 --- a/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb +++ b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb | |||
| @@ -12,8 +12,7 @@ RCONFLICTS:${PN} = "matchbox-common" | |||
| 12 | 12 | ||
| 13 | SRC_URI = "file://mini-x-session" | 13 | SRC_URI = "file://mini-x-session" |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/sources" | 15 | S = "${UNPACKDIR}" |
| 16 | UNPACKDIR = "${S}" | ||
| 17 | 16 | ||
| 18 | RDEPENDS:${PN} = "sudo" | 17 | RDEPENDS:${PN} = "sudo" |
| 19 | 18 | ||
diff --git a/meta/recipes-graphics/pong-clock/pong-clock_1.0.bb b/meta/recipes-graphics/pong-clock/pong-clock_1.0.bb index ee5173dc83..a30cdd1dcb 100644 --- a/meta/recipes-graphics/pong-clock/pong-clock_1.0.bb +++ b/meta/recipes-graphics/pong-clock/pong-clock_1.0.bb | |||
| @@ -10,8 +10,7 @@ SRC_URI = "file://pong-clock-no-flicker.c" | |||
| 10 | 10 | ||
| 11 | LIC_FILES_CHKSUM = "file://pong-clock-no-flicker.c;beginline=1;endline=23;md5=dd248d50f73f746d1ee78586b0b2ebd3" | 11 | LIC_FILES_CHKSUM = "file://pong-clock-no-flicker.c;beginline=1;endline=23;md5=dd248d50f73f746d1ee78586b0b2ebd3" |
| 12 | 12 | ||
| 13 | S = "${WORKDIR}/sources" | 13 | S = "${UNPACKDIR}" |
| 14 | UNPACKDIR = "${S}" | ||
| 15 | 14 | ||
| 16 | do_compile () { | 15 | do_compile () { |
| 17 | ${CC} ${CFLAGS} ${LDFLAGS} -o pong-clock pong-clock-no-flicker.c `pkg-config --cflags --libs x11 xau xdmcp` | 16 | ${CC} ${CFLAGS} ${LDFLAGS} -o pong-clock pong-clock-no-flicker.c `pkg-config --cflags --libs x11 xau xdmcp` |
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 5723655a9b..fc817d113f 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
| @@ -13,8 +13,7 @@ SRC_URI = "file://init \ | |||
| 13 | file://weston-autologin \ | 13 | file://weston-autologin \ |
| 14 | file://weston-start" | 14 | file://weston-start" |
| 15 | 15 | ||
| 16 | S = "${WORKDIR}/sources" | 16 | S = "${UNPACKDIR}" |
| 17 | UNPACKDIR = "${S}" | ||
| 18 | 17 | ||
| 19 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}" | 18 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}" |
| 20 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" | 19 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" |
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb index cd4acf8155..169269eefb 100644 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb | |||
| @@ -12,8 +12,7 @@ SRC_URI = "file://xserver-nodm \ | |||
| 12 | file://capability.conf \ | 12 | file://capability.conf \ |
| 13 | " | 13 | " |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/sources" | 15 | S = "${UNPACKDIR}" |
| 16 | UNPACKDIR = "${S}" | ||
| 17 | 16 | ||
| 18 | # Since we refer to ROOTLESS_X which is normally enabled per-machine | 17 | # Since we refer to ROOTLESS_X which is normally enabled per-machine |
| 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 18 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb b/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb index f4516e6975..39bb5803f1 100644 --- a/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb +++ b/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb | |||
| @@ -8,8 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 | |||
| 8 | 8 | ||
| 9 | SRC_URI = "file://pointercal.xinput" | 9 | SRC_URI = "file://pointercal.xinput" |
| 10 | 10 | ||
| 11 | S = "${WORKDIR}/sources" | 11 | S = "${UNPACKDIR}" |
| 12 | UNPACKDIR = "${S}" | ||
| 13 | 12 | ||
| 14 | do_install() { | 13 | do_install() { |
| 15 | # Only install file if it has a contents | 14 | # Only install file if it has a contents |
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb index d57b3427f8..8f3b9217a0 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb | |||
| @@ -7,8 +7,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 | |||
| 7 | SRC_URI = "file://xorg.conf" | 7 | SRC_URI = "file://xorg.conf" |
| 8 | SRC_URI:append:qemuall = " file://noblank.conf" | 8 | SRC_URI:append:qemuall = " file://noblank.conf" |
| 9 | 9 | ||
| 10 | S = "${WORKDIR}/sources" | 10 | S = "${UNPACKDIR}" |
| 11 | UNPACKDIR = "${S}" | ||
| 12 | 11 | ||
| 13 | CONFFILES:${PN} = "${sysconfdir}/X11/xorg.conf" | 12 | CONFFILES:${PN} = "${sysconfdir}/X11/xorg.conf" |
| 14 | 13 | ||
