Skip to contentSkip to conversation

package/ugetty: make install step more robust

PATCH In review Peter Korsgaard 2 participants 2 messages Apr 30 – May 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ugetty: make install step more robust

Use install -D so it also works if $(TARGET_DIR)/sbin does not exist yet.

---
 package/ugetty/ugetty.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ugetty/ugetty.mk +1 -1
index 1dc628540d..d3424bee42 100644
@@ -15,7 +15,7 @@ endef
 
 # Install ugetty->getty symlink to ensure ugetty is used
 define UGETTY_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 $(@D)/bin/ugetty \
+	$(INSTALL) -m 0755 -D $(@D)/bin/ugetty \
 		$(TARGET_DIR)/sbin/ugetty
 	ln -snf ugetty $(TARGET_DIR)/sbin/getty
 endef
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot