Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [2011.03-maintenance][PATCH v2 0/2] Pull request 20130309
@ 2013-03-09 12:38 Apelete Seketeli
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI Apelete Seketeli
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 2/2] jlime-2010.1: add capability to build ubi image for ben-nanonote machine Apelete Seketeli
  0 siblings, 2 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-09 12:38 UTC (permalink / raw)
  To: openembedded-devel

Hello,

The patches that come as a follow-up of this message fix an issue
found while building muffinman-image on top of the 2011.03-maintenance
branch, and also add the capability to build a ubi image for the
ben-nanonote machine. This work is intended to be used as a basis for
porting the JLime distribution to oe-core.

These modifications were tested by successfully building
muffinman-image from scratch on a Debian Wheezy host.

Please pull into 2011.03-maintenance branch.

The following changes since commit ff679935b073a89c4e407d259bcc2eea9148fb91:

  opkg-utils: bump SRCREV to latest (2012-10-26 11:11:59 +0200)

are available in the git repository at:

  git://seketeli.fr/~apelete/oe.git muffinman-image-fix

Apelete Seketeli (2):
  gnutls: update SRC_URI
  jlime-2010.1: add capability to build ubi image for ben-nanonote
    machine

 conf/bitbake.conf              |    2 +-
 conf/distro/jlime-2010.1.conf  |    3 ++-
 conf/machine/ben-nanonote.conf |   12 ++++++++++++
 recipes/gnutls/gnutls.inc      |    2 +-
 4 files changed, 16 insertions(+), 3 deletions(-)

-- 
1.7.10.4




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 12:38 [2011.03-maintenance][PATCH v2 0/2] Pull request 20130309 Apelete Seketeli
@ 2013-03-09 12:38 ` Apelete Seketeli
  2013-03-09 16:32   ` Khem Raj
  2013-03-09 16:45   ` Khem Raj
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 2/2] jlime-2010.1: add capability to build ubi image for ben-nanonote machine Apelete Seketeli
  1 sibling, 2 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-09 12:38 UTC (permalink / raw)
  To: openembedded-devel

Update SRC_URI since the gnutls source packages were moved into a
different directory on ftp.gnutls.org.
---
 recipes/gnutls/gnutls.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes/gnutls/gnutls.inc b/recipes/gnutls/gnutls.inc
index a8e1e0d..0e055e3 100644
--- a/recipes/gnutls/gnutls.inc
+++ b/recipes/gnutls/gnutls.inc
@@ -8,7 +8,7 @@ LICENSE_${PN}-bin = "GPLv3+"
 LICENSE_${PN}-extra = "GPLv3+"
 LICENSE_${PN}-openssl = "GPLv3+"
 
-SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
+SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
 
 inherit autotools binconfig pkgconfig gettext
 
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [2011.03-maintenance][PATCH v2 2/2] jlime-2010.1: add capability to build ubi image for ben-nanonote machine
  2013-03-09 12:38 [2011.03-maintenance][PATCH v2 0/2] Pull request 20130309 Apelete Seketeli
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI Apelete Seketeli
@ 2013-03-09 12:38 ` Apelete Seketeli
  1 sibling, 0 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-09 12:38 UTC (permalink / raw)
  To: openembedded-devel

Add capability to build a ubi image for the ben-nanonote machine when
using the jlime-2010.1 distro. The resulting image is ready to use and
fully functionnal.
---
 conf/bitbake.conf              |    2 +-
 conf/distro/jlime-2010.1.conf  |    3 ++-
 conf/machine/ben-nanonote.conf |   12 ++++++++++++
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 01b9321..527127e 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -399,7 +399,7 @@ IMAGE_CMD_cpio.gz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio
 IMAGE_CMD_cpio.xz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz -c ${XZ_COMPRESSION_LEVEL} > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.xz) ${EXTRA_IMAGECMD}"
 IMAGE_CMD_cpio.gz.u-boot = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}; mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} -d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot"
 IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | lzma -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma) ${EXTRA_IMAGECMD}"
-IMAGE_CMD_ubi = "echo \[ubifs\] > ubinize.cfg ; echo mode=ubi >> ubinize.cfg ; echo image=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img >> ubinize.cfg ; echo vol_id=0 >> ubinize.cfg ; echo vol_type=dynamic >> ubinize.cfg ; echo vol_name=${UBI_VOLNAME} >> ubinize.cfg ; echo vol_flags=autoresize >> ubinize.cfg;mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS} && ubinize -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${UBINIZE_ARGS} ubinize.cfg"
+IMAGE_CMD_ubi = "echo \[ubifs\] > ubinize.cfg ; echo mode=ubi >> ubinize.cfg ; echo image=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img >> ubinize.cfg ; echo vol_id=0 >> ubinize.cfg ; echo vol_type=dynamic >> ubinize.cfg ; echo vol_name=${UBI_VOLNAME} >> ubinize.cfg ; echo vol_flags=autoresize >> ubinize.cfg ${EXTRA_IMAGECMD} ; mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS} && ubinize -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${UBINIZE_ARGS} ubinize.cfg"
 IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS}"
 
 EXTRA_IMAGECMD = ""
diff --git a/conf/distro/jlime-2010.1.conf b/conf/distro/jlime-2010.1.conf
index a3ec20e..d6a92cf 100644
--- a/conf/distro/jlime-2010.1.conf
+++ b/conf/distro/jlime-2010.1.conf
@@ -30,13 +30,14 @@ DISTRO_EXTRA_RDEPENDS = "nano keymaps console-tools"
 #
 IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${DISTRO_VERSION}-${MACHINE}"
 SPLASH = "psplash"
+UBI_VOLNAME = "rootfs"
 
 #
 # Naming schemes + packages
 #
 INHERIT += "debian package_tar package_ipk src_distribute_local"
 SRC_DIST_LOCAL ?= "symlink"
-IMAGE_FSTYPES = "tar.gz tar.bz2 jffs2"
+IMAGE_FSTYPES = "tar.gz tar.bz2 jffs2 ubi"
 PREFERRED_PROVIDER_virtual/update-alternatives = "opkg"
 
 #
diff --git a/conf/machine/ben-nanonote.conf b/conf/machine/ben-nanonote.conf
index fd4aba4..e92992d 100644
--- a/conf/machine/ben-nanonote.conf
+++ b/conf/machine/ben-nanonote.conf
@@ -13,6 +13,18 @@ KERNEL_IMAGETYPE = "vmlinux.bin"
 
 IMAGE_FSTYPES ?= "jffs2"
 
+# do ubiattach /dev/ubi_ctrl -m 2
+# From dmesg:
+# UBI: physical eraseblock size:   524288 bytes (512 KiB)
+# UBI: logical eraseblock size:    516096 bytes
+# UBI: smallest flash I/O unit:    4096
+# UBI: VID header offset:          4096 (aligned 4096)
+# UBI: data offset:                8192
+MKUBIFS_ARGS = "-m 4096 -e 516096 -c 4095"
+UBINIZE_ARGS = "-m 4096 -p 512KiB"
+
+EXTRA_IMAGECMD_ubi = "; echo vol_alignment=1 >> ubinize.cfg"
+
 PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
 PREFERRED_VERSION_xserver-kdrive = "1.3.0.0"
 
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI Apelete Seketeli
@ 2013-03-09 16:32   ` Khem Raj
  2013-03-09 19:54     ` Apelete Seketeli
  2013-03-09 16:45   ` Khem Raj
  1 sibling, 1 reply; 10+ messages in thread
From: Khem Raj @ 2013-03-09 16:32 UTC (permalink / raw)
  To: openembedded-devel


On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:

> -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"

can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI Apelete Seketeli
  2013-03-09 16:32   ` Khem Raj
@ 2013-03-09 16:45   ` Khem Raj
  1 sibling, 0 replies; 10+ messages in thread
From: Khem Raj @ 2013-03-09 16:45 UTC (permalink / raw)
  To: openembedded-devel


On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:

> -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"

can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 16:32   ` Khem Raj
@ 2013-03-09 19:54     ` Apelete Seketeli
  2013-03-09 19:58       ` Khem Raj
  2013-03-13 17:04       ` Martin Jansa
  0 siblings, 2 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-09 19:54 UTC (permalink / raw)
  To: openembedded-devel

Le 09-Mar-13, Khem Raj a écrit:
> 
> On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
> 
> > -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> > +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
> 
> can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb

PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
I'll move SRC_URI into .bb then.

-- 
        Apelete



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 19:54     ` Apelete Seketeli
@ 2013-03-09 19:58       ` Khem Raj
  2013-03-09 20:18         ` Apelete Seketeli
  2013-03-13 17:04       ` Martin Jansa
  1 sibling, 1 reply; 10+ messages in thread
From: Khem Raj @ 2013-03-09 19:58 UTC (permalink / raw)
  To: openembedded-devel


On Mar 9, 2013, at 11:54 AM, Apelete Seketeli <apelete@seketeli.net> wrote:

> Le 09-Mar-13, Khem Raj a écrit:
>> 
>> On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
>> 
>>> -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
>>> +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
>> 
>> can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb
> 
> PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
> I'll move SRC_URI into .bb then.

now that I looked into oe.classic tree there is only 1 recipe for gnutls
so its ok to have it in .inc 

> 
> -- 
>        Apelete
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 19:58       ` Khem Raj
@ 2013-03-09 20:18         ` Apelete Seketeli
  0 siblings, 0 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-09 20:18 UTC (permalink / raw)
  To: openembedded-devel

Le 09-Mar-13, Khem Raj a écrit:
> 
> On Mar 9, 2013, at 11:54 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
> 
> > Le 09-Mar-13, Khem Raj a écrit:
> >> 
> >> On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
> >> 
> >>> -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> >>> +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
> >> 
> >> can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb
> > 
> > PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
> > I'll move SRC_URI into .bb then.
> 
> now that I looked into oe.classic tree there is only 1 recipe for gnutls
> so its ok to have it in .inc 

Patch v3 already sent, I hope it's ok anyway :).

Cheers.
-- 
        Apelete



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-09 19:54     ` Apelete Seketeli
  2013-03-09 19:58       ` Khem Raj
@ 2013-03-13 17:04       ` Martin Jansa
  2013-03-14  9:43         ` Apelete Seketeli
  1 sibling, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2013-03-13 17:04 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

On Sat, Mar 09, 2013 at 08:54:24PM +0100, Apelete Seketeli wrote:
> Le 09-Mar-13, Khem Raj a écrit:
> > 
> > On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
> > 
> > > -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> > > +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
> > 
> > can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb
> 
> PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
> I'll move SRC_URI into .bb then.

In couple of recipes we're using:
SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
SRC_URI = "http://download.gnome.org/sources/${PN}/${SHRT_VER}/${PN}-${PV}.tar.gz"

This could be applied here too.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI
  2013-03-13 17:04       ` Martin Jansa
@ 2013-03-14  9:43         ` Apelete Seketeli
  0 siblings, 0 replies; 10+ messages in thread
From: Apelete Seketeli @ 2013-03-14  9:43 UTC (permalink / raw)
  To: openembedded-devel

Le 13-Mar-13, Martin Jansa a écrit:
> On Sat, Mar 09, 2013 at 08:54:24PM +0100, Apelete Seketeli wrote:
> > Le 09-Mar-13, Khem Raj a écrit:
> > > 
> > > On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete@seketeli.net> wrote:
> > > 
> > > > -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> > > > +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
> > > 
> > > can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb
> > 
> > PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
> > I'll move SRC_URI into .bb then.
> 
> In couple of recipes we're using:
> SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
> SRC_URI = "http://download.gnome.org/sources/${PN}/${SHRT_VER}/${PN}-${PV}.tar.gz"
> 
> This could be applied here too.

When I updated this SRC_URI I actually wondered if there was a way to
filter the version in a generic fashion, but couldn't come up with
any. This is it, thanks for the tip. I will fix SRC_URI in .inc then,
instead of moving it into .bb like I did.

Cheers.
-- 
        Apelete



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-14 10:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-09 12:38 [2011.03-maintenance][PATCH v2 0/2] Pull request 20130309 Apelete Seketeli
2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI Apelete Seketeli
2013-03-09 16:32   ` Khem Raj
2013-03-09 19:54     ` Apelete Seketeli
2013-03-09 19:58       ` Khem Raj
2013-03-09 20:18         ` Apelete Seketeli
2013-03-13 17:04       ` Martin Jansa
2013-03-14  9:43         ` Apelete Seketeli
2013-03-09 16:45   ` Khem Raj
2013-03-09 12:38 ` [2011.03-maintenance][PATCH v2 2/2] jlime-2010.1: add capability to build ubi image for ben-nanonote machine Apelete Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox