Message ID | 20180704070739.7259-3-thomas.de_schampheleire@nokia.com |
---|---|
State | Accepted |
Headers | show |
Series | misc. patches from Nokia | expand |
Hello, On Wed, 4 Jul 2018 09:07:36 +0200, Thomas De Schampheleire wrote: > From: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> > > A parallel implementation of gzip for modern > multi-processor, multi-core machines. > > Signed-off-by: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> > Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> > --- > package/Config.in | 1 + > package/pigz/Config.in | 14 ++++++++++++++ > package/pigz/pigz.hash | 2 ++ > package/pigz/pigz.mk | 21 +++++++++++++++++++++ Missing entry to the DEVELOPERS file. Thomas
Hello, On Wed, 4 Jul 2018 09:07:36 +0200, Thomas De Schampheleire wrote: > From: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> > > A parallel implementation of gzip for modern > multi-processor, multi-core machines. > > Signed-off-by: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> > Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> > --- > package/Config.in | 1 + > package/pigz/Config.in | 14 ++++++++++++++ > package/pigz/pigz.hash | 2 ++ > package/pigz/pigz.mk | 21 +++++++++++++++++++++ > 4 files changed, 38 insertions(+) > create mode 100644 package/pigz/Config.in > create mode 100644 package/pigz/pigz.hash > create mode 100644 package/pigz/pigz.mk I've applied, with the following changes: [Thomas: add entry to DEVELOPERS file, add hash for license file.] Thanks! Thomas
2018-07-04 22:30 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@bootlin.com>: > Hello, > > On Wed, 4 Jul 2018 09:07:36 +0200, Thomas De Schampheleire wrote: >> From: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> >> >> A parallel implementation of gzip for modern >> multi-processor, multi-core machines. >> >> Signed-off-by: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com> >> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> >> --- >> package/Config.in | 1 + >> package/pigz/Config.in | 14 ++++++++++++++ >> package/pigz/pigz.hash | 2 ++ >> package/pigz/pigz.mk | 21 +++++++++++++++++++++ >> 4 files changed, 38 insertions(+) >> create mode 100644 package/pigz/Config.in >> create mode 100644 package/pigz/pigz.hash >> create mode 100644 package/pigz/pigz.mk > > I've applied, with the following changes: > > [Thomas: add entry to DEVELOPERS file, add hash for license file.] > Oops, I hadn't seen that you already applied these changes and I just sent a v2. As I added one new change related to a more stable download URL for pigz, I'll rebase and send v3. Please ignore the v2, sorry for the noise. /Thomas
diff --git a/package/Config.in b/package/Config.in index e94a6a8c12..20fe5ad8ff 100644 --- a/package/Config.in +++ b/package/Config.in @@ -70,6 +70,7 @@ menu "Compressors and decompressors" source "package/lzip/Config.in" source "package/lzop/Config.in" source "package/p7zip/Config.in" + source "package/pigz/Config.in" source "package/pixz/Config.in" source "package/unrar/Config.in" source "package/unzip/Config.in" diff --git a/package/pigz/Config.in b/package/pigz/Config.in new file mode 100644 index 0000000000..af229060cf --- /dev/null +++ b/package/pigz/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_PIGZ + bool "pigz" + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_ZLIB + help + pigz, which stands for parallel implementation of gzip, is a + fully functional replacement for gzip that exploits multiple + processors and multiple cores to the hilt when compressing + data. + + http://www.zlib.net/pigz/ + +comment "pigz needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/pigz/pigz.hash b/package/pigz/pigz.hash new file mode 100644 index 0000000000..510db9affa --- /dev/null +++ b/package/pigz/pigz.hash @@ -0,0 +1,2 @@ +# From https://zlib.net/pigz/ +sha256 a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73 pigz-2.4.tar.gz diff --git a/package/pigz/pigz.mk b/package/pigz/pigz.mk new file mode 100644 index 0000000000..82f3049519 --- /dev/null +++ b/package/pigz/pigz.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# pigz +# +################################################################################ + +PIGZ_VERSION = 2.4 +PIGZ_SITE = http://www.zlib.net/pigz +PIGZ_DEPENDENCIES = zlib +PIGZ_LICENSE = Zlib +PIGZ_LICENSE_FILES = README + +define PIGZ_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define PIGZ_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/pigz $(TARGET_DIR)/usr/bin/pigz +endef + +$(eval $(generic-package))