weston-init: Rework do_install to use install -D option
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. (From OE-Core rev: 9d745d7c958402fa1d59c9d0267b58a05d7ee4b3) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
959237ef88
commit
d46c5beedc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue