diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2019-03-06 10:32:30 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-06 23:12:27 +0000 |
commit | ccc413fd93f5e7572afd50bbfac8532f07fed9b1 (patch) | |
tree | 4d985e403ea574ce22896e258a5dc1f6b2f65b00 /meta/conf/bitbake.conf | |
parent | bb4597c4d96b8b8f37e06bfca954826599049b0e (diff) | |
download | poky-ccc413fd93f5e7572afd50bbfac8532f07fed9b1.tar.gz |
Add source package to ${PACKAGES}
Permanently adds the -src source package to ${PACKAGES} instead of
relying on creating it dynamically at packaging time. The source package
is now defined in bitbake.conf, just like -dev and -dbg packages.
For compatibility, the -src package is still added dynamically if it was
missing, since some recipes have a tendency to completely override
PACKAGES and do so without manually adding back the -src package.
This allows RDEPENDS on the -src packages, which wasn't previously
possible.
[YOCTO #13203]
(From OE-Core rev: b25e1edf0204fc2f64aa8d66e09b8e2d67b90e17)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index f1540a0acf..8fc4e9bc1a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -237,6 +237,10 @@ DESCRIPTION ?= "${SUMMARY}." | |||
237 | #SUMMARY_${PN} ?= "${SUMMARY}" | 237 | #SUMMARY_${PN} ?= "${SUMMARY}" |
238 | #DESCRIPTION_${PN} ?= "${DESCRIPTION}" | 238 | #DESCRIPTION_${PN} ?= "${DESCRIPTION}" |
239 | 239 | ||
240 | SUMMARY_${PN}-src ?= "${SUMMARY} - Source files" | ||
241 | DESCRIPTION_${PN}-src ?= "${DESCRIPTION} \ | ||
242 | This package contains sources for debugging purposes." | ||
243 | |||
240 | SUMMARY_${PN}-dbg ?= "${SUMMARY} - Debugging files" | 244 | SUMMARY_${PN}-dbg ?= "${SUMMARY} - Debugging files" |
241 | DESCRIPTION_${PN}-dbg ?= "${DESCRIPTION} \ | 245 | DESCRIPTION_${PN}-dbg ?= "${DESCRIPTION} \ |
242 | This package contains ELF symbols and related sources for debugging purposes." | 246 | This package contains ELF symbols and related sources for debugging purposes." |
@@ -285,7 +289,7 @@ SOLIBSDEV_darwin = ".dylibbroken" | |||
285 | PACKAGE_DEBUG_SPLIT_STYLE ?= "debug-with-srcpkg" | 289 | PACKAGE_DEBUG_SPLIT_STYLE ?= "debug-with-srcpkg" |
286 | 290 | ||
287 | PACKAGE_BEFORE_PN ?= "" | 291 | PACKAGE_BEFORE_PN ?= "" |
288 | PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}" | 292 | PACKAGES = "${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}" |
289 | PACKAGES_DYNAMIC = "^${PN}-locale-.*" | 293 | PACKAGES_DYNAMIC = "^${PN}-locale-.*" |
290 | FILES = "" | 294 | FILES = "" |
291 | 295 | ||
@@ -324,6 +328,11 @@ FILES_${PN}-dbg = "/usr/lib/debug /usr/src/debug" | |||
324 | SECTION_${PN}-dbg = "devel" | 328 | SECTION_${PN}-dbg = "devel" |
325 | ALLOW_EMPTY_${PN}-dbg = "1" | 329 | ALLOW_EMPTY_${PN}-dbg = "1" |
326 | 330 | ||
331 | # The files list for source packages are dynamically set based on | ||
332 | # PACKAGE_DEBUG_SPLIT_STYLE | ||
333 | FILES_${PN}-src = "" | ||
334 | SECTION_${PN}-src = "devel" | ||
335 | |||
327 | FILES_${PN}-locale = "${datadir}/locale" | 336 | FILES_${PN}-locale = "${datadir}/locale" |
328 | 337 | ||
329 | # File manifest | 338 | # File manifest |