All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Franklin S. Cooper Jr" <fcooper@ti.com>
Cc: meta-ti@yoctoproject.org
Subject: Re: [PATCH 1/2] am33x-cm3: Split init script into its own recipe
Date: Mon, 29 Apr 2013 14:27:18 -0400	[thread overview]
Message-ID: <20130429182717.GH27211@edge> (raw)
In-Reply-To: <1367245658-15077-1-git-send-email-fcooper@ti.com>

On Mon, Apr 29, 2013 at 09:27:37AM -0500, Franklin S. Cooper Jr wrote:
> * 3.8+ kernels uses an init script to load the cm3 firmware.
> * 3.2 kernel require the cm3 firmware during compile time therefore not
>   requiring an init script.
> * Remove the init script from the main am33x-cm3 recipe and place it in its own
>   recipe to allow specific kernel recipes to choose to load the firmware via an
>   init script.

And why not keep the initscript in the same recipe, but package it in a 
separate package (e.g. ${PN}-initscript or something) and RDEPENDS on it from 
3.8 recipe?

-- 
Denys


> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  recipes-bsp/ti/am33x-cm3_git.bb                    |   14 +----------
>  .../{am33x-cm3 => am33x-load-cm3}/init-am33x-cm3   |    0
>  recipes-bsp/ti/am33x-load-cm3_1.0.bb               |   22 ++++++++++++++++++++
>  recipes-kernel/linux/linux-ti-staging_3.8.bb       |    4 +-
>  4 files changed, 26 insertions(+), 14 deletions(-)
>  rename recipes-bsp/ti/{am33x-cm3 => am33x-load-cm3}/init-am33x-cm3 (100%)
>  create mode 100644 recipes-bsp/ti/am33x-load-cm3_1.0.bb
> 
> diff --git a/recipes-bsp/ti/am33x-cm3_git.bb b/recipes-bsp/ti/am33x-cm3_git.bb
> index 4829b78..4835e17 100644
> --- a/recipes-bsp/ti/am33x-cm3_git.bb
> +++ b/recipes-bsp/ti/am33x-cm3_git.bb
> @@ -4,19 +4,13 @@ LICENSE = "TI-BSD"
>  LIC_FILES_CHKSUM = "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
>  
>  PV = "04.06.00.10"
> -PR = "r2"
> +PR = "r3"
>  
>  # SRCREV corresponds to tag "AM335xPSP_04.06.00.10-rc1"
>  SRCREV = "27ca4643e422245a95723de1df0247a00eada45b"
>  BRANCH ?= "master"
>  
> -INITSCRIPT_NAME = "am335x-pm-firmware-load"
> -INITSCRIPT_PARAMS = "defaults 96"
> -
> -inherit update-rc.d
> -
>  SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git;protocol=git;branch=${BRANCH} \
> -           file://init-am33x-cm3 \
>            "
>  
>  S = "${WORKDIR}/git"
> @@ -28,11 +22,7 @@ do_compile() {
>  do_install() {
>  	install -d ${D}${base_libdir}/firmware
>  	install -m 0644 bin/am335x-pm-firmware.bin ${D}${base_libdir}/firmware/
> -
> -	# Install the init script to load the PM firmware at boot
> -	install -d ${D}${sysconfdir}/init.d
> -	install -m 0755 ${WORKDIR}/init-am33x-cm3 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
>  }
>  
> -FILES_${PN} += "${base_libdir}/firmware"
> +FILES_${PN} = "${base_libdir}/firmware"
>  
> diff --git a/recipes-bsp/ti/am33x-cm3/init-am33x-cm3 b/recipes-bsp/ti/am33x-load-cm3/init-am33x-cm3
> similarity index 100%
> rename from recipes-bsp/ti/am33x-cm3/init-am33x-cm3
> rename to recipes-bsp/ti/am33x-load-cm3/init-am33x-cm3
> diff --git a/recipes-bsp/ti/am33x-load-cm3_1.0.bb b/recipes-bsp/ti/am33x-load-cm3_1.0.bb
> new file mode 100644
> index 0000000..d99757b
> --- /dev/null
> +++ b/recipes-bsp/ti/am33x-load-cm3_1.0.bb
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
> +
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +
> +PR = "r0"
> +
> +RDEPENDS_${PN} = "am33x-cm3"
> +
> +INITSCRIPT_NAME = "am335x-pm-firmware-load"
> +INITSCRIPT_PARAMS = "defaults 96"
> +
> +inherit update-rc.d
> +
> +SRC_URI = "file://init-am33x-cm3"
> +
> +
> +do_install() {
> +	# Install the init script to load the PM firmware at boot
> +	install -d ${D}${sysconfdir}/init.d
> +	install -m 0755 ${WORKDIR}/init-am33x-cm3 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
> +}
> diff --git a/recipes-kernel/linux/linux-ti-staging_3.8.bb b/recipes-kernel/linux/linux-ti-staging_3.8.bb
> index 622fa3e..561bb55 100644
> --- a/recipes-kernel/linux/linux-ti-staging_3.8.bb
> +++ b/recipes-kernel/linux/linux-ti-staging_3.8.bb
> @@ -26,7 +26,7 @@ require recipes-kernel/linux/setup-defconfig.inc
>  
>  # Add a run-time dependency for the PM firmware to be installed
>  # on the target file system.
> -RDEPENDS_ti33x += "am33x-cm3"
> +RDEPENDS_ti33x += "am33x-cm3 am33x-load-cm3"
>  
>  # Default is to package all dts files for ti33x devices unless building
>  # for the specific beaglebone machine.
> @@ -44,7 +44,7 @@ SRCREV = "1de3616c36710b6949844738f9c63b96e307c49f"
>  PV = "3.8.8"
>  
>  # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
> -MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
> +MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
>  
>  SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
>             file://defconfig \
> -- 
> 1.7.0.4
> 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


  parent reply	other threads:[~2013-04-29 18:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29 14:27 [PATCH 1/2] am33x-cm3: Split init script into its own recipe Franklin S. Cooper Jr
2013-04-29 14:27 ` [PATCH 2/2] linux-am335x-psp: Correct recipe name typo Franklin S. Cooper Jr
2013-04-29 18:16   ` Denys Dmytriyenko
2013-04-29 18:18     ` Cooper Jr., Franklin
2013-04-29 18:29       ` Denys Dmytriyenko
2013-04-29 18:38         ` Cooper Jr., Franklin
2013-04-29 16:18 ` [PATCH 1/2] am33x-cm3: Split init script into its own recipe Maupin, Chase
2013-04-29 18:06   ` Cooper Jr., Franklin
2013-04-29 18:27 ` Denys Dmytriyenko [this message]
2013-04-29 19:08   ` Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130429182717.GH27211@edge \
    --to=denys@ti.com \
    --cc=fcooper@ti.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.