From 068bc1a7f17f556c773e2eb7ba0d4225bd8a71dd Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 29 Mar 2011 23:32:11 +0200 Subject: Packages/Host tools: lzo: move it to packages/compression/lzo and convert to use generic macros Signed-off-by: Abdoulaye Walsimou Gaye --- packages/compression/compression.kconfig | 3 ++ packages/compression/compression.mk | 5 ++ packages/compression/lzo/lzo.kconfig | 87 ++++++++++++++++++++++++++++++++ packages/compression/lzo/lzo.mk | 75 +++++++++++++++++++++++++++ 4 files changed, 170 insertions(+) create mode 100644 packages/compression/lzo/lzo.kconfig create mode 100644 packages/compression/lzo/lzo.mk (limited to 'packages') 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 . +# +################################################################################ +# +# \file lzo.kconfig +# \brief lzo.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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 . +# +################################################################################ +# +# \file lzo.mk +# \brief lzo.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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) -- cgit v1.2.3