* [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb
@ 2012-09-05 17:27 Flanagan, Elizabeth
2012-09-05 20:21 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Flanagan, Elizabeth @ 2012-09-05 17:27 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
This adds an adt-installer-dev for QA and autobuilder use.
It repoints the ADTREPO url to adtrepo-dev.yp.org.
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
---
.../installer/adt-installer-dev_1.0.bb | 26 ++++++++++++++++++++
.../installer/adt-installer/adt_installer.conf | 2 +-
.../installer/adt-installer_1.0.bb | 1 +
3 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
diff --git a/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
new file mode 100644
index 0000000..7679038
--- /dev/null
+++ b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
@@ -0,0 +1,26 @@
+# Yocto ADT Installer bb file
+#
+# Copyright 2010-2011 by Intel Corp.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the
"Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+require recipes-devtools/installer/adt-installer_${PV}.bb
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/adt-installer:"
+ADTREPO = "http://adtrepo-dev.yoctoproject.org/${SDK_VERSION}"
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
index afc69a4..171d2ac 100644
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
@@ -23,7 +23,7 @@
# Your yocto distro repository, this should include IPKG based
packages and root filesystem files where the installation is based on
-YOCTOADT_REPO="http://adtrepo.yoctoproject.org/YOCTOADT_VERSION"
+YOCTOADT_REPO="ADTREPO"
# The following are for system wide setup
# Target architectures that you want to setup host cross dev environment for
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb
b/meta/recipes-devtools/installer/adt-installer_1.0.bb
index becdef6..4ee276f 100644
--- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
+++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
@@ -68,6 +68,7 @@ fakeroot do_populate_adt () {
cp -r scripts ${ADT_DIR}/
cp adt_installer ${ADT_DIR}
cp adt_installer.conf ${ADT_DIR}
+ sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
sed -i -e 's#YOCTOADT_VERSION#${SDK_VERSION}#' ${ADT_DIR}/adt_installer.conf
echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >> ${ADT_DIR}/scripts/data_define
--
1.7.9.5
--
Elizabeth Flanagan
Yocto Project
Build and Release
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb
2012-09-05 17:27 [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb Flanagan, Elizabeth
@ 2012-09-05 20:21 ` Richard Purdie
2012-09-05 20:31 ` Zhang, Jessica
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-09-05 20:21 UTC (permalink / raw)
To: Flanagan, Elizabeth; +Cc: Patches and discussions about the oe-core layer
On Wed, 2012-09-05 at 10:27 -0700, Flanagan, Elizabeth wrote:
> This adds an adt-installer-dev for QA and autobuilder use.
> It repoints the ADTREPO url to adtrepo-dev.yp.org.
>
> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
> ---
> .../installer/adt-installer-dev_1.0.bb | 26 ++++++++++++++++++++
> .../installer/adt-installer/adt_installer.conf | 2 +-
> .../installer/adt-installer_1.0.bb | 1 +
> 3 files changed, 28 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
>
> diff --git a/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> new file mode 100644
> index 0000000..7679038
> --- /dev/null
> +++ b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> @@ -0,0 +1,26 @@
> +# Yocto ADT Installer bb file
> +#
> +# Copyright 2010-2011 by Intel Corp.
> +#
> +# Permission is hereby granted, free of charge, to any person obtaining a copy
> +# of this software and associated documentation files (the
> "Software"), to deal
> +# in the Software without restriction, including without limitation the rights
> +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> +# copies of the Software, and to permit persons to whom the Software is
> +# furnished to do so, subject to the following conditions:
> +
> +# The above copyright notice and this permission notice shall be included in
> +# all copies or substantial portions of the Software.
> +
> +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> ARISING FROM,
> +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> +# THE SOFTWARE.
> +
> +require recipes-devtools/installer/adt-installer_${PV}.bb
> +
> +FILESEXTRAPATHS_prepend := "${THISDIR}/adt-installer:"
> +ADTREPO = "http://adtrepo-dev.yoctoproject.org/${SDK_VERSION}"
> diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> index afc69a4..171d2ac 100644
> --- a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> +++ b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> @@ -23,7 +23,7 @@
>
> # Your yocto distro repository, this should include IPKG based
> packages and root filesystem files where the installation is based on
>
> -YOCTOADT_REPO="http://adtrepo.yoctoproject.org/YOCTOADT_VERSION"
> +YOCTOADT_REPO="ADTREPO"
>
> # The following are for system wide setup
> # Target architectures that you want to setup host cross dev environment for
> diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb
> b/meta/recipes-devtools/installer/adt-installer_1.0.bb
> index becdef6..4ee276f 100644
> --- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
> +++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
> @@ -68,6 +68,7 @@ fakeroot do_populate_adt () {
> cp -r scripts ${ADT_DIR}/
> cp adt_installer ${ADT_DIR}
> cp adt_installer.conf ${ADT_DIR}
> + sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
> sed -i -e 's#YOCTOADT_VERSION#${SDK_VERSION}#' ${ADT_DIR}/adt_installer.conf
> echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
> echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >> ${ADT_DIR}/scripts/data_define
Firstly, this breaks the adt-installer recipe since nothing sets
YOCTOADT_REPO to a value.
Secondly, having two recipe just for this is wrong, lets just set the
variable as needed. Either:
a) Setting to the release location should happen at release time,
otherwise it can default to the dev repo
b) It can default to the last release and the autobuilder overrides the
variable to the dev location.
I suspect a) is less work and makes most sense.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb
2012-09-05 20:21 ` Richard Purdie
@ 2012-09-05 20:31 ` Zhang, Jessica
0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Jessica @ 2012-09-05 20:31 UTC (permalink / raw)
To: Richard Purdie, Flanagan, Elizabeth
Cc: Patches and discussions about the oe-core layer
+1 for option a.
-----Original Message-----
From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Richard Purdie
Sent: Wednesday, September 05, 2012 1:21 PM
To: Flanagan, Elizabeth
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb
On Wed, 2012-09-05 at 10:27 -0700, Flanagan, Elizabeth wrote:
> This adds an adt-installer-dev for QA and autobuilder use.
> It repoints the ADTREPO url to adtrepo-dev.yp.org.
>
> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
> ---
> .../installer/adt-installer-dev_1.0.bb | 26 ++++++++++++++++++++
> .../installer/adt-installer/adt_installer.conf | 2 +-
> .../installer/adt-installer_1.0.bb | 1 +
> 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644
> meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
>
> diff --git a/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> new file mode 100644
> index 0000000..7679038
> --- /dev/null
> +++ b/meta/recipes-devtools/installer/adt-installer-dev_1.0.bb
> @@ -0,0 +1,26 @@
> +# Yocto ADT Installer bb file
> +#
> +# Copyright 2010-2011 by Intel Corp.
> +#
> +# Permission is hereby granted, free of charge, to any person
> +obtaining a copy # of this software and associated documentation
> +files (the
> "Software"), to deal
> +# in the Software without restriction, including without limitation
> +the rights # to use, copy, modify, merge, publish, distribute,
> +sublicense, and/or sell # copies of the Software, and to permit
> +persons to whom the Software is # furnished to do so, subject to the following conditions:
> +
> +# The above copyright notice and this permission notice shall be
> +included in # all copies or substantial portions of the Software.
> +
> +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> +EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> +MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND
> +NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS
> +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN
> +ACTION OF CONTRACT, TORT OR OTHERWISE,
> ARISING FROM,
> +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
> +DEALINGS IN # THE SOFTWARE.
> +
> +require recipes-devtools/installer/adt-installer_${PV}.bb
> +
> +FILESEXTRAPATHS_prepend := "${THISDIR}/adt-installer:"
> +ADTREPO = "http://adtrepo-dev.yoctoproject.org/${SDK_VERSION}"
> diff --git
> a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> index afc69a4..171d2ac 100644
> --- a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> +++ b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
> @@ -23,7 +23,7 @@
>
> # Your yocto distro repository, this should include IPKG based
> packages and root filesystem files where the installation is based on
>
> -YOCTOADT_REPO="http://adtrepo.yoctoproject.org/YOCTOADT_VERSION"
> +YOCTOADT_REPO="ADTREPO"
>
> # The following are for system wide setup # Target architectures
> that you want to setup host cross dev environment for diff --git
> a/meta/recipes-devtools/installer/adt-installer_1.0.bb
> b/meta/recipes-devtools/installer/adt-installer_1.0.bb
> index becdef6..4ee276f 100644
> --- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
> +++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
> @@ -68,6 +68,7 @@ fakeroot do_populate_adt () {
> cp -r scripts ${ADT_DIR}/
> cp adt_installer ${ADT_DIR}
> cp adt_installer.conf ${ADT_DIR}
> + sed -i -e 's#ADTREPO#${ADTREPO}#' ${ADT_DIR}/adt_installer.conf
> sed -i -e 's#YOCTOADT_VERSION#${SDK_VERSION}#' ${ADT_DIR}/adt_installer.conf
> echo 'SDK_VENDOR=${SDK_VENDOR}' >> ${ADT_DIR}/scripts/data_define
> echo 'DEFAULT_INSTALL_FOLDER=${SDKPATH}' >>
> ${ADT_DIR}/scripts/data_define
Firstly, this breaks the adt-installer recipe since nothing sets YOCTOADT_REPO to a value.
Secondly, having two recipe just for this is wrong, lets just set the variable as needed. Either:
a) Setting to the release location should happen at release time, otherwise it can default to the dev repo
b) It can default to the last release and the autobuilder overrides the variable to the dev location.
I suspect a) is less work and makes most sense.
Cheers,
Richard
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-05 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 17:27 [PATCH 1/1] Revised: adt-installer: Add adt-installer-dev.bb Flanagan, Elizabeth
2012-09-05 20:21 ` Richard Purdie
2012-09-05 20:31 ` Zhang, Jessica
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox