The install -D allow for the parent directories to be created in a single command line, reducing the code and number of fork during the build.
Signed-off-by: Otavio Salvador <ota...@ossystems.com.br> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None meta/recipes-graphics/wayland/weston-init.bb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 653541e..4ad62cf 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -8,11 +8,8 @@ SRC_URI = "file://init \ S = "${WORKDIR}" do_install() { - install -d ${D}/${sysconfdir}/init.d - install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston - - install -d ${D}${systemd_system_unitdir} - install -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir} + install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston + install -Dm0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service } inherit allarch update-rc.d distro_features_check systemd -- 2.8.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core