Patchwork [meta-fsl-ppc,4/5] merge-files: add recipe

login
register
mail settings
Submitter Ting Liu
Date July 22, 2014, 10:32 a.m.
Message ID <1406025138-11195-4-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/76353/
State Superseded
Headers show

Comments

Ting Liu - July 22, 2014, 10:32 a.m.
From: Ting Liu <b28495@freescale.com>

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 .../merge-files/merge-files/merge/README           |    7 +++++
 recipes-extended/merge-files/merge-files_1.0.bb    |   25 ++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 recipes-extended/merge-files/merge-files/merge/README
 create mode 100644 recipes-extended/merge-files/merge-files_1.0.bb
Bob Cochran - July 22, 2014, 4:21 p.m.
On 07/22/2014 06:32 AM, ting.liu@freescale.com wrote:
> From: Ting Liu <b28495@freescale.com>
>
> Signed-off-by: Ting Liu <b28495@freescale.com>
> ---
>   .../merge-files/merge-files/merge/README           |    7 +++++
>   recipes-extended/merge-files/merge-files_1.0.bb    |   25 ++++++++++++++++++++
>   2 files changed, 32 insertions(+), 0 deletions(-)
>   create mode 100644 recipes-extended/merge-files/merge-files/merge/README
>   create mode 100644 recipes-extended/merge-files/merge-files_1.0.bb
>
> diff --git a/recipes-extended/merge-files/merge-files/merge/README b/recipes-extended/merge-files/merge-files/merge/README
> new file mode 100644
> index 0000000..cd907fe
> --- /dev/null
> +++ b/recipes-extended/merge-files/merge-files/merge/README
> @@ -0,0 +1,7 @@
> +This package is used to merge specified files into rootfs.
> +
> +Steps:
> +1> copy files to recipes-*/merge-files/merge-files/merged/


minor comment:

Should be /merge-files/merge-files/merge/   not .../merged/



> +2> add 'IMAGE_INSTALL += "merge-files"' into rootfs recipe
> +3> bitbake <rootfs_image_type>
> +
> diff --git a/recipes-extended/merge-files/merge-files_1.0.bb b/recipes-extended/merge-files/merge-files_1.0.bb
> new file mode 100644
> index 0000000..f64b909
> --- /dev/null
> +++ b/recipes-extended/merge-files/merge-files_1.0.bb
> @@ -0,0 +1,25 @@
> +DESCRIPTION = "Merge prebuilt/extra files into rootfs"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
> +                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +
> +inherit allarch
> +
> +SRC_URI = "file://merge"
> +
> +MERGED_DST ?= "${ROOT_HOME}"
> +do_install () {
> +    install -d ${D}/${MERGED_DST}
> +    find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -not -name README \
> +    -exec cp -fr '{}' ${D}/${MERGED_DST}/ \;
> +    find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -exec rm -fr '{}' \;
> +}
> +do_unpack[nostamp] = "1"
> +do_install[nostamp] = "1"
> +do_configure[noexec] = "1"
> +do_compile[noexec] = "1"
> +
> +FILES_${PN} = "/*"
> +ALLOW_EMPTY_${PN} = "1"
> +INSANE_SKIP_${PN} = "debug-files dev-so"
> +
>
Randy Krakora - July 22, 2014, 4:35 p.m.
Using a sabre lite board with a v1.0 imx6q...

I grabbed the 3.10.17 sdcard image from boundary's website:

http://boundarydevices.com/yocto-kernel-3-10-17-beta/

Copied to a card, booted, updated uboot to:

http://boundarydevices.com/u-boot-2014-04-release-mx6/

It seems uboot briefly displays to hdmi, but then the kernel doesn't and 
of course, gstreamer doesn't display anything to hdmi. I have fb0, 1 and 
2. But I get some IPU errors periodically.

Does anyone have hdmi working with this image? I'm sure it's something 
I've missed/forgotten.

Regards,
Randy Krakora
Eric Nelson - July 22, 2014, 4:55 p.m.
Hi Randy,

On 07/22/2014 09:35 AM, Randy Krakora wrote:
> Using a sabre lite board with a v1.0 imx6q...
> 
> I grabbed the 3.10.17 sdcard image from boundary's website:
> 
> http://boundarydevices.com/yocto-kernel-3-10-17-beta/
> 
> Copied to a card, booted, updated uboot to:
> 
> http://boundarydevices.com/u-boot-2014-04-release-mx6/
> 
> It seems uboot briefly displays to hdmi, but then the kernel doesn't and
> of course, gstreamer doesn't display anything to hdmi. I have fb0, 1 and
> 2. But I get some IPU errors periodically.
> 
> Does anyone have hdmi working with this image? I'm sure it's something
> I've missed/forgotten.
> 

HDMI works with this image, but not well with Silicon Rev 1.0.

I responded to your message on the blog post.

Do you have a Rev 1.2 board to test against?

If not, you should also have success with a Hannstar panel.

Regards,


Eric

Patch

diff --git a/recipes-extended/merge-files/merge-files/merge/README b/recipes-extended/merge-files/merge-files/merge/README
new file mode 100644
index 0000000..cd907fe
--- /dev/null
+++ b/recipes-extended/merge-files/merge-files/merge/README
@@ -0,0 +1,7 @@ 
+This package is used to merge specified files into rootfs.
+
+Steps:
+1> copy files to recipes-*/merge-files/merge-files/merged/
+2> add 'IMAGE_INSTALL += "merge-files"' into rootfs recipe
+3> bitbake <rootfs_image_type>
+
diff --git a/recipes-extended/merge-files/merge-files_1.0.bb b/recipes-extended/merge-files/merge-files_1.0.bb
new file mode 100644
index 0000000..f64b909
--- /dev/null
+++ b/recipes-extended/merge-files/merge-files_1.0.bb
@@ -0,0 +1,25 @@ 
+DESCRIPTION = "Merge prebuilt/extra files into rootfs"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+inherit allarch
+
+SRC_URI = "file://merge"
+
+MERGED_DST ?= "${ROOT_HOME}"
+do_install () {
+    install -d ${D}/${MERGED_DST}
+    find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -not -name README \
+    -exec cp -fr '{}' ${D}/${MERGED_DST}/ \;
+    find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -exec rm -fr '{}' \;
+}
+do_unpack[nostamp] = "1"
+do_install[nostamp] = "1"
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+FILES_${PN} = "/*"
+ALLOW_EMPTY_${PN} = "1"
+INSANE_SKIP_${PN} = "debug-files dev-so"
+