summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-14 22:56:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-21 15:29:01 +0100
commita02a5db446f06af6d6a1c49c78dfdf50aa5dc6c8 (patch)
treea5996e605151e278367adc7a541eaf3a64ddb9cc /meta/classes/systemd.bbclass
parent634b65b7ffa37f499d507ff3d6ba2e49254ae05b (diff)
downloadpoky-a02a5db446f06af6d6a1c49c78dfdf50aa5dc6c8.tar.gz
systemd.bbclass: Limit rm_sysvinit_initddir and rm_systemd_unitdir to target alone
These postfuncs cause native recipes to rebuild when changing system init provider between sysvinit and systemd. Some of these native recipes are pretty early in dependency chain ( e.g. util-linux ) which can casue rebuild of pretty much everything including compiler. Found with bitbake-diffsigs Hash for dependent task python/python3_3.7.4.bb:do_prepare_recipe_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devt ools/python/python3_3.7.4.bb changed from 2a45fe0cd0d3640a88c4a5c8b1880c4e9a089cc7446a91d2a920c1cef6fa916a to bc2a0921cce50da1b7be3b59a3d8211ec 2a31262493ffa5909acbb7116fad3bf Hash for dependent task util-linux/util-linux_2.34.bb:do_populate_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes- core/util-linux/util-linux_2.34.bb changed from 15d6e165f025f10c2c455df8a875cafe021eaed4214c793e708d4827a58ca89d to 54e542d5da99cacfc9290ef5d27 9de50bdcb9195f67ae6dfff59fe41d10f7bd2 Hash for dependent task util-linux/util-linux_2.34.bb:do_install:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/ util-linux/util-linux_2.34.bb changed from e25b1119ce8dd7ca43fbd2db771e04fa6ff6b9d701fd78ac6c443224b036ed9f to bb5b172a83e7edd272402a9dcd80c4e1 29aa1ecb824c2cfa388086cfed24fef5 basehash changed from 62df6610eab9c1b1a17d7132943507641c8538690f26186843c86144d4598e64 to 80471f7c0bded9d1b593da69708b0e0f10882db08 5e1bf769edb3018e6c744d0 Variable rm_sysvinit_initddir value changed: @@ -11,4 +11,4 @@ shutil.rmtree(sysv_initddir) DISTRO_FEATURES{systemd} = Unset -DISTRO_FEATURES{sysvinit} = Set +DISTRO_FEATURES{sysvinit} = Unset (From OE-Core rev: f2d60e0f6a8e93cb0779f4719e58b99ad01fb954) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index d1cb17dc8d..747055b8fa 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -214,7 +214,6 @@ python rm_systemd_unitdir (){
214 if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)): 214 if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)):
215 os.rmdir(systemd_libdir) 215 os.rmdir(systemd_libdir)
216} 216}
217do_install[postfuncs] += "rm_systemd_unitdir "
218 217
219python rm_sysvinit_initddir (){ 218python rm_sysvinit_initddir (){
220 import shutil 219 import shutil
@@ -229,4 +228,8 @@ python rm_sysvinit_initddir (){
229 if (os.path.exists(systemd_system_unitdir) and os.listdir(systemd_system_unitdir)): 228 if (os.path.exists(systemd_system_unitdir) and os.listdir(systemd_system_unitdir)):
230 shutil.rmtree(sysv_initddir) 229 shutil.rmtree(sysv_initddir)
231} 230}
232do_install[postfuncs] += "rm_sysvinit_initddir " 231
232do_install[postfuncs] += "${RMINITDIR} "
233RMINITDIR_class-target = " rm_sysvinit_initddir rm_systemd_unitdir "
234RMINITDIR = ""
235