Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-buv-runbmc: add distro buv-dev with test tools #221

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ inherit buv-entity-utils

OBMC_IMAGE_EXTRA_INSTALL += " \
${@entity_enabled(d, 'packagegroup-buv-runbmc-apps-buv-system')} \
${@bb.utils.contains('DISTRO_FEATURES', 'buv-dev', 'packagegroup-buv-runbmc-apps-buv-dev', '', d)} \
packagegroup-buv-runbmc-apps-buv-common-utils \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require conf/distro/openbmc-phosphor.conf

DISTRO = "buv-dev"
DISTRO_FEATURES += "buv-dev"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ UBOOT_DEVICETREE = "nuvoton-npcm750-buv"
IGPS_MACHINE = "RunBMC"

IMAGE_FSTYPES += " cpio.${INITRAMFS_CTYPE}.u-boot"
KERNEL_ALT_IMAGETYPE = "vmlinux"

KCS_DEVICE = "ipmi-kcs1"
VIRTUAL-RUNTIME_obmc-fan-control = "phosphor-pid-control"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PROVIDES = "${PACKAGES}"
PACKAGES = " \
${PN}-buv-system \
${PN}-buv-common-utils \
${PN}-buv-dev \
"

SUMMARY_${PN}-buv-common-utils = "BUV NUVOTON common utils"
Expand Down Expand Up @@ -36,3 +37,11 @@ SUMMARY_${PN}-buv-system = "BUV NUVOTON System"
RDEPENDS_${PN}-buv-system = " \
intel-ipmi-oem \
"

SUMMARY_${PN}-buv-dev = "BUV NUVOTON development tools"
RDEPENDS_${PN}-buv-dev = " \
ent \
dhrystone \
rw-perf \
"

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FEATURE_FANCY_HEAD=y
CONFIG_TIMEOUT=y
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FILESEXTRAPATHS_prepend_buv-runbmc := "${THISDIR}/${PN}:"
SRC_URI_append_buv-runbmc = " file://busybox.cfg"
SRC_URI_append_buv-runbmc = "${@bb.utils.contains('DISTRO_FEATURES', 'buv-dev', ' file://buv-dev.cfg', '', d)}"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SUMMARY = "Dhrystone benchmark"
DESCRIPTION = "Dhrystone benchmark"
HOMEPAGE = "http://www.netlib.org/benchmark/dhry-c"

PR = "r1"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/README;md5=2178d6495724d4d5a956aef832e06a7c"

SRC_URI = "file://dhrystone.tar.bz2"

S = "${WORKDIR}/${PN}"

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
INSANE_SKIP_${PN} += "ldflags"

do_install () {
install -d ${D}${bindir}
install cc_dry2 ${D}${bindir}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SUMMARY = "A Pseudorandom Number Sequence Test Program"
DESCRIPTION = "The program is useful for evaluating pseudorandom number generators for encryption and statistical sampling applications, compression algorithms, and other applications where the information density of a file is of interest."
HOMEPAGE = "https://www.fourmilab.ch/random/"

DEPENDS += "busybox"
LICENSE="MIT"
LIC_FILES_CHKSUM = "file://${S}/ent.c;endline=24;md5=376f7f7194e74c2639d66ef5f0309ef7"
SRC_URI = "file://ent.tar.bz2"

S = "${WORKDIR}/${PN}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
INSANE_SKIP_${PN} += "ldflags"

do_install () {
install -d ${D}${bindir}/
install ent ${D}${bindir}
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SUMMARY = "A read/write cpoy test program"
DESCRIPTION = "The copy test program."

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://wr_perf_test file://rd_perf_test"

INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

do_install () {
install -d ${D}${bindir}/
install ${WORKDIR}/rd_perf_test ${WORKDIR}/wr_perf_test ${D}${bindir}
}