diff options
Diffstat (limited to 'meta-rcar-gen3')
-rw-r--r-- | meta-rcar-gen3/recipes-core/bundles/bad-agl-demo-bundle.bb | 5 | ||||
-rw-r--r-- | meta-rcar-gen3/recipes-platform/images/agl-demo-platform.bbappend | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-core/bundles/bad-agl-demo-bundle.bb b/meta-rcar-gen3/recipes-core/bundles/bad-agl-demo-bundle.bb new file mode 100644 index 0000000..b6fc691 --- /dev/null +++ b/meta-rcar-gen3/recipes-core/bundles/bad-agl-demo-bundle.bb @@ -0,0 +1,5 @@ +require agl-demo-bundle.bb + +inherit distro_features_check + +REQUIRED_DISTRO_FEATURES = "bad-bundle" diff --git a/meta-rcar-gen3/recipes-platform/images/agl-demo-platform.bbappend b/meta-rcar-gen3/recipes-platform/images/agl-demo-platform.bbappend new file mode 100644 index 0000000..2c40057 --- /dev/null +++ b/meta-rcar-gen3/recipes-platform/images/agl-demo-platform.bbappend @@ -0,0 +1,7 @@ +do_rootfs_append_rcar-gen3(){ + import os + if "bad-bundle" in d.getVar("DISTRO_FEATURES"): + init_path = os.path.join(d.getVar("IMAGE_ROOTFS"),'sbin/init') + new_init_path = os.path.join(d.getVar("IMAGE_ROOTFS"),'sbin/init2') + os.rename(init_path, new_init_path) +} |