From: Haris Okanovic <harisokn@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Haris Okanovic <haris.okanovic@ni.com>
Subject: Re: [PATCH 2/2] bitbake.conf: Define source package, disabled by default
Date: Tue, 19 Jan 2016 15:51:46 -0600 [thread overview]
Message-ID: <569EAFF2.3010500@gmail.com> (raw)
In-Reply-To: <1450139152-19802-2-git-send-email-haris.okanovic@ni.com>
Are there any other issues with this change?
Andre raised a few several weeks ago, when this was still an RFC*. Those
were all addressed in the initial patch.
* http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/72660
-- Haris
On 12/14/2015 06:25 PM, Haris Okanovic wrote:
> Add ${PN}-src to PACKAGES with a default set of FILES_{PV}-src
> per FHS:
> https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrsrcSourceCode
>
> Define a staging directory SRC_D under ${D}.
>
> Define ENABLE_SRC_INSTALL to enable source staging via package.bbclass's
> do_install_source() task. It's disabled by default, but may be
> overridden by distro configs or individual recipes as needed.
>
> This is change is part of a series which add source packages to OE.
> See the following thread for more information:
> http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/72660
>
> Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
> ---
> meta/conf/bitbake.conf | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 06971da..4674288 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -36,6 +36,7 @@ export systemd_unitdir = "${nonarch_base_libdir}/systemd"
> export systemd_system_unitdir = "${nonarch_base_libdir}/systemd/system"
> export nonarch_libdir = "${exec_prefix}/lib"
> export systemd_user_unitdir = "${nonarch_libdir}/systemd/user"
> +srcdir = "${prefix}/src"
>
> # Architecture dependent paths
> export bindir = "${exec_prefix}/bin"
> @@ -267,7 +268,7 @@ SOLIBSDEV = ".so"
> SOLIBSDEV_darwin = ".dylibbroken"
>
> PACKAGE_BEFORE_PN ?= ""
> -PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
> +PACKAGES = "${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
> PACKAGES_DYNAMIC = "^${PN}-locale-.*"
> FILES = ""
>
> @@ -313,6 +314,12 @@ ALLOW_EMPTY_${PN}-dbg = "1"
>
> FILES_${PN}-locale = "${datadir}/locale"
>
> +FILES_${PN}-src = "${srcdir}/${PN}"
> +SRC_D = "${D}${srcdir}/${PN}"
> +
> +ENABLE_SRC_INSTALL = "0"
> +ENABLE_SRC_INSTALL_${PN} = "${ENABLE_SRC_INSTALL}"
> +
> # File manifest
>
> FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE', False))}"
>
next prev parent reply other threads:[~2016-01-19 21:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 20:53 [RFC] Source packages Haris Okanovic
2015-12-09 17:56 ` Andre McCurdy
2015-12-10 18:59 ` Haris Okanovic
2015-12-15 0:25 ` [PATCH 1/2] package.bbclass/package.py: Add do_install_source() task Haris Okanovic
2015-12-15 0:25 ` [PATCH 2/2] bitbake.conf: Define source package, disabled by default Haris Okanovic
2016-01-19 21:51 ` Haris Okanovic [this message]
2016-01-19 21:51 ` [PATCH 1/2] package.bbclass/package.py: Add do_install_source() task Haris Okanovic
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=569EAFF2.3010500@gmail.com \
--to=harisokn@gmail.com \
--cc=haris.okanovic@ni.com \
--cc=openembedded-core@lists.openembedded.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.