mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
26fe9ce9f1
The project Makefile uses a script (sysinfo.sh) to non-atomically generate
two .c files (sysinfo.c, sysinfoc.c) which are then included in the build.
Since the script always overwrites both .c files, the Makefile should only
invoke it once, not twice in parallel. Otherwise the .c files may be
corrupted and cause random build failures in parallel builds.
Requires at least GNU make 4.3, for Grouped Targets support [1].
[1] https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00004.html
Reviewed-by: Silvio Fricke <silvio.fricke@gin.de>
Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit add2d94ab7)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
31 lines
1.0 KiB
BlitzBasic
31 lines
1.0 KiB
BlitzBasic
SUMMARY = "A CPU benchmark utility"
|
|
DESCRIPTION = "BYTE Magazine's native benchmarks (also called BYTEmark) \
|
|
designed to expose the capabilities of a system's CPU, FPU, \
|
|
and memory system."
|
|
HOMEPAGE = "http://www.tux.org/~mayer/linux/"
|
|
LICENSE = "nbench-byte"
|
|
LIC_FILES_CHKSUM = "file://README;beginline=57;endline=66;md5=020ef579f8fa5746b7e307a54707834f"
|
|
SECTION = "console/utils"
|
|
|
|
SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \
|
|
file://nbench_32bits.patch \
|
|
file://Makefile-add-more-dependencies-to-pointer.h.patch \
|
|
file://Makefile-Fix-sysinfo-generation-in-parallel-build.patch \
|
|
file://sysinfo.sh-Fix-typo-in-rm-command.patch"
|
|
|
|
SRC_URI[md5sum] = "285dfab361080759d477ea1fe7d3093a"
|
|
SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac"
|
|
|
|
EXTRA_OEMAKE = "-e MAKEFLAGS="
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
do_compile() {
|
|
oe_runmake
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${bindir}
|
|
install -m 0644 NNET.DAT ${D}${bindir}/
|
|
install -m 0755 nbench ${D}${bindir}/
|
|
}
|