diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/classes/buv-image.bbclass b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/classes/buv-image.bbclass index 56b49ae34c65..56fa498db8c2 100644 --- a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/classes/buv-image.bbclass +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/classes/buv-image.bbclass @@ -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 \ " diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/distro/buv-dev.conf b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/distro/buv-dev.conf new file mode 100644 index 000000000000..9bc63a78da2f --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/distro/buv-dev.conf @@ -0,0 +1,4 @@ +require conf/distro/openbmc-phosphor.conf + +DISTRO = "buv-dev" +DISTRO_FEATURES += "buv-dev" diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/machine/buv-runbmc.conf b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/machine/buv-runbmc.conf index 10d67a18826d..e88c730539ea 100644 --- a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/machine/buv-runbmc.conf +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/conf/machine/buv-runbmc.conf @@ -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" diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-buv-runbmc/packagegroups/packagegroup-buv-runbmc-apps.bb b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-buv-runbmc/packagegroups/packagegroup-buv-runbmc-apps.bb index 0ff25a64c767..eb4948bd1270 100644 --- a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-buv-runbmc/packagegroups/packagegroup-buv-runbmc-apps.bb +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-buv-runbmc/packagegroups/packagegroup-buv-runbmc-apps.bb @@ -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" @@ -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 \ + " + diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox/buv-dev.cfg b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox/buv-dev.cfg new file mode 100644 index 000000000000..2d5abcd64133 --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox/buv-dev.cfg @@ -0,0 +1,2 @@ +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_TIMEOUT=y diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox_%.bbappend b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox_%.bbappend index 1ea9ba1e5358..b07d266e6453 100644 --- a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox_%.bbappend +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-core/busybox/busybox_%.bbappend @@ -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)}" diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone/dhrystone.tar.bz2 b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone/dhrystone.tar.bz2 new file mode 100644 index 000000000000..7ebaf83457ff Binary files /dev/null and b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone/dhrystone.tar.bz2 differ diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone_2.1.0.bb b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone_2.1.0.bb new file mode 100644 index 000000000000..72debd0127fe --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/dhrystone/dhrystone_2.1.0.bb @@ -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} +} diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent/ent.tar.bz2 b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent/ent.tar.bz2 new file mode 100644 index 000000000000..1a56b53ba007 Binary files /dev/null and b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent/ent.tar.bz2 differ diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent_1.0.0.bb b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent_1.0.0.bb new file mode 100644 index 000000000000..bb29447454c2 --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/ent/ent_1.0.0.bb @@ -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} +} diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/rd_perf_test b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/rd_perf_test new file mode 100755 index 000000000000..ef8aa4c49d0b Binary files /dev/null and b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/rd_perf_test differ diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/wr_perf_test b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/wr_perf_test new file mode 100755 index 000000000000..2a5751ade86a Binary files /dev/null and b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf/wr_perf_test differ diff --git a/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf_1.0.0.bb b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf_1.0.0.bb new file mode 100644 index 000000000000..fb05e7971284 --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-buv-runbmc/recipes-devtools/rw-perf/rw-perf_1.0.0.bb @@ -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} +}