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>
This commit is contained in:
Alexander Kanavin 2025-06-16 11:49:56 +02:00 committed by Richard Purdie
parent e1f059f34e
commit efb0410d38
86 changed files with 87 additions and 172 deletions

View File

@ -19,7 +19,6 @@ SRC_URI = "\
file://run-ptest \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit ptest

View File

@ -6,8 +6,7 @@ SRC_URI = "file://file1 \
SRC_URI:append:class-native = " file://file3"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"
BBCLASSEXTEND = "native"

View File

@ -3,7 +3,6 @@ INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://file1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"

View File

@ -6,8 +6,7 @@ DEPENDS = "libgfortran"
SRC_URI = "file://hello.f95"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# These set flags that Fortran doesn't support
SECURITY_CFLAGS = ""

View File

@ -6,8 +6,7 @@ LICENSE = "HPND"
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/somefile;md5=d41d8cd98f00b204e9800998ecf8427e"
DEPENDS += "zlib"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
BBCLASSEXTEND = "native nativesdk"

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
DEPENDS += "coreutils-native"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit useradd allarch

View File

@ -6,8 +6,7 @@ SRC_URI = "file://hello.c \
file://gdb.sh \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile () {
${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS}

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld

View File

@ -3,8 +3,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
LICENSE = "MIT"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"

View File

@ -7,8 +7,7 @@ LICENSE = "MIT"
USERADD_DEPENDS = "acreategroup ccreategroup"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
USERADD_DEPENDS = "acreategroup"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"

View File

@ -3,8 +3,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
LICENSE = "MIT"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit useradd allarch

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
USERADD_DEPENDS = "creategroup1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit useradd allarch

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
USERADD_DEPENDS = "bcreategroup"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
EXCLUDE_FROM_WORLD = "1"

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
DEPENDS:append = "coreutils-native"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit useradd allarch

View File

@ -6,8 +6,7 @@ LICENSE = "MIT"
SRC_URI = "file://testfile.txt"
INHIBIT_DEFAULT_DEPS = "1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile(){
echo "testdata" > ${B}/"file with [brackets].txt"

View File

@ -10,8 +10,7 @@ SRC_URI = "file://Makefile \
file://COPYING \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile() {
${CC} ${LDFLAGS} helloworld.c -o helloworld

View File

@ -9,8 +9,7 @@ SRC_URI = "file://skeleton \
file://COPYRIGHT \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile () {
${CC} ${CFLAGS} ${LDFLAGS} ${S}/skeleton_test.c -o ${B}/skeleton-test

View File

@ -9,8 +9,7 @@ SRC_URI = "file://file1 \
file://file3 \
file://file4"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
PACKAGES =+ "${PN}-user3"

View File

@ -40,8 +40,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
SYSROOT_DIRS += "/boot/devicetree"
FILES:${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
B = "${WORKDIR}/build"
# Default kernel includes, these represent what are normally used for in-kernel

View File

@ -2,8 +2,7 @@
inherit kernel-arch kernel-artifact-names uboot-config deploy
require conf/image-fitimage.conf
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -72,7 +72,7 @@ class RecipeUtilsTests(OESelftestTestCase):
expected_patch = """
--- a/recipes-test/recipeutils/recipeutils-test_1.2.bb
+++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb
@@ -11,6 +11,4 @@
@@ -10,6 +10,4 @@
BBCLASSEXTEND = "native nativesdk"
@ -97,7 +97,7 @@ class RecipeUtilsTests(OESelftestTestCase):
expected_patch = """
--- a/recipes-test/recipeutils/recipeutils-test_1.2.bb
+++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb
@@ -11,6 +11,3 @@
@@ -10,6 +10,3 @@
BBCLASSEXTEND = "native nativesdk"

View File

@ -21,8 +21,7 @@ SRC_URI = "\
file://alsa-state-init \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# As the recipe doesn't inherit systemd.bbclass, we need to set this variable
# manually to avoid unnecessary postinst/preinst generated.

View File

@ -8,8 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://config file://machconfig"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
INHIBIT_DEFAULT_DEPS = "1"

View File

@ -11,8 +11,7 @@ inherit grub-efi-cfg
require conf/image-uefi.conf
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
GRUB_CFG = "${S}/grub-bootconf"
LABELS = "boot"

View File

@ -24,8 +24,7 @@ SRC_URI = "file://keymap.sh"
INITSCRIPT_NAME = "keymap.sh"
INITSCRIPT_PARAMS = "start 01 S ."
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install () {
# Only install the script if 'sysvinit' is in DISTRO_FEATURES

View File

@ -8,8 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;m
SRC_URI = "file://main.conf \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -11,8 +11,7 @@ SRC_URI = "file://host-peer \
inherit allarch useradd
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}${sysconfdir}/ppp/peers

View File

@ -6,8 +6,7 @@ SRC_URI = "file://dropbear_rsa_host_key \
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INHIBIT_DEFAULT_DEPS = "1"

View File

@ -25,8 +25,7 @@ SRC_URI = "file://rotation \
file://licenses/GPL-2 \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INHIBIT_DEFAULT_DEPS = "1"

View File

@ -4,8 +4,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;m
SRC_URI = "file://inittab"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INHIBIT_DEFAULT_DEPS = "1"

View File

@ -15,8 +15,7 @@ SRC_URI = "file://copyright \
file://interfaces \
file://nfsroot"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install () {
install -d ${D}${sysconfdir}/init.d \

View File

@ -3,8 +3,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init-boot.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-boot.sh ${D}/init

View File

@ -20,8 +20,7 @@ SRC_URI = "file://init \
file://overlayroot \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}/init.d

View File

@ -5,8 +5,7 @@ DEPENDS = "virtual/kernel"
RDEPENDS:${PN} = "busybox-mdev"
SRC_URI = "file://init-live.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-live.sh ${D}/init

View File

@ -5,8 +5,7 @@ DEPENDS = "virtual/kernel"
RDEPENDS:${PN} = "udev udev-extraconf"
SRC_URI = "file://init-live.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-live.sh ${D}/init

View File

@ -5,8 +5,7 @@ SRC_URI = "file://init-install-efi-testfs.sh"
RDEPENDS:${PN} = "parted e2fsprogs-mke2fs dosfstools"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-install-efi-testfs.sh ${D}/install-efi.sh

View File

@ -6,8 +6,7 @@ SRC_URI = "file://init-install-efi.sh"
RDEPENDS:${PN} = "parted e2fsprogs-mke2fs dosfstools util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}"
RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-install-efi.sh ${D}/install-efi.sh

View File

@ -5,8 +5,7 @@ SRC_URI = "file://init-install-testfs.sh"
RDEPENDS:${PN} = "grub parted e2fsprogs-mke2fs"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -m 0755 ${S}/init-install-testfs.sh ${D}/install.sh

View File

@ -3,8 +3,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init-install.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
RDEPENDS:${PN} = "grub parted e2fsprogs-mke2fs util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}"
RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"

View File

@ -7,8 +7,7 @@ RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
SRC_URI = "file://init-install-efi.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}/init.d

View File

@ -12,8 +12,7 @@ COMPATIBLE_HOST:armv7ve = 'null'
SRC_URI = "file://init-install.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}/init.d

View File

@ -9,8 +9,7 @@ inherit allarch
FILESEXTRAPATHS:prepend := "${THISDIR}/initramfs-framework:"
SRC_URI = "file://setup-live"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}/init.d

View File

@ -35,8 +35,7 @@ SRC_URI = "file://functions \
${@bb.utils.contains('DISTRO_FEATURES','selinux','file://sushell','',d)} \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
SRC_URI:append:arm = " file://alignment.sh"
SRC_URI:append:armeb = " file://alignment.sh"

View File

@ -15,8 +15,7 @@ do_compile[noexec] = "1"
INHIBIT_DEFAULT_DEPS = "1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -Dm 0644 ${S}/sys-queue.h ${D}${includedir}/sys/queue.h

View File

@ -17,8 +17,7 @@ DEPENDS = "virtual/cross-binutils \
do_configure[noexec] = "1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile() {
${CC} ${CPPFLAGS} ${CFLAGS} -fPIE -c stack_chk.c -o stack_chk.o

View File

@ -13,8 +13,7 @@ do_compile[noexec] = "1"
INHIBIT_DEFAULT_DEPS = "1"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -Dm 0644 ${S}/error.h -t ${D}${includedir}

View File

@ -7,8 +7,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit systemd-boot-cfg
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
LABELS = "boot"

View File

@ -5,8 +5,7 @@ LICENSE = "MIT"
PACKAGE_WRITE_DEPS += "systemd-systemctl-native"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit features_check

View File

@ -21,8 +21,7 @@ SRC_URI = "\
file://wired.network \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -D -m0644 ${S}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf

View File

@ -6,8 +6,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;m
SRC_URI = "file://inittab \
file://start_getty"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INHIBIT_DEFAULT_DEPS = "1"

View File

@ -13,8 +13,7 @@ SRC_URI = " \
file://localextra.rules \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
MOUNT_BASE = "/run/media"
MOUNT_GROUP ?= "disk"

View File

@ -9,8 +9,7 @@ SRC_URI = "\
file://volatile-binds.service.in \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit allarch systemd features_check

View File

@ -6,8 +6,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://distcc.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# Default to the host machine for a running qemu session
DISTCC_HOSTS ?= "192.168.7.1"

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://exports"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}${sysconfdir}

View File

@ -26,8 +26,7 @@ SRC_URI[payloadPV.sha256sum] = "4e4e037a2b83c98c6c94818390d4bdd3f6e10f6ec62dd791
UPSTREAM_CHECK_REGEX = "docbook-xml-(?P<pver>4(\.\d+)).zip"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_configure (){
:

View File

@ -8,8 +8,7 @@ BBCLASSEXTEND = "native"
DEPENDS = "elfutils"
DEPENDS:append:libc-musl = " argp-standalone"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile () {
${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ${S}/dwarfsrcfiles.c -lelf -ldw

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://makedevs.c;beginline=2;endline=2;md5=c3817b10013a3007
SECTION = "base"
SRC_URI = "file://makedevs.c"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
FILES:${PN}:append:class-nativesdk = " ${datadir}"

View File

@ -3,8 +3,7 @@ HOMEPAGE = "https://git.yoctoproject.org/opkg/"
LICENSE = "MIT"
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg/

View File

@ -18,8 +18,7 @@ SRC_URI = "file://${COREBASE}/scripts/runqemu \
file://${COREBASE}/scripts/runqemu-export-rootfs \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit nativesdk

View File

@ -6,8 +6,7 @@ LIC_FILES_CHKSUM = "file://${S}/qemu-oe-bridge-helper.c;endline=4;md5=ae00a3bab8
SRC_URI = "file://qemu-oe-bridge-helper.c"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit native

View File

@ -2,8 +2,7 @@ SUMMARY = "QEMU wrapper script"
HOMEPAGE = "http://qemu.org"
LICENSE = "MIT"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
DEPENDS += "qemu-native"

View File

@ -8,8 +8,7 @@ SRC_URI = "file://run-postinsts \
file://run-postinsts.init \
file://run-postinsts.service"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit allarch systemd update-rc.d

View File

@ -13,8 +13,7 @@ DEPENDS += "virtual/nativesdk-cross-cc virtual/nativesdk-libc virtual/nativesdk-
SRC_URI += "file://target-rust-ccld.c"
LIC_FILES_CHKSUM = "file://target-rust-ccld.c;md5=af4e0e29f81a34cffe05aa07c89e93e9;endline=7"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# Need to use our SDK's sh here, see #14878
create_sdk_wrapper () {

View File

@ -8,8 +8,7 @@ INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://securetty"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# Since SERIAL_CONSOLES is likely to be set from the machine configuration
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -13,8 +13,7 @@ DEPENDS = "base-passwd"
# can add custom users/groups for recipes that use inherit useradd.
SRC_URI = "file://login.defs_shadow-sysroot"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}${sysconfdir}

View File

@ -8,8 +8,7 @@ PV = "1.0"
SRC_URI = "file://template.py file://COPYING"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit native

View File

@ -13,8 +13,7 @@ SRC_URI = " \
file://watchdog.conf \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# The default value is 60 seconds when null.
WATCHDOG_TIMEOUT ??= ""

View File

@ -7,8 +7,7 @@ LIC_FILES_CHKSUM = "file://builder_session.sh;endline=5;md5=84796c3c41785d86100f
SRC_URI = "file://builder_session.sh \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
RDEPENDS:${PN} = "mini-x-session"

View File

@ -11,8 +11,7 @@ RCONFLICTS:${PN} = "matchbox-common"
SRC_URI = "file://matchbox-session"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit update-alternatives

View File

@ -12,8 +12,7 @@ RCONFLICTS:${PN} = "matchbox-common"
SRC_URI = "file://mini-x-session"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
RDEPENDS:${PN} = "sudo"

View File

@ -10,8 +10,7 @@ SRC_URI = "file://pong-clock-no-flicker.c"
LIC_FILES_CHKSUM = "file://pong-clock-no-flicker.c;beginline=1;endline=23;md5=dd248d50f73f746d1ee78586b0b2ebd3"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_compile () {
${CC} ${CFLAGS} ${LDFLAGS} -o pong-clock pong-clock-no-flicker.c `pkg-config --cflags --libs x11 xau xdmcp`

View File

@ -13,8 +13,7 @@ SRC_URI = "file://init \
file://weston-autologin \
file://weston-start"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}"
PACKAGECONFIG:append:qemuriscv64 = " use-pixman"

View File

@ -12,8 +12,7 @@ SRC_URI = "file://xserver-nodm \
file://capability.conf \
"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
# Since we refer to ROOTLESS_X which is normally enabled per-machine
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@ -8,8 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://pointercal.xinput"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
# Only install file if it has a contents

View File

@ -7,8 +7,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://xorg.conf"
SRC_URI:append:qemuall = " file://noblank.conf"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
CONFFILES:${PN} = "${sysconfdir}/X11/xorg.conf"

View File

@ -7,8 +7,7 @@ SRC_URI = "file://dt-doc-validate \
file://dt-mk-schema \
file://dt-validate"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}${bindir}/

View File

@ -1,8 +1,7 @@
SUMMARY = "Wrapper script for the Linux kernel module dependency indexer"
LICENSE = "MIT"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INHIBIT_DEFAULT_DEPS = "1"
# The kernel and the staging dir for it is machine specific

View File

@ -31,8 +31,7 @@ COMPATIBLE_HOST = ".*-linux"
SRC_URI = "file://COPYING.GPL"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_configure() {
:

View File

@ -8,8 +8,7 @@ inherit pkgconfig
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_configure[depends] += "virtual/kernel:do_shared_workdir openssl-native:do_populate_sysroot"
do_compile[depends] += "virtual/kernel:do_compile_kernelmodules"

View File

@ -4,8 +4,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://modutils.sh;beginline=3;endline=3;md5=b2dccaa94b3629a08bfb4f983cad6f89"
SRC_URI = "file://modutils.sh"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
INITSCRIPT_NAME = "modutils.sh"
INITSCRIPT_PARAMS = "start 06 S ."

View File

@ -20,8 +20,7 @@ REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI = "file://session \
file://index.theme"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
FILES:${PN} += "${datadir}/themes/Sato/index.theme"

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://50-sato.conf"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
inherit allarch

View File

@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
SRC_URI = "file://shutdown.desktop"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_install() {
install -d ${D}${datadir}/applications

View File

@ -6,8 +6,7 @@ SRC_URI = "file://system-xuser.conf"
inherit allarch useradd
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
S = "${UNPACKDIR}"
do_configure() {
: