summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-03-29 23:32:11 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-03-29 23:32:11 +0200
commit068bc1a7f17f556c773e2eb7ba0d4225bd8a71dd (patch)
tree4ede0232e613951137b84b27ea3921c27f5b02f0 /packages
parentc7a66e9c378af4f5372482412528bc6902655134 (diff)
downloadembtoolkit-068bc1a7f17f556c773e2eb7ba0d4225bd8a71dd.tar.gz
embtoolkit-068bc1a7f17f556c773e2eb7ba0d4225bd8a71dd.tar.bz2
embtoolkit-068bc1a7f17f556c773e2eb7ba0d4225bd8a71dd.tar.xz
Packages/Host tools: lzo: move it to packages/compression/lzo and convert to use generic macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/compression/compression.kconfig3
-rw-r--r--packages/compression/compression.mk5
-rw-r--r--packages/compression/lzo/lzo.kconfig87
-rw-r--r--packages/compression/lzo/lzo.mk75
4 files changed, 170 insertions, 0 deletions
diff --git a/packages/compression/compression.kconfig b/packages/compression/compression.kconfig
index 45e3291..ae0cbbf 100644
--- a/packages/compression/compression.kconfig
+++ b/packages/compression/compression.kconfig
@@ -23,5 +23,8 @@
# \date August 2010
################################################################################
+#lzo
+source packages/compression/lzo/lzo.kconfig
+
#zlib
source packages/compression/zlib/zlib.kconfig
diff --git a/packages/compression/compression.mk b/packages/compression/compression.mk
index 3ed32a6..92f9811 100644
--- a/packages/compression/compression.mk
+++ b/packages/compression/compression.mk
@@ -23,6 +23,11 @@
# \date August 2010
################################################################################
+#lzo for host and target
+include $(EMBTK_ROOT)/packages/compression/lzo/lzo.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LZO) += lzo_install
+HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_LZO) += lzo_host_install
+
#zlib for host and target
include $(EMBTK_ROOT)/packages/compression/zlib/zlib.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_ZLIB) += zlib_target_install
diff --git a/packages/compression/lzo/lzo.kconfig b/packages/compression/lzo/lzo.kconfig
new file mode 100644
index 0000000..f6f51c7
--- /dev/null
+++ b/packages/compression/lzo/lzo.kconfig
@@ -0,0 +1,87 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file lzo.kconfig
+# \brief lzo.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date December 2009
+################################################################################
+
+config EMBTK_HOST_HAVE_LZO
+ bool
+ select EMBTK_LZO_PKG_IS_TARGZ
+ help
+ lzo host development machine.
+
+config EMBTK_HAVE_LZO
+ bool "Have lzo for the target"
+ select EMBTK_LZO_PKG_IS_TARGZ
+ help
+ LZO is a data compression library which is suitable for data
+ de-/compression in real-time. This means it favours speed over
+ compression ratio.
+ LZO is written in ANSI C. Both the source code and the
+ compressed data format are designed to be portable across
+ platforms.
+ LZO implements a number of algorithms with the following
+ features:
+
+ * Decompression is simple and *very* fast.
+ * Requires no memory for decompression.
+ * Compression is pretty fast.
+ * Requires 64 kB of memory for compression.
+ * Allows you to dial up extra compression at a speed
+ cost in the compressor. The speed of the decompressor
+ is not reduced.
+ * Includes compression levels for generating
+ pre-compressed data which achieve a quite competitive
+ compression ratio.
+ * There is also a compression level which needs only
+ 8 kB for compression.
+ * Algorithm is thread safe.
+ * Algorithm is lossless.
+ LZO supports overlapping compression and in-place
+ decompression.
+
+choice
+ prompt "lzo version you wish"
+ depends on EMBTK_HAVE_LZO || EMBTK_HOST_HAVE_LZO
+ help
+ Here you can choose which version of lzo you want to use.
+
+ config EMBTK_LZO_VERSION_2_03
+ bool "lzo-2.03"
+endchoice
+
+config EMBTK_LZO_VERSION_STRING
+ string
+ default "2.03" if EMBTK_LZO_VERSION_2_03
+
+config EMBTK_LZO_NEED_PATCH
+ bool
+ select EMBTK_LZO_HOST_NEED_PATCH
+config EMBTK_LZO_NEED_AUTORECONF
+ bool
+ select EMBTK_LZO_HOST_NEED_AUTORECONF
+config EMBTK_LZO_PKG_IS_TARGZ
+ bool
+ select EMBTK_LZO_HOST_PKG_IS_TARGZ
+config EMBTK_LZO_PKG_IS_TARBZ2
+ bool
+ select EMBTK_LZO_HOST_PKG_IS_TARBZ2
diff --git a/packages/compression/lzo/lzo.mk b/packages/compression/lzo/lzo.mk
new file mode 100644
index 0000000..da67b61
--- /dev/null
+++ b/packages/compression/lzo/lzo.mk
@@ -0,0 +1,75 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file lzo.mk
+# \brief lzo.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date December 2009
+################################################################################
+
+LZO_NAME := lzo
+LZO_VERSION := $(call EMBTK_GET_PKG_VERSION,LZO)
+LZO_SITE := http://www.oberhumer.com/opensource/lzo/download
+LZO_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+LZO_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/lzo/$(LZO_VERSION)
+LZO_PACKAGE := lzo-$(LZO_VERSION).tar.gz
+LZO_SRC_DIR := $(PACKAGES_BUILD)/lzo-$(LZO_VERSION)
+LZO_BUILD_DIR := $(PACKAGES_BUILD)/lzo-$(LZO_VERSION)
+
+LZO_BINS =
+LZO_SBINS =
+LZO_INCLUDES = lzo
+LZO_LIBS = liblzo2.*
+LZO_LIBEXECS =
+LZO_PKGCONFIGS =
+
+LZO_CONFIGURE_ENV :=
+LZO_CONFIGURE_OPTS :=
+
+LZO_DEPS :=
+
+lzo_install:
+ $(call EMBTK_INSTALL_PKG,LZO)
+
+lzo_clean:
+ $(call EMBTK_CLEANUP_PKG,LZO)
+
+#
+# lzo common targets
+#
+
+download_lzo download_lzo_host:
+ $(call EMBTK_DOWNLOAD_PKG,LZO)
+
+#
+# LZO for host development machine
+#
+LZO_HOST_NAME := $(LZO_NAME)
+LZO_HOST_VERSION := $(LZO_VERSION)
+LZO_HOST_SITE := $(LZO_SITE)
+LZO_HOST_SITE_MIRROR1 := $(LZO_SITE_MIRROR1)
+LZO_HOST_SITE_MIRROR2 := $(LZO_SITE_MIRROR2)
+LZO_HOST_SITE_MIRROR3 := $(LZO_SITE_MIRROR3)
+LZO_HOST_PATCH_SITE := $(LZO_PATCH_SITE)
+LZO_HOST_PACKAGE := $(LZO_PACKAGE)
+LZO_HOST_SRC_DIR := $(TOOLS_BUILD)/lzo-$(LZO_VERSION)
+LZO_HOST_BUILD_DIR := $(TOOLS_BUILD)/lzo-$(LZO_VERSION)
+
+lzo_host_install:
+ $(call EMBTK_INSTALL_HOSTPKG,LZO_HOST)