Message ID | 20220206101134.30291-1-guillaume.bressaix@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | package/mbw: new package | expand |
Hello Guillaume, Le 06/02/2022 à 11:11, Guillaume W. Bres a écrit : > Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com> > --- > DEVELOPERS | 1 + > package/Config.in | 1 + > package/mbw/Config.in | 7 +++++++ > package/mbw/mbw.hash | 3 +++ > package/mbw/mbw.mk | 20 ++++++++++++++++++++ > 5 files changed, 32 insertions(+) > create mode 100644 package/mbw/Config.in > create mode 100644 package/mbw/mbw.hash > create mode 100644 package/mbw/mbw.mk > > diff --git a/DEVELOPERS b/DEVELOPERS > index a1ec9a091e..acc87aa007 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -1148,6 +1148,7 @@ N: Guillaume William Brs <guillaume.bressaix@gmail.com> > F: package/libnids/ > F: package/libxcrypt/ > F: package/liquid-dsp/ > +F: package/mbw/ > F: package/pixiewps/ > F: package/python-pybind/ > F: package/reaver/ > diff --git a/package/Config.in b/package/Config.in > index e4ca195beb..8445173633 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -118,6 +118,7 @@ menu "Debugging, profiling and benchmark" > source "package/lttng-babeltrace/Config.in" > source "package/lttng-modules/Config.in" > source "package/lttng-tools/Config.in" > + source "package/mbw/Config.in" > source "package/mcelog/Config.in" > source "package/memstat/Config.in" > source "package/netperf/Config.in" > diff --git a/package/mbw/Config.in b/package/mbw/Config.in > new file mode 100644 > index 0000000000..7bafa35359 > --- /dev/null > +++ b/package/mbw/Config.in > @@ -0,0 +1,7 @@ > +config BR2_PACKAGE_MBW test-pkg seems ok: $ ./utils/test-pkg -c defconfig -d test-pkg -p mbw -k bootlin-armv5-uclibc [1/6]: OK bootlin-armv7-glibc [2/6]: OK bootlin-armv7m-uclibc [3/6]: OK bootlin-x86-64-musl [4/6]: OK br-arm-full-static [5/6]: OK sourcery-arm [6/6]: OK 6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed > + bool "mbw" > + help > + MBW is a memory bandwidth benchmarking tool. > + MBW determines the "copy" memory bandwidth available > + to userspace programs. We need an empty line here. > + https://github.com/raas/mbw > diff --git a/package/mbw/mbw.hash b/package/mbw/mbw.hash > new file mode 100644 > index 0000000000..966b3c9dae > --- /dev/null > +++ b/package/mbw/mbw.hash > @@ -0,0 +1,3 @@ > +# Locally computed > +sha256 9f7365c752f4dfe0d7d46c599ff1e4b412179be764b0d712269d7ee61e0cf718 mbw-1.4.tar.gz > +sha256 43a285e18a2158494b099645e1ea3514452c085927b34856d39c1f6917c7d04d mbw.spec > diff --git a/package/mbw/mbw.mk b/package/mbw/mbw.mk > new file mode 100644 > index 0000000000..fb599d0bfd > --- /dev/null > +++ b/package/mbw/mbw.mk > @@ -0,0 +1,20 @@ > +################################################################################ > +# > +# mbw > +# > +################################################################################ > + > +MBW_VERSION = 1.4 A new version 1.5 is now available. > +MBW_SITE = $(call github,raas,mbw,v$(MBW_VERSION)) > +MBW_LICENSE = LGPL-2.1 > +MBW_LICENSE_FILES = mbw.spec > + > +define MBW_BUILD_CMDS > + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) > +endef > + > +define MBW_INSTALL_TARGET_CMDS > + $(INSTALL) -D -m 0755 $(@D)/mbw $(TARGET_DIR)/usr/sbin > +endef The version 1.5 provide a simple CMakelists.txt but mbw is installed in /usr/bin. Why are you using /usr/sbin ? Best regards, Romain > + > +$(eval $(generic-package))
diff --git a/DEVELOPERS b/DEVELOPERS index a1ec9a091e..acc87aa007 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1148,6 +1148,7 @@ N: Guillaume William Brs <guillaume.bressaix@gmail.com> F: package/libnids/ F: package/libxcrypt/ F: package/liquid-dsp/ +F: package/mbw/ F: package/pixiewps/ F: package/python-pybind/ F: package/reaver/ diff --git a/package/Config.in b/package/Config.in index e4ca195beb..8445173633 100644 --- a/package/Config.in +++ b/package/Config.in @@ -118,6 +118,7 @@ menu "Debugging, profiling and benchmark" source "package/lttng-babeltrace/Config.in" source "package/lttng-modules/Config.in" source "package/lttng-tools/Config.in" + source "package/mbw/Config.in" source "package/mcelog/Config.in" source "package/memstat/Config.in" source "package/netperf/Config.in" diff --git a/package/mbw/Config.in b/package/mbw/Config.in new file mode 100644 index 0000000000..7bafa35359 --- /dev/null +++ b/package/mbw/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_MBW + bool "mbw" + help + MBW is a memory bandwidth benchmarking tool. + MBW determines the "copy" memory bandwidth available + to userspace programs. + https://github.com/raas/mbw diff --git a/package/mbw/mbw.hash b/package/mbw/mbw.hash new file mode 100644 index 0000000000..966b3c9dae --- /dev/null +++ b/package/mbw/mbw.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 9f7365c752f4dfe0d7d46c599ff1e4b412179be764b0d712269d7ee61e0cf718 mbw-1.4.tar.gz +sha256 43a285e18a2158494b099645e1ea3514452c085927b34856d39c1f6917c7d04d mbw.spec diff --git a/package/mbw/mbw.mk b/package/mbw/mbw.mk new file mode 100644 index 0000000000..fb599d0bfd --- /dev/null +++ b/package/mbw/mbw.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# mbw +# +################################################################################ + +MBW_VERSION = 1.4 +MBW_SITE = $(call github,raas,mbw,v$(MBW_VERSION)) +MBW_LICENSE = LGPL-2.1 +MBW_LICENSE_FILES = mbw.spec + +define MBW_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) +endef + +define MBW_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/mbw $(TARGET_DIR)/usr/sbin +endef + +$(eval $(generic-package))
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com> --- DEVELOPERS | 1 + package/Config.in | 1 + package/mbw/Config.in | 7 +++++++ package/mbw/mbw.hash | 3 +++ package/mbw/mbw.mk | 20 ++++++++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/mbw/Config.in create mode 100644 package/mbw/mbw.hash create mode 100644 package/mbw/mbw.mk