[oe-commits] Otavio Salvador : squashfs-tools: add . inc usage again to avoid duplicated logic

git version control git at git.openembedded.org
Fri Nov 20 12:47:19 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: e0663b38790816d40d8d168d836d2a5c1232e6ea
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e0663b38790816d40d8d168d836d2a5c1232e6ea

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Thu Nov 19 16:15:55 2009 -0200

squashfs-tools: add .inc usage again to avoid duplicated logic

In the effort to avoid duplicated code we've added back the .inc usage
otherwise most of code and compilation logic is duplicated between 3.3
and 4.0 recipes.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 recipes/squashfs-tools/squashfs-tools.inc    |    2 +-
 recipes/squashfs-tools/squashfs-tools_4.0.bb |   33 ++++---------------------
 2 files changed, 7 insertions(+), 28 deletions(-)

diff --git a/recipes/squashfs-tools/squashfs-tools.inc b/recipes/squashfs-tools/squashfs-tools.inc
index d06e1e5..aa75eaa 100644
--- a/recipes/squashfs-tools/squashfs-tools.inc
+++ b/recipes/squashfs-tools/squashfs-tools.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
 SECTION = "base"
 LICENSE = "GPLv2"
 DEPENDS = "zlib"
-INC_PR = "r1"
+INC_PR = "r2"
 
 S = "${WORKDIR}/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}/squashfs-tools"
 
diff --git a/recipes/squashfs-tools/squashfs-tools_4.0.bb b/recipes/squashfs-tools/squashfs-tools_4.0.bb
index 4e18489..29d82a8 100644
--- a/recipes/squashfs-tools/squashfs-tools_4.0.bb
+++ b/recipes/squashfs-tools/squashfs-tools_4.0.bb
@@ -1,36 +1,15 @@
-DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
-SECTION = "base"
-LICENSE = "GPLv2"
-DEPENDS = "zlib"
-PR = "r2"
+require squashfs-tools.inc
+PR = "${INC_PR}.2"
 
-# 2009-10-22 snapshot
-#SRC_URI = "http://www.kernel.org/pub/linux/kernel/people/pkl/squashfs4.0-lzma-snapshot.tgz"
-#S = "${WORKDIR}/squashfs4.0-lzma-snapshot/squashfs-tools"
-
-SRC_URI  = "cvs://anonymous@squashfs.cvs.sourceforge.net/cvsroot/squashfs;module=squashfs;date=${SRCDATE}"
+# This override is required since this has not yet been released
+SRC_URI  = "cvs://anonymous@squashfs.cvs.sourceforge.net/cvsroot/squashfs;module=squashfs;date=${SRCDATE} \
+            http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
 S = "${WORKDIR}/squashfs/squashfs-tools"
 
-SRC_URI += "http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
-
-COMP_DEFAULT = gzip
-
 EXTRA_OEMAKE += "LZMA_SUPPORT=1 LZMA_DIR=../.."
-
 TARGET_CC_ARCH += "${LDFLAGS}"
 
 # the COMP_DEFAULT macro should result in a string including quotes: "gzip"
+COMP_DEFAULT = gzip
 CFLAGS_append = ' -I. -I../../C -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
  -D_GNU_SOURCE -DLZMA_SUPPORT -DCOMP_DEFAULT=\\"${COMP_DEFAULT}\\" '
-
-prefix = ""
-
-do_compile() {
-	oe_runmake mksquashfs
-}
-
-do_install () {
-	install -d ${D}${sbindir}
-	install -m 0755 mksquashfs ${D}${sbindir}/
-}
-





More information about the Openembedded-commits mailing list