mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
28 lines
710 B
BlitzBasic
28 lines
710 B
BlitzBasic
SUMMARY = "Tool for creating device nodes"
|
|
DESCRIPTION = "${SUMMARY}"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://makedevs.c;beginline=2;endline=2;md5=c3817b10013a30076c68a90e40a55570"
|
|
SECTION = "base"
|
|
SRC_URI = "file://makedevs.c"
|
|
|
|
S = "${WORKDIR}/sources"
|
|
UNPACKDIR = "${S}"
|
|
|
|
FILES:${PN}:append:class-nativesdk = " ${datadir}"
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${S}/makedevs ${S}/makedevs.c
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${base_sbindir}
|
|
install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs
|
|
}
|
|
|
|
do_install:append:class-nativesdk() {
|
|
install -d ${D}${datadir}
|
|
install -m 644 ${COREBASE}/meta/files/device_table-minimal.txt ${D}${datadir}/
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|