recipes: Switch away from S = WORKDIR

Where recipes use S = ${WORKDIR}, change them to set UNPACKDIR to
a subdir of WORKDIR and make S point at this instead.

I've chosen not to force S into any standard UNPACKDIR we may pick in
future just so the S = UNPACKDIR case is clearly visible by the
directory naming under WORKDIR as that should aid usability.

(From OE-Core rev: d9328e3b0b062f0621de3d114584b44f384a1c02)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2024-05-01 22:52:57 +01:00
parent 71c6db8e65
commit d6ae8d2004
75 changed files with 163 additions and 89 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,22 +2,23 @@ SUMMARY = "The canonical example of init scripts"
SECTION = "base" SECTION = "base"
DESCRIPTION = "This recipe is a canonical example of init scripts" DESCRIPTION = "This recipe is a canonical example of init scripts"
LICENSE = "GPL-2.0-only" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYRIGHT;md5=349c872e0066155e1818b786938876a4" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=349c872e0066155e1818b786938876a4"
SRC_URI = "file://skeleton \ SRC_URI = "file://skeleton \
file://skeleton_test.c \ file://skeleton_test.c \
file://COPYRIGHT \ file://COPYRIGHT \
" "
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_compile () { do_compile () {
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/skeleton_test.c -o ${WORKDIR}/skeleton-test ${CC} ${CFLAGS} ${LDFLAGS} ${S}/skeleton_test.c -o ${B}/skeleton-test
} }
do_install () { do_install () {
install -d ${D}${sysconfdir}/init.d install -d ${D}${sysconfdir}/init.d
cat ${WORKDIR}/skeleton | \ cat ${S}/skeleton | \
sed -e 's,/etc,${sysconfdir},g' \ sed -e 's,/etc,${sysconfdir},g' \
-e 's,/usr/sbin,${sbindir},g' \ -e 's,/usr/sbin,${sbindir},g' \
-e 's,/var,${localstatedir},g' \ -e 's,/var,${localstatedir},g' \
@ -26,7 +27,7 @@ do_install () {
chmod a+x ${D}${sysconfdir}/init.d/skeleton chmod a+x ${D}${sysconfdir}/init.d/skeleton
install -d ${D}${sbindir} install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/skeleton-test ${D}${sbindir}/ install -m 0755 ${S}/skeleton-test ${D}${sbindir}/
} }
RDEPENDS:${PN} = "initscripts" RDEPENDS:${PN} = "initscripts"

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,9 @@ LIC_FILES_CHKSUM = "file://${S}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe
SRC_URI = "file://usb-gether \ SRC_URI = "file://usb-gether \
file://COPYING.GPL" file://COPYING.GPL"
S = "${WORKDIR}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install() { do_install() {
install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}

View File

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

View File

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

View File

@ -25,7 +25,8 @@ SRC_URI = "file://rotation \
" "
SRC_URI:append:libc-glibc = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd systemd-resolved', ' file://0001-add-nss-resolve-to-nsswitch.patch', '', d)}" SRC_URI:append:libc-glibc = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd systemd-resolved', ' file://0001-add-nss-resolve-to-nsswitch.patch', '', d)}"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
INHIBIT_DEFAULT_DEPS = "1" INHIBIT_DEFAULT_DEPS = "1"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,11 +3,11 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init-install-efi.sh" SRC_URI = "file://init-install-efi.sh"
RDEPENDS:${PN} = "parted e2fsprogs-mke2fs dosfstools util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}" RDEPENDS:${PN} = "parted e2fsprogs-mke2fs dosfstools util-linux-blkid ${VIRTUAL-RUNTIME_base-utils}"
RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}" RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install() { do_install() {
install -m 0755 ${S}/init-install-efi.sh ${D}/install-efi.sh install -m 0755 ${S}/init-install-efi.sh ${D}/install-efi.sh

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,7 +9,8 @@ SERIAL_TERM ?= "linux"
SRC_URI = "file://serial-getty@.service" SRC_URI = "file://serial-getty@.service"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
# As this package is tied to systemd, only build it when we're also building systemd. # As this package is tied to systemd, only build it when we're also building systemd.
inherit features_check inherit features_check

View File

@ -8,7 +8,8 @@ inherit native
SRC_URI = "file://systemctl" SRC_URI = "file://systemctl"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}

View File

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

View File

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

View File

@ -9,7 +9,8 @@ SRC_URI = "\
file://volatile-binds.service.in \ file://volatile-binds.service.in \
" "
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit allarch systemd features_check inherit allarch systemd features_check
@ -64,7 +65,6 @@ END
"$var_lib_servicefile" "$var_lib_servicefile"
fi fi
} }
do_compile[dirs] = "${WORKDIR}"
do_install () { do_install () {
install -d ${D}${base_sbindir} install -d ${D}${base_sbindir}
@ -82,4 +82,3 @@ do_install () {
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
} }
do_install[dirs] = "${WORKDIR}"

View File

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

View File

@ -3,10 +3,10 @@ DESCRIPTION = "Enables NFS access from any host to the entire filesystem (for de
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://exports" SRC_URI = "file://exports"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install() { do_install() {
install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}

View File

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

View File

@ -26,7 +26,8 @@ ICECC_DISABLED = "1"
PATCHTOOL = "patch" PATCHTOOL = "patch"
SRC_URI = "file://icecc-create-env" SRC_URI = "file://icecc-create-env"
S = "${WORKDIR}" S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
do_install() { do_install() {
install -d ${D}/${bindir} install -d ${D}/${bindir}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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