package/rauc: prevent occurring the error when directory exists
authorBartosz Bilas <b.bilas@grinn-global.com>
Fri, 13 Nov 2020 11:39:40 +0000 (12:39 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 13 Nov 2020 13:50:07 +0000 (14:50 +0100)
Add -p argument that ignore that specified directory already exists.

Fixes:
 mkdir: cannot create directory ā€˜/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.dā€™: File exists

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/rauc/rauc.mk

index 1915c783aaf57231d6d23a3e9904de1cbcf0ac64..61c50ab316a8e1737194288116a729383a9f39cc 100644 (file)
@@ -31,7 +31,7 @@ RAUC_DEPENDENCIES += systemd
 endif
 
 define RAUC_INSTALL_INIT_SYSTEMD
-       mkdir $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
+       mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
        printf '[Install]\nWantedBy=multi-user.target\n' \
                >$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf
 endef